jsonrpcindex

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	// contains filtered or unexported fields
}

func New

func New(
	blockchainDB func(chainState state.State) *emulator.BlockchainDB,
	stateByTrieRoot func(trieRoot trie.Hash) (state.State, error),
	indexDbEngine hivedb.Engine,
	indexDbPath string,
) *Index

func (*Index) BlockByHash

func (c *Index) BlockByHash(hash common.Hash) *types.Block

func (*Index) BlockByNumber

func (c *Index) BlockByNumber(n *big.Int) *types.Block

func (*Index) BlockTrieRootByIndex

func (c *Index) BlockTrieRootByIndex(n uint32) *trie.Hash

func (*Index) GetReceiptByTxHash

func (c *Index) GetReceiptByTxHash(hash common.Hash) *types.Receipt

func (*Index) IndexBlock

func (c *Index) IndexBlock(trieRoot trie.Hash)

func (*Index) TxByBlockHashAndIndex

func (c *Index) TxByBlockHashAndIndex(blockHash common.Hash, txIndex uint64) (tx *types.Transaction, blockNumber uint64)

func (*Index) TxByBlockNumberAndIndex

func (c *Index) TxByBlockNumberAndIndex(blockNumber *big.Int, txIndex uint64) (tx *types.Transaction, blockHash common.Hash)

func (*Index) TxByHash

func (c *Index) TxByHash(hash common.Hash) (tx *types.Transaction, blockHash common.Hash, blockNumber, txIndex uint64)

Jump to

Keyboard shortcuts

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