rpc

package
v2.0.0-...-a6f2824 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ElysiumNamespace is the extension RPC namespace of elysium module.
	ElysiumNamespace = "elysium"

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

Variables

This section is empty.

Functions

func CreateElysiumRPCAPIs

func CreateElysiumRPCAPIs(ctx *server.Context, clientCtx client.Context, tmWSClient *rpcclient.WSClient, allowUnprotectedTxs bool, indexer ethermint.EVMTxIndexer) []rpc.API

CreateElysiumRPCAPIs creates extension json-rpc apis

Types

type ElysiumAPI

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

ElysiumAPI is the extension jsonrpc apis prefixed with elysium_.

func NewElysiumAPI

func NewElysiumAPI(
	logger log.Logger,
	clientCtx client.Context,
	backend backend.Backend,
) *ElysiumAPI

NewElysiumAPI creates an instance of the elysium web3 extension apis.

func (*ElysiumAPI) GetTransactionReceiptsByBlock

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

GetTransactionReceiptsByBlock returns all the transaction receipts included in the block.

func (*ElysiumAPI) ReplayBlock

func (api *ElysiumAPI) 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