Documentation ¶
Index ¶
- func CreateAccount(flowClient *client.Client, publicKeys []*flow.AccountKey) *flow.Account
- func CreateAccountWithContracts(flowClient *client.Client, publicKeys []*flow.AccountKey, ...) *flow.Account
- func FundAccountInEmulator(flowClient *client.Client, address flow.Address, amount float64)
- func GetReferenceBlockId(flowClient *client.Client) flow.Identifier
- func Handle(err error)
- func RandomAccount(flowClient *client.Client) (flow.Address, *flow.AccountKey, crypto.Signer)
- func RandomPrivateKey() crypto.PrivateKey
- func ReadFile(path string) string
- func ServiceAccount(flowClient *client.Client) (flow.Address, *flow.AccountKey, crypto.Signer)
- func WaitForSeal(ctx context.Context, c *client.Client, id flow.Identifier) *flow.TransactionResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAccount ¶
func CreateAccountWithContracts ¶ added in v0.12.0
func FundAccountInEmulator ¶ added in v0.15.0
*
- FundAccountInEmulator Mints FLOW to an account. Minting only works in an emulator environment.
func GetReferenceBlockId ¶ added in v0.11.0
func RandomAccount ¶ added in v0.4.0
func RandomPrivateKey ¶
func RandomPrivateKey() crypto.PrivateKey
RandomPrivateKey returns a randomly generated ECDSA P-256 private key.
func ServiceAccount ¶ added in v0.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.