Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCosmosAccount ¶
func GetCosmosAccount(root wallet.Account, cosmos wallet.Account, client rosetta.Client) wallet.CosmosAccount
GetCosmosAccount returns a cosmos account.
func Load ¶
func Load(ac *wallet.AccountConfig) (wallet.Account, error)
Load loads an account from a *crypto.AccountConfig.
func LoadFromBytes ¶
LoadFromBytes loads an account from a byte slice.
Types ¶
type Option ¶
type Option func(*config)
Option is a function that configures an account.
func WithCoinType ¶
WithCoinType sets the coin type of the account.
func WithSelfID ¶
WithSelfID sets the ID of the account that is used to sign transactions.
func WithThreshold ¶
WithThreshold sets the number of required signatures to authorize a transaction.
Click to show internal directories.
Click to hide internal directories.