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 ¶
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.
Click to show internal directories.
Click to hide internal directories.