Help us shape the future of Go! Take the 2026 Go Developer Survey

access

package
v0.44.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2025 License: AGPL-3.0 Imports: 7 Imported by: 9

Documentation

Index

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 added in v0.44.0

type UnimplementedAPI struct{}

UnimplementedAPI provides an implementation of the access.API interface where all methods return unimplemented errors.

func NewUnimplementedAPI added in v0.44.0

func NewUnimplementedAPI() *UnimplementedAPI

NewUnimplementedAPI creates a new UnimplementedAPI instance.

func (*UnimplementedAPI) ExecuteScriptAtBlockHeight added in v0.44.0

func (u *UnimplementedAPI) ExecuteScriptAtBlockHeight(ctx context.Context, blockHeight uint64, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtBlockHeight returns an unimplemented error.

func (*UnimplementedAPI) ExecuteScriptAtBlockID added in v0.44.0

func (u *UnimplementedAPI) ExecuteScriptAtBlockID(ctx context.Context, blockID flow.Identifier, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtBlockID returns an unimplemented error.

func (*UnimplementedAPI) ExecuteScriptAtLatestBlock added in v0.44.0

func (u *UnimplementedAPI) ExecuteScriptAtLatestBlock(ctx context.Context, script []byte, arguments [][]byte) ([]byte, error)

ExecuteScriptAtLatestBlock returns an unimplemented error.

func (*UnimplementedAPI) GetAccount added in v0.44.0

func (u *UnimplementedAPI) GetAccount(ctx context.Context, address flow.Address) (*flow.Account, error)

GetAccount returns an unimplemented error.

func (*UnimplementedAPI) GetAccountAtBlockHeight added in v0.44.0

func (u *UnimplementedAPI) GetAccountAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (*flow.Account, error)

GetAccountAtBlockHeight returns an unimplemented error.

func (*UnimplementedAPI) GetAccountAtLatestBlock added in v0.44.0

func (u *UnimplementedAPI) GetAccountAtLatestBlock(ctx context.Context, address flow.Address) (*flow.Account, error)

GetAccountAtLatestBlock returns an unimplemented error.

func (*UnimplementedAPI) GetAccountBalanceAtBlockHeight added in v0.44.0

func (u *UnimplementedAPI) GetAccountBalanceAtBlockHeight(ctx context.Context, address flow.Address, height uint64) (uint64, error)

GetAccountBalanceAtBlockHeight returns an unimplemented error.

func (*UnimplementedAPI) GetAccountBalanceAtLatestBlock added in v0.44.0

func (u *UnimplementedAPI) GetAccountBalanceAtLatestBlock(ctx context.Context, address flow.Address) (uint64, error)

GetAccountBalanceAtLatestBlock returns an unimplemented error.

func (*UnimplementedAPI) GetAccountKeyAtBlockHeight added in v0.44.0

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 added in v0.44.0

func (u *UnimplementedAPI) GetAccountKeyAtLatestBlock(ctx context.Context, address flow.Address, keyIndex uint32) (*flow.AccountPublicKey, error)

GetAccountKeyAtLatestBlock returns an unimplemented error.

func (*UnimplementedAPI) GetAccountKeysAtBlockHeight added in v0.44.0

func (u *UnimplementedAPI) GetAccountKeysAtBlockHeight(ctx context.Context, address flow.Address, height uint64) ([]flow.AccountPublicKey, error)

GetAccountKeysAtBlockHeight returns an unimplemented error.

func (*UnimplementedAPI) GetAccountKeysAtLatestBlock added in v0.44.0

func (u *UnimplementedAPI) GetAccountKeysAtLatestBlock(ctx context.Context, address flow.Address) ([]flow.AccountPublicKey, error)

GetAccountKeysAtLatestBlock returns an unimplemented error.

func (*UnimplementedAPI) GetBlockByHeight added in v0.44.0

func (u *UnimplementedAPI) GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, flow.BlockStatus, error)

GetBlockByHeight returns an unimplemented error.

func (*UnimplementedAPI) GetBlockByID added in v0.44.0

GetBlockByID returns an unimplemented error.

func (*UnimplementedAPI) GetBlockHeaderByHeight added in v0.44.0

func (u *UnimplementedAPI) GetBlockHeaderByHeight(ctx context.Context, height uint64) (*flow.Header, flow.BlockStatus, error)

GetBlockHeaderByHeight returns an unimplemented error.

func (*UnimplementedAPI) GetBlockHeaderByID added in v0.44.0

func (u *UnimplementedAPI) GetBlockHeaderByID(ctx context.Context, id flow.Identifier) (*flow.Header, flow.BlockStatus, error)

GetBlockHeaderByID returns an unimplemented error.

func (*UnimplementedAPI) GetCollectionByID added in v0.44.0

func (u *UnimplementedAPI) GetCollectionByID(ctx context.Context, id flow.Identifier) (*flow.LightCollection, error)

GetCollectionByID returns an unimplemented error.

func (*UnimplementedAPI) GetEventsForBlockIDs added in v0.44.0

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 added in v0.44.0

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 added in v0.44.0

func (u *UnimplementedAPI) GetExecutionResultByID(ctx context.Context, id flow.Identifier) (*flow.ExecutionResult, error)

GetExecutionResultByID returns an unimplemented error.

func (*UnimplementedAPI) GetExecutionResultForBlockID added in v0.44.0

func (u *UnimplementedAPI) GetExecutionResultForBlockID(ctx context.Context, blockID flow.Identifier) (*flow.ExecutionResult, error)

GetExecutionResultForBlockID returns an unimplemented error.

func (*UnimplementedAPI) GetFullCollectionByID added in v0.44.0

func (u *UnimplementedAPI) GetFullCollectionByID(ctx context.Context, id flow.Identifier) (*flow.Collection, error)

GetFullCollectionByID returns an unimplemented error.

func (*UnimplementedAPI) GetLatestBlock added in v0.44.0

func (u *UnimplementedAPI) GetLatestBlock(ctx context.Context, isSealed bool) (*flow.Block, flow.BlockStatus, error)

GetLatestBlock returns an unimplemented error.

func (*UnimplementedAPI) GetLatestBlockHeader added in v0.44.0

func (u *UnimplementedAPI) GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.Header, flow.BlockStatus, error)

GetLatestBlockHeader returns an unimplemented error.

func (*UnimplementedAPI) GetLatestProtocolStateSnapshot added in v0.44.0

func (u *UnimplementedAPI) GetLatestProtocolStateSnapshot(ctx context.Context) ([]byte, error)

GetLatestProtocolStateSnapshot returns an unimplemented error.

func (*UnimplementedAPI) GetNetworkParameters added in v0.44.0

func (u *UnimplementedAPI) GetNetworkParameters(ctx context.Context) accessmodel.NetworkParameters

GetNetworkParameters returns an unimplemented error.

func (*UnimplementedAPI) GetNodeVersionInfo added in v0.44.0

func (u *UnimplementedAPI) GetNodeVersionInfo(ctx context.Context) (*accessmodel.NodeVersionInfo, error)

GetNodeVersionInfo returns an unimplemented error.

func (*UnimplementedAPI) GetProtocolStateSnapshotByBlockID added in v0.44.0

func (u *UnimplementedAPI) GetProtocolStateSnapshotByBlockID(ctx context.Context, blockID flow.Identifier) ([]byte, error)

GetProtocolStateSnapshotByBlockID returns an unimplemented error.

func (*UnimplementedAPI) GetProtocolStateSnapshotByHeight added in v0.44.0

func (u *UnimplementedAPI) GetProtocolStateSnapshotByHeight(ctx context.Context, blockHeight uint64) ([]byte, error)

GetProtocolStateSnapshotByHeight returns an unimplemented error.

func (*UnimplementedAPI) GetScheduledTransaction added in v0.44.0

func (u *UnimplementedAPI) GetScheduledTransaction(ctx context.Context, scheduledTxID uint64) (*flow.TransactionBody, error)

GetScheduledTransaction returns an unimplemented error.

func (*UnimplementedAPI) GetScheduledTransactionResult added in v0.44.0

func (u *UnimplementedAPI) GetScheduledTransactionResult(ctx context.Context, scheduledTxID uint64, encodingVersion entities.EventEncodingVersion) (*accessmodel.TransactionResult, error)

GetScheduledTransactionResult returns an unimplemented error.

func (*UnimplementedAPI) GetSystemTransaction added in v0.44.0

func (u *UnimplementedAPI) GetSystemTransaction(ctx context.Context, txID flow.Identifier, blockID flow.Identifier) (*flow.TransactionBody, error)

GetSystemTransaction returns an unimplemented error.

func (*UnimplementedAPI) GetSystemTransactionResult added in v0.44.0

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 added in v0.44.0

func (u *UnimplementedAPI) GetTransaction(ctx context.Context, id flow.Identifier) (*flow.TransactionBody, error)

GetTransaction returns an unimplemented error.

func (*UnimplementedAPI) GetTransactionResult added in v0.44.0

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 added in v0.44.0

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 added in v0.44.0

func (u *UnimplementedAPI) GetTransactionResultsByBlockID(ctx context.Context, blockID flow.Identifier, encodingVersion entities.EventEncodingVersion) ([]*accessmodel.TransactionResult, error)

GetTransactionResultsByBlockID returns an unimplemented error.

func (*UnimplementedAPI) GetTransactionsByBlockID added in v0.44.0

func (u *UnimplementedAPI) GetTransactionsByBlockID(ctx context.Context, blockID flow.Identifier) ([]*flow.TransactionBody, error)

GetTransactionsByBlockID returns an unimplemented error.

func (*UnimplementedAPI) Ping added in v0.44.0

func (u *UnimplementedAPI) Ping(ctx context.Context) error

Ping returns an unimplemented error.

func (*UnimplementedAPI) SendAndSubscribeTransactionStatuses added in v0.44.0

func (u *UnimplementedAPI) SendAndSubscribeTransactionStatuses(
	ctx context.Context,
	tx *flow.TransactionBody,
	requiredEventEncodingVersion entities.EventEncodingVersion,
) subscription.Subscription

SendAndSubscribeTransactionStatuses returns a failed subscription.

func (*UnimplementedAPI) SendTransaction added in v0.44.0

func (u *UnimplementedAPI) SendTransaction(ctx context.Context, tx *flow.TransactionBody) error

SendTransaction returns an unimplemented error.

func (*UnimplementedAPI) SubscribeBlockDigestsFromLatest added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlockDigestsFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockDigestsFromLatest returns a failed subscription.

func (*UnimplementedAPI) SubscribeBlockDigestsFromStartBlockID added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockDigestsFromStartBlockID returns a failed subscription.

func (*UnimplementedAPI) SubscribeBlockDigestsFromStartHeight added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlockDigestsFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockDigestsFromStartHeight returns a failed subscription.

func (*UnimplementedAPI) SubscribeBlockHeadersFromLatest added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlockHeadersFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockHeadersFromLatest returns a failed subscription.

func (*UnimplementedAPI) SubscribeBlockHeadersFromStartBlockID added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockHeadersFromStartBlockID returns a failed subscription.

func (*UnimplementedAPI) SubscribeBlockHeadersFromStartHeight added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlockHeadersFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlockHeadersFromStartHeight returns a failed subscription.

func (*UnimplementedAPI) SubscribeBlocksFromLatest added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlocksFromLatest(ctx context.Context, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlocksFromLatest returns a failed subscription.

func (*UnimplementedAPI) SubscribeBlocksFromStartBlockID added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlocksFromStartBlockID(ctx context.Context, startBlockID flow.Identifier, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlocksFromStartBlockID returns a failed subscription.

func (*UnimplementedAPI) SubscribeBlocksFromStartHeight added in v0.44.0

func (u *UnimplementedAPI) SubscribeBlocksFromStartHeight(ctx context.Context, startHeight uint64, blockStatus flow.BlockStatus) subscription.Subscription

SubscribeBlocksFromStartHeight returns a failed subscription.

func (*UnimplementedAPI) SubscribeTransactionStatuses added in v0.44.0

func (u *UnimplementedAPI) SubscribeTransactionStatuses(
	ctx context.Context,
	txID flow.Identifier,
	requiredEventEncodingVersion entities.EventEncodingVersion,
) subscription.Subscription

SubscribeTransactionStatuses returns a failed subscription.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL