Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SwaNamespace is the extension RPC namespace of swa module. SwaNamespace = "swa" ExceedBlockGasLimitError = "out of gas in location: block gas meter; gasWanted:" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SwaAPI ¶
type SwaAPI struct {
// contains filtered or unexported fields
}
SwaAPI is the extension jsonrpc apis prefixed with swa_.
func (*SwaAPI) GetTransactionReceiptsByBlock ¶
func (api *SwaAPI) GetTransactionReceiptsByBlock(blockNrOrHash rpctypes.BlockNumberOrHash) ([]map[string]interface{}, error)
GetTransactionReceiptsByBlock returns all the transaction receipts included in the block.
func (*SwaAPI) ReplayBlock ¶
func (api *SwaAPI) 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.