client

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Txs       []std.Tx
	Height    uint64
	Timestamp int64
}

type Client

type Client interface {
	// GetLatestBlockNumber returns the latest block height from the chain
	GetLatestBlockNumber() (uint64, error)

	// GetBlocks returns a slice of Block - including the block height and its
	// timestamp in milliseconds - in the requested range only if they contain
	// transactions
	GetBlocks(ctx context.Context, from, to uint64) ([]*Block, error)

	// GetTxResults returns the block transaction results (if any)
	GetTxResults(block uint64) ([]*abci.ResponseDeliverTx, error)
}

Client defines the client interface for fetching chain data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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