Documentation
¶
Index ¶
- type Accounts
- func (a *Accounts) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)
- func (a *Accounts) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)
- func (a *Accounts) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)
- func (a *Accounts) GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (uint64, error)
- func (a *Accounts) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)
- func (a *Accounts) GetAccountKeyAtBlockHeight(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)
- func (a *Accounts) GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountPublicKey, error)
- func (a *Accounts) GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)
- func (a *Accounts) GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]flow.AccountPublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accounts ¶
type Accounts struct {
// contains filtered or unexported fields
}
func NewAccountsBackend ¶
func NewAccountsBackend( log zerolog.Logger, state protocol.State, headers storage.Headers, connFactory connection.ConnectionFactory, nodeCommunicator node_communicator.Communicator, scriptExecMode query_mode.IndexQueryMode, scriptExecutor execution.ScriptExecutor, execNodeIdentitiesProvider *commonrpc.ExecutionNodeIdentitiesProvider, ) (*Accounts, error)
func (*Accounts) GetAccount ¶
GetAccount returns the account details at the latest sealed block. Alias for GetAccountAtLatestBlock
func (*Accounts) GetAccountAtBlockHeight ¶
func (a *Accounts) GetAccountAtBlockHeight( ctx context.Context, address flow.Address, height uint64, ) (*flow.Account, error)
GetAccountAtBlockHeight returns the account details at the given block height.
func (*Accounts) GetAccountAtLatestBlock ¶
func (a *Accounts) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)
GetAccountAtLatestBlock returns the account details at the latest sealed block.
func (*Accounts) GetAccountBalanceAtBlockHeight ¶
func (a *Accounts) GetAccountBalanceAtBlockHeight( ctx context.Context, address flow.Address, height uint64, ) (uint64, error)
GetAccountBalanceAtBlockHeight returns the account balance at the given block height.
func (*Accounts) GetAccountBalanceAtLatestBlock ¶
func (a *Accounts) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)
GetAccountBalanceAtLatestBlock returns the account balance at the latest sealed block.
func (*Accounts) GetAccountKeyAtBlockHeight ¶
func (a *Accounts) GetAccountKeyAtBlockHeight( ctx context.Context, address flow.Address, keyIndex uint32, height uint64, ) (*flow.AccountPublicKey, error)
GetAccountKeyAtBlockHeight returns the account public key by key index at the given block height.
func (*Accounts) GetAccountKeyAtLatestBlock ¶
func (a *Accounts) GetAccountKeyAtLatestBlock( ctx context.Context, address flow.Address, keyIndex uint32, ) (*flow.AccountPublicKey, error)
GetAccountKeyAtLatestBlock returns the account public key at the latest sealed block.
func (*Accounts) GetAccountKeysAtBlockHeight ¶
func (a *Accounts) GetAccountKeysAtBlockHeight( ctx context.Context, address flow.Address, height uint64, ) ([]flow.AccountPublicKey, error)
GetAccountKeysAtBlockHeight returns the account public keys at the given block height.
func (*Accounts) GetAccountKeysAtLatestBlock ¶
func (a *Accounts) GetAccountKeysAtLatestBlock( ctx context.Context, address flow.Address, ) ([]flow.AccountPublicKey, error)
GetAccountKeysAtLatestBlock returns the account public keys at the latest sealed block.