Documentation
¶
Index ¶
- type API
- type AccountsAPI
- type EventsAPI
- type ScriptsAPI
- type TransactionStreamAPI
- type TransactionsAPI
- type UnimplementedAPI
- func (u *UnimplementedAPI) ExecuteScriptAtBlockHeight(ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte) ([]byte, error)
- func (u *UnimplementedAPI) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, ...) ([]byte, error)
- func (u *UnimplementedAPI) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments [][]byte) ([]byte, error)
- func (u *UnimplementedAPI) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)
- func (u *UnimplementedAPI) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)
- func (u *UnimplementedAPI) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)
- func (u *UnimplementedAPI) GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (uint64, error)
- func (u *UnimplementedAPI) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)
- func (u *UnimplementedAPI) GetAccountKeyAtBlockHeight(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)
- func (u *UnimplementedAPI) GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountPublicKey, error)
- func (u *UnimplementedAPI) GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)
- func (u *UnimplementedAPI) GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]flow.AccountPublicKey, error)
- func (u *UnimplementedAPI) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, flow.BlockStatus, error)
- func (u *UnimplementedAPI) GetBlockByID(ctx context.Context, id flow.Identifier) (*flow.Block, flow.BlockStatus, error)
- func (u *UnimplementedAPI) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.Header, flow.BlockStatus, error)
- func (u *UnimplementedAPI) GetBlockHeaderByID(ctx context.Context, id flow.Identifier) (*flow.Header, flow.BlockStatus, error)
- func (u *UnimplementedAPI) GetCollectionByID(ctx context.Context, id flow.Identifier) (*flow.LightCollection, error)
- func (u *UnimplementedAPI) GetEventsForBlockIDs(ctx context.Context, eventType string, blockIDs []flow.Identifier, ...) ([]flow.BlockEvents, error)
- func (u *UnimplementedAPI) GetEventsForHeightRange(ctx context.Context, eventType string, startHeight, endHeight uint64, ...) ([]flow.BlockEvents, error)
- func (u *UnimplementedAPI) GetExecutionResultByID(ctx context.Context, id flow.Identifier) (*flow.ExecutionResult, error)
- func (u *UnimplementedAPI) GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)
- func (u *UnimplementedAPI) GetFullCollectionByID(ctx context.Context, id flow.Identifier) (*flow.Collection, error)
- func (u *UnimplementedAPI) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, flow.BlockStatus, error)
- func (u *UnimplementedAPI) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.Header, flow.BlockStatus, error)
- func (u *UnimplementedAPI) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)
- func (u *UnimplementedAPI) GetNetworkParameters(ctx context.Context) accessmodel.NetworkParameters
- func (u *UnimplementedAPI) GetNodeVersionInfo(ctx context.Context) (*accessmodel.NodeVersionInfo, error)
- func (u *UnimplementedAPI) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)
- func (u *UnimplementedAPI) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)
- func (u *UnimplementedAPI) GetScheduledTransaction(ctx context.Context, scheduledTxID uint64) (*flow.TransactionBody, error)
- func (u *UnimplementedAPI) GetScheduledTransactionResult(ctx context.Context, scheduledTxID uint64, ...) (*accessmodel.TransactionResult, error)
- func (u *UnimplementedAPI) GetSystemTransaction(ctx context.Context, txID flow.Identifier, blockID flow.Identifier) (*flow.TransactionBody, error)
- func (u *UnimplementedAPI) GetSystemTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, ...) (*accessmodel.TransactionResult, error)
- func (u *UnimplementedAPI) GetTransaction(ctx context.Context, id flow.Identifier) (*flow.TransactionBody, error)
- func (u *UnimplementedAPI) GetTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, ...) (*accessmodel.TransactionResult, error)
- func (u *UnimplementedAPI) GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32, ...) (*accessmodel.TransactionResult, error)
- func (u *UnimplementedAPI) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier, ...) ([]*accessmodel.TransactionResult, error)
- func (u *UnimplementedAPI) GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionBody, error)
- func (u *UnimplementedAPI) Ping(ctx context.Context) error
- func (u *UnimplementedAPI) SendAndSubscribeTransactionStatuses(ctx context.Context, tx *flow.TransactionBody, ...) subscription.Subscription
- func (u *UnimplementedAPI) SendTransaction(ctx context.Context, tx *flow.TransactionBody) error
- func (u *UnimplementedAPI) SubscribeBlockDigestsFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeBlockDigestsFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeBlockHeadersFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeBlockHeadersFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeBlocksFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeBlocksFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, ...) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeBlocksFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
- func (u *UnimplementedAPI) SubscribeTransactionStatuses(ctx context.Context, txID flow.Identifier, ...) subscription.Subscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface {
AccountsAPI
EventsAPI
ScriptsAPI
TransactionsAPI
TransactionStreamAPI
Ping(ctx context.Context) error
GetNetworkParameters(ctx context.Context) accessmodel.NetworkParameters
GetNodeVersionInfo(ctx context.Context) (*accessmodel.NodeVersionInfo, error)
GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.Header, flow.BlockStatus, error)
GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.Header, flow.BlockStatus, error)
GetBlockHeaderByID(ctx context.Context, id flow.Identifier) (*flow.Header, flow.BlockStatus, error)
GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, flow.BlockStatus, error)
GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, flow.BlockStatus, error)
GetBlockByID(ctx context.Context, id flow.Identifier) (*flow.Block, flow.BlockStatus, error)
GetCollectionByID(ctx context.Context, id flow.Identifier) (*flow.LightCollection, error)
GetFullCollectionByID(ctx context.Context, id flow.Identifier) (*flow.Collection, error)
GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)
GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)
GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)
GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)
GetExecutionResultByID(ctx context.Context, id flow.Identifier) (*flow.ExecutionResult, error)
// SubscribeBlocksFromStartBlockID subscribes to the finalized or sealed blocks starting at the requested
// start block id, up until the latest available block. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block as it becomes available.
//
// Each block is filtered by the provided block status, and only
// those blocks that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - startBlockID: The identifier of the starting block.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlocksFromStartBlockID will return a failed subscription.
SubscribeBlocksFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription
// SubscribeBlocksFromStartHeight subscribes to the finalized or sealed blocks starting at the requested
// start block height, up until the latest available block. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block as it becomes available.
//
// Each block is filtered by the provided block status, and only
// those blocks that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - startHeight: The height of the starting block.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlocksFromStartHeight will return a failed subscription.
SubscribeBlocksFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
// SubscribeBlocksFromLatest subscribes to the finalized or sealed blocks starting at the latest sealed block,
// up until the latest available block. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block as it becomes available.
//
// Each block is filtered by the provided block status, and only
// those blocks that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlocksFromLatest will return a failed subscription.
SubscribeBlocksFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
// SubscribeBlockHeadersFromStartBlockID streams finalized or sealed block headers starting at the requested
// start block id, up until the latest available block header. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block header as it becomes available.
//
// Each block header are filtered by the provided block status, and only
// those block headers that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - startBlockID: The identifier of the starting block.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlockHeadersFromStartBlockID will return a failed subscription.
SubscribeBlockHeadersFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription
// SubscribeBlockHeadersFromStartHeight streams finalized or sealed block headers starting at the requested
// start block height, up until the latest available block header. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block header as it becomes available.
//
// Each block header are filtered by the provided block status, and only
// those block headers that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - startHeight: The height of the starting block.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlockHeadersFromStartHeight will return a failed subscription.
SubscribeBlockHeadersFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
// SubscribeBlockHeadersFromLatest streams finalized or sealed block headers starting at the latest sealed block,
// up until the latest available block header. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block header as it becomes available.
//
// Each block header are filtered by the provided block status, and only
// those block headers that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlockHeadersFromLatest will return a failed subscription.
SubscribeBlockHeadersFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
// SubscribeBlockDigestsFromStartBlockID streams finalized or sealed lightweight block starting at the requested
// start block id, up until the latest available block. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block as it becomes available.
//
// Each lightweight block are filtered by the provided block status, and only
// those blocks that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - startBlockID: The identifier of the starting block.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlockDigestsFromStartBlockID will return a failed subscription.
SubscribeBlockDigestsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription
// SubscribeBlockDigestsFromStartHeight streams finalized or sealed lightweight block starting at the requested
// start block height, up until the latest available block. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block as it becomes available.
//
// Each lightweight block are filtered by the provided block status, and only
// those blocks that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - startHeight: The height of the starting block.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlockDigestsFromStartHeight will return a failed subscription.
SubscribeBlockDigestsFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
// SubscribeBlockDigestsFromLatest streams finalized or sealed lightweight block starting at the latest sealed block,
// up until the latest available block. Once the latest is
// reached, the stream will remain open and responses are sent for each new
// block as it becomes available.
//
// Each lightweight block are filtered by the provided block status, and only
// those blocks that match the status are returned.
//
// Parameters:
// - ctx: Context for the operation.
// - blockStatus: The status of the block, which could be only BlockStatusSealed or BlockStatusFinalized.
//
// If invalid parameters will be supplied SubscribeBlockDigestsFromLatest will return a failed subscription.
SubscribeBlockDigestsFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
}
API provides all public-facing functionality of the Flow Access API.
type AccountsAPI ¶ added in v0.43.0
type AccountsAPI interface {
GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)
GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)
GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)
GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)
GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (uint64, error)
GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountPublicKey, error)
GetAccountKeyAtBlockHeight(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)
GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]flow.AccountPublicKey, error)
GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)
}
type EventsAPI ¶ added in v0.43.0
type EventsAPI interface {
GetEventsForHeightRange(
ctx context.Context,
eventType string,
startHeight,
endHeight uint64,
requiredEventEncodingVersion entities.EventEncodingVersion,
) ([]flow.BlockEvents, error)
GetEventsForBlockIDs(
ctx context.Context,
eventType string,
blockIDs []flow.Identifier,
requiredEventEncodingVersion entities.EventEncodingVersion,
) ([]flow.BlockEvents, error)
}
type ScriptsAPI ¶ added in v0.43.0
type ScriptsAPI interface {
ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments [][]byte) ([]byte, error)
ExecuteScriptAtBlockHeight(ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte) ([]byte, error)
ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, arguments [][]byte) ([]byte, error)
}
type TransactionStreamAPI ¶ added in v0.43.0
type TransactionStreamAPI interface {
// SubscribeTransactionStatuses subscribes to transaction status updates for a given transaction ID. Monitoring starts
// from the latest block to obtain the current transaction status. If the transaction is already in the final state
// ([flow.TransactionStatusSealed] or [flow.TransactionStatusExpired]), all statuses will be prepared and sent to the client
// sequentially. If the transaction is not in the final state, the subscription will stream status updates until the transaction
// reaches the final state. Once a final state is reached, the subscription will automatically terminate.
//
// Parameters:
// - ctx: Context to manage the subscription's lifecycle, including cancellation.
// - txID: The unique identifier of the transaction to monitor.
// - requiredEventEncodingVersion: The version of event encoding required for the subscription.
SubscribeTransactionStatuses(
ctx context.Context,
txID flow.Identifier,
requiredEventEncodingVersion entities.EventEncodingVersion,
) subscription.Subscription
// SendAndSubscribeTransactionStatuses sends a transaction to the execution node and subscribes to its status updates.
// Monitoring begins from the reference block saved in the transaction itself and streams status updates until the transaction
// reaches the final state ([flow.TransactionStatusSealed] or [flow.TransactionStatusExpired]). Once the final status has been reached, the subscription
// automatically terminates.
//
// Parameters:
// - ctx: The context to manage the transaction sending and subscription lifecycle, including cancellation.
// - tx: The transaction body to be sent and monitored.
// - requiredEventEncodingVersion: The version of event encoding required for the subscription.
//
// If the transaction cannot be sent, the subscription will fail and return a failed subscription.
SendAndSubscribeTransactionStatuses(
ctx context.Context,
tx *flow.TransactionBody,
requiredEventEncodingVersion entities.EventEncodingVersion,
) subscription.Subscription
}
type TransactionsAPI ¶ added in v0.43.0
type TransactionsAPI interface {
SendTransaction(ctx context.Context, tx *flow.TransactionBody) error
GetTransaction(ctx context.Context, id flow.Identifier) (*flow.TransactionBody, error)
GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionBody, error)
GetTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, collectionID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)
GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)
GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) ([]*accessmodel.TransactionResult, error)
GetSystemTransaction(ctx context.Context, txID flow.Identifier, blockID flow.Identifier) (*flow.TransactionBody, error)
GetSystemTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)
GetScheduledTransaction(ctx context.Context, scheduledTxID uint64) (*flow.TransactionBody, error)
GetScheduledTransactionResult(ctx context.Context, scheduledTxID uint64, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)
}
type UnimplementedAPI ¶
type UnimplementedAPI struct{}
UnimplementedAPI provides an implementation of the access.API interface where all methods return unimplemented errors.
func NewUnimplementedAPI ¶
func NewUnimplementedAPI() *UnimplementedAPI
NewUnimplementedAPI creates a new UnimplementedAPI instance.
func (*UnimplementedAPI) ExecuteScriptAtBlockHeight ¶
func (u *UnimplementedAPI) ExecuteScriptAtBlockHeight(ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte) ([]byte, error)
ExecuteScriptAtBlockHeight returns an unimplemented error.
func (*UnimplementedAPI) ExecuteScriptAtBlockID ¶
func (u *UnimplementedAPI) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, arguments [][]byte) ([]byte, error)
ExecuteScriptAtBlockID returns an unimplemented error.
func (*UnimplementedAPI) ExecuteScriptAtLatestBlock ¶
func (u *UnimplementedAPI) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments [][]byte) ([]byte, error)
ExecuteScriptAtLatestBlock returns an unimplemented error.
func (*UnimplementedAPI) GetAccount ¶
func (u *UnimplementedAPI) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)
GetAccount returns an unimplemented error.
func (*UnimplementedAPI) GetAccountAtBlockHeight ¶
func (u *UnimplementedAPI) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)
GetAccountAtBlockHeight returns an unimplemented error.
func (*UnimplementedAPI) GetAccountAtLatestBlock ¶
func (u *UnimplementedAPI) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)
GetAccountAtLatestBlock returns an unimplemented error.
func (*UnimplementedAPI) GetAccountBalanceAtBlockHeight ¶
func (u *UnimplementedAPI) GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (uint64, error)
GetAccountBalanceAtBlockHeight returns an unimplemented error.
func (*UnimplementedAPI) GetAccountBalanceAtLatestBlock ¶
func (u *UnimplementedAPI) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)
GetAccountBalanceAtLatestBlock returns an unimplemented error.
func (*UnimplementedAPI) GetAccountKeyAtBlockHeight ¶
func (u *UnimplementedAPI) GetAccountKeyAtBlockHeight(ctx context.Context, address flow.Address, keyIndex uint32, height uint64) (*flow.AccountPublicKey, error)
GetAccountKeyAtBlockHeight returns an unimplemented error.
func (*UnimplementedAPI) GetAccountKeyAtLatestBlock ¶
func (u *UnimplementedAPI) GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountPublicKey, error)
GetAccountKeyAtLatestBlock returns an unimplemented error.
func (*UnimplementedAPI) GetAccountKeysAtBlockHeight ¶
func (u *UnimplementedAPI) GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)
GetAccountKeysAtBlockHeight returns an unimplemented error.
func (*UnimplementedAPI) GetAccountKeysAtLatestBlock ¶
func (u *UnimplementedAPI) GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]flow.AccountPublicKey, error)
GetAccountKeysAtLatestBlock returns an unimplemented error.
func (*UnimplementedAPI) GetBlockByHeight ¶
func (u *UnimplementedAPI) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, flow.BlockStatus, error)
GetBlockByHeight returns an unimplemented error.
func (*UnimplementedAPI) GetBlockByID ¶
func (u *UnimplementedAPI) GetBlockByID(ctx context.Context, id flow.Identifier) (*flow.Block, flow.BlockStatus, error)
GetBlockByID returns an unimplemented error.
func (*UnimplementedAPI) GetBlockHeaderByHeight ¶
func (u *UnimplementedAPI) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.Header, flow.BlockStatus, error)
GetBlockHeaderByHeight returns an unimplemented error.
func (*UnimplementedAPI) GetBlockHeaderByID ¶
func (u *UnimplementedAPI) GetBlockHeaderByID(ctx context.Context, id flow.Identifier) (*flow.Header, flow.BlockStatus, error)
GetBlockHeaderByID returns an unimplemented error.
func (*UnimplementedAPI) GetCollectionByID ¶
func (u *UnimplementedAPI) GetCollectionByID(ctx context.Context, id flow.Identifier) (*flow.LightCollection, error)
GetCollectionByID returns an unimplemented error.
func (*UnimplementedAPI) GetEventsForBlockIDs ¶
func (u *UnimplementedAPI) GetEventsForBlockIDs( ctx context.Context, eventType string, blockIDs []flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion, ) ([]flow.BlockEvents, error)
GetEventsForBlockIDs returns an unimplemented error.
func (*UnimplementedAPI) GetEventsForHeightRange ¶
func (u *UnimplementedAPI) GetEventsForHeightRange( ctx context.Context, eventType string, startHeight, endHeight uint64, requiredEventEncodingVersion entities.EventEncodingVersion, ) ([]flow.BlockEvents, error)
GetEventsForHeightRange returns an unimplemented error.
func (*UnimplementedAPI) GetExecutionResultByID ¶
func (u *UnimplementedAPI) GetExecutionResultByID(ctx context.Context, id flow.Identifier) (*flow.ExecutionResult, error)
GetExecutionResultByID returns an unimplemented error.
func (*UnimplementedAPI) GetExecutionResultForBlockID ¶
func (u *UnimplementedAPI) GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)
GetExecutionResultForBlockID returns an unimplemented error.
func (*UnimplementedAPI) GetFullCollectionByID ¶
func (u *UnimplementedAPI) GetFullCollectionByID(ctx context.Context, id flow.Identifier) (*flow.Collection, error)
GetFullCollectionByID returns an unimplemented error.
func (*UnimplementedAPI) GetLatestBlock ¶
func (u *UnimplementedAPI) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, flow.BlockStatus, error)
GetLatestBlock returns an unimplemented error.
func (*UnimplementedAPI) GetLatestBlockHeader ¶
func (u *UnimplementedAPI) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.Header, flow.BlockStatus, error)
GetLatestBlockHeader returns an unimplemented error.
func (*UnimplementedAPI) GetLatestProtocolStateSnapshot ¶
func (u *UnimplementedAPI) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)
GetLatestProtocolStateSnapshot returns an unimplemented error.
func (*UnimplementedAPI) GetNetworkParameters ¶
func (u *UnimplementedAPI) GetNetworkParameters(ctx context.Context) accessmodel.NetworkParameters
GetNetworkParameters returns an unimplemented error.
func (*UnimplementedAPI) GetNodeVersionInfo ¶
func (u *UnimplementedAPI) GetNodeVersionInfo(ctx context.Context) (*accessmodel.NodeVersionInfo, error)
GetNodeVersionInfo returns an unimplemented error.
func (*UnimplementedAPI) GetProtocolStateSnapshotByBlockID ¶
func (u *UnimplementedAPI) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)
GetProtocolStateSnapshotByBlockID returns an unimplemented error.
func (*UnimplementedAPI) GetProtocolStateSnapshotByHeight ¶
func (u *UnimplementedAPI) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)
GetProtocolStateSnapshotByHeight returns an unimplemented error.
func (*UnimplementedAPI) GetScheduledTransaction ¶
func (u *UnimplementedAPI) GetScheduledTransaction(ctx context.Context, scheduledTxID uint64) (*flow.TransactionBody, error)
GetScheduledTransaction returns an unimplemented error.
func (*UnimplementedAPI) GetScheduledTransactionResult ¶
func (u *UnimplementedAPI) GetScheduledTransactionResult(ctx context.Context, scheduledTxID uint64, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)
GetScheduledTransactionResult returns an unimplemented error.
func (*UnimplementedAPI) GetSystemTransaction ¶
func (u *UnimplementedAPI) GetSystemTransaction(ctx context.Context, txID flow.Identifier, blockID flow.Identifier) (*flow.TransactionBody, error)
GetSystemTransaction returns an unimplemented error.
func (*UnimplementedAPI) GetSystemTransactionResult ¶
func (u *UnimplementedAPI) GetSystemTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)
GetSystemTransactionResult returns an unimplemented error.
func (*UnimplementedAPI) GetTransaction ¶
func (u *UnimplementedAPI) GetTransaction(ctx context.Context, id flow.Identifier) (*flow.TransactionBody, error)
GetTransaction returns an unimplemented error.
func (*UnimplementedAPI) GetTransactionResult ¶
func (u *UnimplementedAPI) GetTransactionResult(ctx context.Context, txID flow.Identifier, blockID flow.Identifier, collectionID flow.Identifier, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)
GetTransactionResult returns an unimplemented error.
func (*UnimplementedAPI) GetTransactionResultByIndex ¶
func (u *UnimplementedAPI) GetTransactionResultByIndex(ctx context.Context, blockID flow.Identifier, index uint32, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)
GetTransactionResultByIndex returns an unimplemented error.
func (*UnimplementedAPI) GetTransactionResultsByBlockID ¶
func (u *UnimplementedAPI) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) ([]*accessmodel.TransactionResult, error)
GetTransactionResultsByBlockID returns an unimplemented error.
func (*UnimplementedAPI) GetTransactionsByBlockID ¶
func (u *UnimplementedAPI) GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionBody, error)
GetTransactionsByBlockID returns an unimplemented error.
func (*UnimplementedAPI) Ping ¶
func (u *UnimplementedAPI) Ping(ctx context.Context) error
Ping returns an unimplemented error.
func (*UnimplementedAPI) SendAndSubscribeTransactionStatuses ¶
func (u *UnimplementedAPI) SendAndSubscribeTransactionStatuses( ctx context.Context, tx *flow.TransactionBody, requiredEventEncodingVersion entities.EventEncodingVersion, ) subscription.Subscription
SendAndSubscribeTransactionStatuses returns a failed subscription.
func (*UnimplementedAPI) SendTransaction ¶
func (u *UnimplementedAPI) SendTransaction(ctx context.Context, tx *flow.TransactionBody) error
SendTransaction returns an unimplemented error.
func (*UnimplementedAPI) SubscribeBlockDigestsFromLatest ¶
func (u *UnimplementedAPI) SubscribeBlockDigestsFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlockDigestsFromLatest returns a failed subscription.
func (*UnimplementedAPI) SubscribeBlockDigestsFromStartBlockID ¶
func (u *UnimplementedAPI) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlockDigestsFromStartBlockID returns a failed subscription.
func (*UnimplementedAPI) SubscribeBlockDigestsFromStartHeight ¶
func (u *UnimplementedAPI) SubscribeBlockDigestsFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlockDigestsFromStartHeight returns a failed subscription.
func (*UnimplementedAPI) SubscribeBlockHeadersFromLatest ¶
func (u *UnimplementedAPI) SubscribeBlockHeadersFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlockHeadersFromLatest returns a failed subscription.
func (*UnimplementedAPI) SubscribeBlockHeadersFromStartBlockID ¶
func (u *UnimplementedAPI) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlockHeadersFromStartBlockID returns a failed subscription.
func (*UnimplementedAPI) SubscribeBlockHeadersFromStartHeight ¶
func (u *UnimplementedAPI) SubscribeBlockHeadersFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlockHeadersFromStartHeight returns a failed subscription.
func (*UnimplementedAPI) SubscribeBlocksFromLatest ¶
func (u *UnimplementedAPI) SubscribeBlocksFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlocksFromLatest returns a failed subscription.
func (*UnimplementedAPI) SubscribeBlocksFromStartBlockID ¶
func (u *UnimplementedAPI) SubscribeBlocksFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlocksFromStartBlockID returns a failed subscription.
func (*UnimplementedAPI) SubscribeBlocksFromStartHeight ¶
func (u *UnimplementedAPI) SubscribeBlocksFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription
SubscribeBlocksFromStartHeight returns a failed subscription.
func (*UnimplementedAPI) SubscribeTransactionStatuses ¶
func (u *UnimplementedAPI) SubscribeTransactionStatuses( ctx context.Context, txID flow.Identifier, requiredEventEncodingVersion entities.EventEncodingVersion, ) subscription.Subscription
SubscribeTransactionStatuses returns a failed subscription.