Documentation ¶
Index ¶
- func DefaultOption() *option
- type CallFrame
- type CallLog
- type ETHClient
- func (cl *ETHClient) DebugTraceTransaction(ctx context.Context, txHash common.Hash) (CallFrame, error)
- func (cl *ETHClient) EstimateGasFromTx(ctx context.Context, tx *gethtypes.Transaction) (uint64, error)
- func (cl ETHClient) GetProof(address common.Address, storageKeys [][]byte, blockNumber *big.Int) (*StateProof, error)
- func (cl *ETHClient) GetTransactionReceipt(ctx context.Context, txHash common.Hash) (rc *Receipt, err error)
- func (cl *ETHClient) Raw() *rpc.Client
- func (cl *ETHClient) WaitForReceiptAndGet(ctx context.Context, txHash common.Hash) (*Receipt, error)
- type Option
- type Receipt
- type StateProof
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultOption ¶
func DefaultOption() *option
Types ¶
type CallFrame ¶ added in v0.2.4
type CallFrame struct { Type vm.OpCode `json:"-"` From common.Address `json:"from"` Gas uint64 `json:"gas"` GasUsed uint64 `json:"gasUsed"` To *common.Address `json:"to,omitempty" rlp:"optional"` Input []byte `json:"input" rlp:"optional"` Output []byte `json:"output,omitempty" rlp:"optional"` Error string `json:"error,omitempty" rlp:"optional"` RevertReason string `json:"revertReason,omitempty"` Calls []CallFrame `json:"calls,omitempty" rlp:"optional"` Logs []CallLog `json:"logs,omitempty" rlp:"optional"` // Placed at end on purpose. The RLP will be decoded to 0 instead of // nil if there are non-empty elements after in the struct. Value *big.Int `json:"value,omitempty" rlp:"optional"` }
see: https://github.com/ethereum/go-ethereum/blob/v1.12.0/eth/tracers/native/call.go#L44-L59
func (*CallFrame) UnmarshalJSON ¶ added in v0.2.18
UnmarshalJSON unmarshals from JSON.
type ETHClient ¶
func (*ETHClient) DebugTraceTransaction ¶ added in v0.2.2
func (*ETHClient) EstimateGasFromTx ¶ added in v0.2.14
func (*ETHClient) GetTransactionReceipt ¶
type Option ¶
type Option func(*option)
func WithRetryOption ¶
func WithRetryOption(rops ...retry.Option) Option
type Receipt ¶
func (Receipt) HasRevertReason ¶
Click to show internal directories.
Click to hide internal directories.