Documentation ¶
Index ¶
- func CreateAccount(flowClient access.Client, publicKeys []*flow.AccountKey) *flow.Account
- func CreateAccountWithContracts(flowClient access.Client, publicKeys []*flow.AccountKey, ...) *flow.Account
- func FundAccountInEmulator(flowClient access.Client, address flow.Address, amount float64)
- func GetReferenceBlockId(flowClient access.Client) flow.Identifier
- func Handle(err error)
- func NewFlowGRPCClient() *grpc.Client
- func RandomAccount(flowClient access.Client) (flow.Address, *flow.AccountKey, crypto.Signer)
- func RandomPrivateKey() crypto.PrivateKey
- func RandomTransaction(flowClient access.Client) *flow.Transaction
- func ReadFile(path string) string
- func ServiceAccount(flowClient access.Client) (flow.Address, *flow.AccountKey, crypto.Signer)
- func WaitForSeal(ctx context.Context, c access.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 NewFlowGRPCClient ¶ added in v0.25.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 RandomTransaction ¶ added in v0.24.0
func ServiceAccount ¶ added in v0.4.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.