Documentation ¶
Index ¶
- func AddAccountKey(address flow.Address, accountKey *flow.AccountKey) *flow.Transaction
- func CreateAccount(accountKeys []*flow.AccountKey, code []byte, payer flow.Address) *flow.Transaction
- func RemoveAccountKey(address flow.Address, keyID int) *flow.Transaction
- func UpdateAccountCode(address flow.Address, code []byte) *flow.Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccountKey ¶
func AddAccountKey(address flow.Address, accountKey *flow.AccountKey) *flow.Transaction
AddAccountKey generates a transaction that adds a public key to an account.
func CreateAccount ¶
func CreateAccount(accountKeys []*flow.AccountKey, code []byte, payer flow.Address) *flow.Transaction
CreateAccount generates a transactions that creates a new account.
This template accepts a list of public keys and a code argument, both of which are optional.
The final argument is the address of the account that will pay the account creation fee. This account is added as a transaction authorizer and therefore must sign the resulting transaction.
func RemoveAccountKey ¶
func RemoveAccountKey(address flow.Address, keyID int) *flow.Transaction
RemoveAccountKey generates a transaction that removes a key from an account.
func UpdateAccountCode ¶
func UpdateAccountCode(address flow.Address, code []byte) *flow.Transaction
UpdateAccountCode generates a transaction that updates the code deployed at an account.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.