Documentation
¶
Index ¶
- Variables
- func CreateAccount(flowClient access.Client, publicKeys []*flow.AccountKey) *flow.Account
- func CreateAccountWithContracts(flowClient access.Client, publicKeys []*flow.AccountKey, ...) *flow.Account
- func First[T any](arr []T, f func(e T) bool) (T, error)
- 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 Print[T any](object T)
- func RandomAccount(flowClient access.Client) (flow.Address, *flow.AccountKey, crypto.Signer)
- func RandomPrivateKey() crypto.PrivateKey
- func RandomTransaction(flowClient access.Client) *flow.Transaction
- func ReadFile(name 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 ¶
View Source
var Config *config.Config
Functions ¶
func CreateAccount ¶
func FundAccountInEmulator ¶
FundAccountInEmulator Mints FLOW to an account. Minting only works in an emulator environment.
func GetReferenceBlockId ¶
func NewFlowGRPCClient ¶
func RandomAccount ¶
func RandomPrivateKey ¶
func RandomPrivateKey() crypto.PrivateKey
RandomPrivateKey returns a randomly generated ECDSA P-256 private key.
func RandomTransaction ¶
func ServiceAccount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.