Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
Types ¶
type Client ¶
type Client interface {
GetLatestBlockHeader(ctx context.Context, isSealed bool) (*flow.BlockHeader, error)
ExecuteScriptAtBlockHeight(ctx context.Context, height uint64, script []byte, arguments []cadence.Value) (cadence.Value, error)
GetBlockByHeight(ctx context.Context, height uint64) (*flow.Block, error)
GetTransaction(ctx context.Context, txID flow.Identifier) (*flow.Transaction, error)
GetEventsForHeightRange(ctx context.Context, query flowgrpc.EventRangeQuery) ([]flow.BlockEvents, error)
GetCollection(ctx context.Context, colID flow.Identifier) (*flow.Collection, error)
}
func NewClientFromConnection ¶
func NewClientFromConnection( conn grpc.ClientConnInterface, ) Client
Click to show internal directories.
Click to hide internal directories.