templates

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 46

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL