rpc

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CronosNamespace is the extension RPC namespace of cronos module.
	CronosNamespace = "cronos"

	ExceedBlockGasLimitError = "out of gas in location: block gas meter; gasWanted:"
)

Variables

This section is empty.

Functions

func CreateCronosRPCAPIs

func CreateCronosRPCAPIs(ctx *server.Context, clientCtx client.Context, _ *stream.RPCStream, allowUnprotectedTxs bool, indexer ethermint.EVMTxIndexer) []rpc.API

CreateCronosRPCAPIs creates extension json-rpc apis

Types

type CronosAPI

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

CronosAPI is the extension jsonrpc apis prefixed with cronos_.

func NewCronosAPI

func NewCronosAPI(
	logger log.Logger,
	clientCtx client.Context,
	backend backend.Backend,
) *CronosAPI

NewCronosAPI creates an instance of the cronos web3 extension apis.

func (*CronosAPI) GetTransactionReceiptsByBlock added in v0.7.0

func (api *CronosAPI) GetTransactionReceiptsByBlock(blockNrOrHash rpctypes.BlockNumberOrHash) ([]map[string]interface{}, error)

GetTransactionReceiptsByBlock returns all the transaction receipts included in the block.

func (*CronosAPI) ReplayBlock

func (api *CronosAPI) ReplayBlock(blockNrOrHash rpctypes.BlockNumberOrHash, postUpgrade bool) ([]map[string]interface{}, error)

ReplayBlock return tx receipts by replay all the eth transactions, if postUpgrade is true, the tx that exceeded block gas limit is treated as reverted, otherwise as committed.

Jump to

Keyboard shortcuts

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