Documentation
¶
Overview ¶
Package ethapi exposes the internal ethapi package.
Index ¶
- func DoCall(ctx context.Context, b Backend, args TransactionArgs, ...) (*core.ExecutionResult, error)
- func MarshalReceipt(r *types.Receipt, blockHash common.Hash, blockNumber uint64, ...) map[string]any
- type AddrLocker
- type Backend
- type BlockChainAPI
- type BlockOverrides
- type DebugAPI
- type EthereumAPI
- type RPCTransaction
- type RevertError
- type SignTransactionResult
- type StateOverride
- type TransactionAPI
- type TransactionArgs
- type TxPoolAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoCall ¶
func DoCall(ctx context.Context, b Backend, args TransactionArgs, blockNrOrHash rpc.BlockNumberOrHash, overrides *StateOverride, blockOverrides *BlockOverrides, timeout time.Duration, globalGasCap uint64) (*core.ExecutionResult, error)
DoCall is identical to ethapi.DoCall.
func MarshalReceipt ¶
func MarshalReceipt(r *types.Receipt, blockHash common.Hash, blockNumber uint64, signer types.Signer, tx *types.Transaction, txIndex int) map[string]any
MarshalReceipt is identical to ethapi.MarshalReceipt.
Types ¶
type BlockChainAPI ¶
type BlockChainAPI = ethapi.BlockChainAPI
BlockChainAPI provides an API to access Ethereum blockchain data.
func NewBlockChainAPI ¶
func NewBlockChainAPI(b Backend) *BlockChainAPI
NewBlockChainAPI is identical to ethapi.NewBlockChainAPI.
type BlockOverrides ¶
type BlockOverrides = ethapi.BlockOverrides
Type aliases for types used as arguments or responses to the APIs.
type DebugAPI ¶
DebugAPI is the collection of Ethereum APIs exposed over the debugging namespace.
func NewDebugAPI ¶
NewDebugAPI is identical to ethapi.NewDebugAPI.
type EthereumAPI ¶
type EthereumAPI = ethapi.EthereumAPI
EthereumAPI provides an API to access Ethereum related information.
func NewEthereumAPI ¶
func NewEthereumAPI(b Backend) *EthereumAPI
NewEthereumAPI is identical to ethapi.NewEthereumAPI.
type RPCTransaction ¶
type RPCTransaction = ethapi.RPCTransaction
Type aliases for types used as arguments or responses to the APIs.
func NewRPCPendingTransaction ¶
func NewRPCPendingTransaction(tx *types.Transaction, current *types.Header, config *params.ChainConfig) *RPCTransaction
NewRPCPendingTransaction is identical to ethapi.NewRPCPendingTransaction.
func NewRPCTransaction ¶
func NewRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber uint64, blockTime uint64, index uint64, baseFee *big.Int, config *params.ChainConfig) *RPCTransaction
NewRPCTransaction is identical to ethapi.NewRPCTransaction.
type RevertError ¶
type RevertError = ethapi.RevertError
Type aliases for types used as arguments or responses to the APIs.
func NewRevertError ¶
func NewRevertError(revert []byte) *RevertError
NewRevertError is identical to ethapi.NewRevertError.
type SignTransactionResult ¶
type SignTransactionResult = ethapi.SignTransactionResult
Type aliases for types used as arguments or responses to the APIs.
type StateOverride ¶
type StateOverride = ethapi.StateOverride
Type aliases for types used as arguments or responses to the APIs.
type TransactionAPI ¶
type TransactionAPI = ethapi.TransactionAPI
TransactionAPI exposes methods for reading and creating transaction data.
func NewTransactionAPI ¶
func NewTransactionAPI(b Backend, nonceLock *AddrLocker) *TransactionAPI
NewTransactionAPI is identical to ethapi.NewTransactionAPI.
type TransactionArgs ¶
type TransactionArgs = ethapi.TransactionArgs
Type aliases for types used as arguments or responses to the APIs.
type TxPoolAPI ¶
TxPoolAPI offers and API for the transaction pool. It only operates on data that is non-confidential.
func NewTxPoolAPI ¶
NewTxPoolAPI is identical to ethapi.NewTxPoolAPI.