handler

package
v0.28.15-access-admin-... Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

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 NewHandler

func NewHandler(api access.API, chain flow.Chain) *Handler

func (*Handler) ExecuteScriptAtBlockHeight

ExecuteScriptAtBlockHeight executes a script at a specific block height

func (*Handler) ExecuteScriptAtBlockID

ExecuteScriptAtBlockID executes a script at a specific block ID

func (*Handler) ExecuteScriptAtLatestBlock

ExecuteScriptAtLatestBlock executes a script at a the latest block

func (*Handler) GetAccount

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

GetAccountAtLatestBlock returns an account by address at the latest sealed block.

func (*Handler) GetBlockByHeight

GetBlockByHeight gets a block by height.

func (*Handler) GetBlockByID

GetBlockByHeight gets a block by ID.

func (*Handler) GetBlockHeaderByHeight

GetBlockHeaderByHeight gets a block header by height.

func (*Handler) GetBlockHeaderByID

GetBlockHeaderByID gets a block header by ID.

func (*Handler) GetCollectionByID

GetCollectionByID gets a collection by ID.

func (*Handler) GetEventsForBlockIDs

GetEventsForBlockIDs returns events matching a set of block IDs.

func (*Handler) GetEventsForHeightRange

GetEventsForHeightRange returns events matching a query.

func (*Handler) GetLatestBlock

GetLatestBlock gets the latest sealed block.

func (*Handler) GetLatestBlockHeader

GetLatestBlockHeader gets the latest sealed block header.

func (*Handler) GetTransaction

GetTransaction gets a transaction by ID.

func (*Handler) GetTransactionResult

GetTransactionResult gets a transaction by ID.

func (*Handler) Ping

Ping the Access API server for a response.

func (*Handler) SendTransaction

SendTransaction submits a transaction to the network.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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