Documentation ¶
Index ¶
- type Handler
- func (h *Handler) ExecuteScriptAtBlockHeight(ctx context.Context, req *accessproto.ExecuteScriptAtBlockHeightRequest) (*accessproto.ExecuteScriptResponse, error)
- func (h *Handler) ExecuteScriptAtBlockID(ctx context.Context, req *accessproto.ExecuteScriptAtBlockIDRequest) (*accessproto.ExecuteScriptResponse, error)
- func (h *Handler) ExecuteScriptAtLatestBlock(ctx context.Context, req *accessproto.ExecuteScriptAtLatestBlockRequest) (*accessproto.ExecuteScriptResponse, error)
- func (h *Handler) GetAccount(ctx context.Context, req *accessproto.GetAccountRequest) (*accessproto.GetAccountResponse, error)
- func (h *Handler) GetAccountAtBlockHeight(ctx context.Context, request *accessproto.GetAccountAtBlockHeightRequest) (*accessproto.AccountResponse, error)
- func (h *Handler) GetAccountAtLatestBlock(ctx context.Context, req *accessproto.GetAccountAtLatestBlockRequest) (*accessproto.AccountResponse, error)
- func (h *Handler) GetBlockByHeight(ctx context.Context, req *accessproto.GetBlockByHeightRequest) (*accessproto.BlockResponse, error)
- func (h *Handler) GetBlockByID(ctx context.Context, req *accessproto.GetBlockByIDRequest) (*accessproto.BlockResponse, error)
- func (h *Handler) GetBlockHeaderByHeight(ctx context.Context, req *accessproto.GetBlockHeaderByHeightRequest) (*accessproto.BlockHeaderResponse, error)
- func (h *Handler) GetBlockHeaderByID(ctx context.Context, req *accessproto.GetBlockHeaderByIDRequest) (*accessproto.BlockHeaderResponse, error)
- func (h *Handler) GetCollectionByID(ctx context.Context, req *accessproto.GetCollectionByIDRequest) (*accessproto.CollectionResponse, error)
- func (h *Handler) GetEventsForBlockIDs(ctx context.Context, req *accessproto.GetEventsForBlockIDsRequest) (*accessproto.EventsResponse, error)
- func (h *Handler) GetEventsForHeightRange(ctx context.Context, req *accessproto.GetEventsForHeightRangeRequest) (*accessproto.EventsResponse, error)
- func (h *Handler) GetLatestBlock(ctx context.Context, req *accessproto.GetLatestBlockRequest) (*accessproto.BlockResponse, error)
- func (h *Handler) GetLatestBlockHeader(ctx context.Context, req *accessproto.GetLatestBlockHeaderRequest) (*accessproto.BlockHeaderResponse, error)
- func (h *Handler) GetNetworkParameters(context.Context, *accessproto.GetNetworkParametersRequest) (*accessproto.GetNetworkParametersResponse, error)
- func (h *Handler) GetTransaction(ctx context.Context, req *accessproto.GetTransactionRequest) (*accessproto.TransactionResponse, error)
- func (h *Handler) GetTransactionResult(ctx context.Context, req *accessproto.GetTransactionRequest) (*accessproto.TransactionResultResponse, error)
- func (h *Handler) Ping(context.Context, *accessproto.PingRequest) (*accessproto.PingResponse, error)
- func (h *Handler) SendTransaction(ctx context.Context, req *accessproto.SendTransactionRequest) (*accessproto.SendTransactionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) ExecuteScriptAtBlockHeight ¶
func (h *Handler) ExecuteScriptAtBlockHeight( ctx context.Context, req *accessproto.ExecuteScriptAtBlockHeightRequest, ) (*accessproto.ExecuteScriptResponse, error)
ExecuteScriptAtBlockHeight executes a script at a specific block height
func (*Handler) ExecuteScriptAtBlockID ¶
func (h *Handler) ExecuteScriptAtBlockID( ctx context.Context, req *accessproto.ExecuteScriptAtBlockIDRequest, ) (*accessproto.ExecuteScriptResponse, error)
ExecuteScriptAtBlockID executes a script at a specific block ID
func (*Handler) ExecuteScriptAtLatestBlock ¶
func (h *Handler) ExecuteScriptAtLatestBlock( ctx context.Context, req *accessproto.ExecuteScriptAtLatestBlockRequest, ) (*accessproto.ExecuteScriptResponse, error)
ExecuteScriptAtLatestBlock executes a script at a the latest block
func (*Handler) GetAccount ¶
func (h *Handler) GetAccount( ctx context.Context, req *accessproto.GetAccountRequest, ) (*accessproto.GetAccountResponse, error)
GetAccount returns an account by address at the latest sealed block.
func (*Handler) GetAccountAtBlockHeight ¶
func (h *Handler) GetAccountAtBlockHeight( ctx context.Context, request *accessproto.GetAccountAtBlockHeightRequest, ) (*accessproto.AccountResponse, error)
func (*Handler) GetAccountAtLatestBlock ¶
func (h *Handler) GetAccountAtLatestBlock( ctx context.Context, req *accessproto.GetAccountAtLatestBlockRequest, ) (*accessproto.AccountResponse, error)
GetAccountAtLatestBlock returns an account by address at the latest sealed block.
func (*Handler) GetBlockByHeight ¶
func (h *Handler) GetBlockByHeight( ctx context.Context, req *accessproto.GetBlockByHeightRequest, ) (*accessproto.BlockResponse, error)
GetBlockByHeight gets a block by height.
func (*Handler) GetBlockByID ¶
func (h *Handler) GetBlockByID( ctx context.Context, req *accessproto.GetBlockByIDRequest, ) (*accessproto.BlockResponse, error)
GetBlockByHeight gets a block by ID.
func (*Handler) GetBlockHeaderByHeight ¶
func (h *Handler) GetBlockHeaderByHeight( ctx context.Context, req *accessproto.GetBlockHeaderByHeightRequest, ) (*accessproto.BlockHeaderResponse, error)
GetBlockHeaderByHeight gets a block header by height.
func (*Handler) GetBlockHeaderByID ¶
func (h *Handler) GetBlockHeaderByID( ctx context.Context, req *accessproto.GetBlockHeaderByIDRequest, ) (*accessproto.BlockHeaderResponse, error)
GetBlockHeaderByID gets a block header by ID.
func (*Handler) GetCollectionByID ¶
func (h *Handler) GetCollectionByID( ctx context.Context, req *accessproto.GetCollectionByIDRequest, ) (*accessproto.CollectionResponse, error)
GetCollectionByID gets a collection by ID.
func (*Handler) GetEventsForBlockIDs ¶
func (h *Handler) GetEventsForBlockIDs( ctx context.Context, req *accessproto.GetEventsForBlockIDsRequest, ) (*accessproto.EventsResponse, error)
GetEventsForBlockIDs returns events matching a set of block IDs.
func (*Handler) GetEventsForHeightRange ¶
func (h *Handler) GetEventsForHeightRange( ctx context.Context, req *accessproto.GetEventsForHeightRangeRequest, ) (*accessproto.EventsResponse, error)
GetEventsForHeightRange returns events matching a query.
func (*Handler) GetLatestBlock ¶
func (h *Handler) GetLatestBlock( ctx context.Context, req *accessproto.GetLatestBlockRequest, ) (*accessproto.BlockResponse, error)
GetLatestBlock gets the latest sealed block.
func (*Handler) GetLatestBlockHeader ¶
func (h *Handler) GetLatestBlockHeader( ctx context.Context, req *accessproto.GetLatestBlockHeaderRequest, ) (*accessproto.BlockHeaderResponse, error)
GetLatestBlockHeader gets the latest sealed block header.
func (*Handler) GetNetworkParameters ¶
func (h *Handler) GetNetworkParameters( context.Context, *accessproto.GetNetworkParametersRequest, ) (*accessproto.GetNetworkParametersResponse, error)
func (*Handler) GetTransaction ¶
func (h *Handler) GetTransaction( ctx context.Context, req *accessproto.GetTransactionRequest, ) (*accessproto.TransactionResponse, error)
GetTransaction gets a transaction by ID.
func (*Handler) GetTransactionResult ¶
func (h *Handler) GetTransactionResult( ctx context.Context, req *accessproto.GetTransactionRequest, ) (*accessproto.TransactionResultResponse, error)
GetTransactionResult gets a transaction by ID.
func (*Handler) Ping ¶
func (h *Handler) Ping(context.Context, *accessproto.PingRequest) (*accessproto.PingResponse, error)
Ping the Access API server for a response.
func (*Handler) SendTransaction ¶
func (h *Handler) SendTransaction( ctx context.Context, req *accessproto.SendTransactionRequest, ) (*accessproto.SendTransactionResponse, error)
SendTransaction submits a transaction to the network.