Documentation ¶
Overview ¶
Package eth implements RPC API bindings to methods in the "eth" namespace.
Index ¶
- type BlockNumberFactory
- type CallFactory
- type CallFuncFactory
- type ChainIDFactory
- type GasPriceFactory
- type GetBalanceFactory
- type GetCodeFactory
- type GetStorageAtFactory
- func (f *GetStorageAtFactory) AtBlock(blockNumber *big.Int) *GetStorageAtFactory
- func (f *GetStorageAtFactory) CreateRequest() (rpc.BatchElem, error)
- func (f *GetStorageAtFactory) HandleResponse(elem rpc.BatchElem) error
- func (f *GetStorageAtFactory) Returns(storage *common.Hash) *GetStorageAtFactory
- type GetTransactionCountFactory
- func (f *GetTransactionCountFactory) AtBlock(blockNumber *big.Int) *GetTransactionCountFactory
- func (f *GetTransactionCountFactory) CreateRequest() (rpc.BatchElem, error)
- func (f *GetTransactionCountFactory) HandleResponse(elem rpc.BatchElem) error
- func (f *GetTransactionCountFactory) Returns(txCount *uint64) *GetTransactionCountFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockNumberFactory ¶
type BlockNumberFactory struct {
// contains filtered or unexported fields
}
func BlockNumber ¶
func BlockNumber() *BlockNumberFactory
BlockNumber requests the number of the most recent block.
func (*BlockNumberFactory) CreateRequest ¶
func (f *BlockNumberFactory) CreateRequest() (rpc.BatchElem, error)
func (*BlockNumberFactory) HandleResponse ¶
func (f *BlockNumberFactory) HandleResponse(elem rpc.BatchElem) error
func (*BlockNumberFactory) Returns ¶
func (f *BlockNumberFactory) Returns(blockNumber *big.Int) *BlockNumberFactory
type CallFactory ¶
type CallFactory struct {
// contains filtered or unexported fields
}
func Call ¶
func Call(msg ethereum.CallMsg) *CallFactory
Call requests the output data of the given message.
func (*CallFactory) AtBlock ¶
func (f *CallFactory) AtBlock(blockNumber *big.Int) *CallFactory
func (*CallFactory) CreateRequest ¶
func (f *CallFactory) CreateRequest() (rpc.BatchElem, error)
func (*CallFactory) HandleResponse ¶
func (f *CallFactory) HandleResponse(elem rpc.BatchElem) error
func (*CallFactory) Returns ¶
func (f *CallFactory) Returns(output *[]byte) *CallFactory
type CallFuncFactory ¶
type CallFuncFactory struct {
// contains filtered or unexported fields
}
func CallFunc ¶
func CallFunc(fn core.Func, to common.Address, args ...interface{}) *CallFuncFactory
CallFunc requests the returns of Func fn at common.Address to with the given args.
func (*CallFuncFactory) AtBlock ¶
func (f *CallFuncFactory) AtBlock(blockNumber *big.Int) *CallFuncFactory
func (*CallFuncFactory) CreateRequest ¶
func (f *CallFuncFactory) CreateRequest() (rpc.BatchElem, error)
func (*CallFuncFactory) HandleResponse ¶
func (f *CallFuncFactory) HandleResponse(elem rpc.BatchElem) error
func (*CallFuncFactory) Returns ¶
func (f *CallFuncFactory) Returns(returns ...interface{}) *CallFuncFactory
type ChainIDFactory ¶
type ChainIDFactory struct {
// contains filtered or unexported fields
}
func (*ChainIDFactory) CreateRequest ¶
func (f *ChainIDFactory) CreateRequest() (rpc.BatchElem, error)
func (*ChainIDFactory) HandleResponse ¶
func (f *ChainIDFactory) HandleResponse(elem rpc.BatchElem) error
func (*ChainIDFactory) Returns ¶
func (f *ChainIDFactory) Returns(chainID *uint64) *ChainIDFactory
type GasPriceFactory ¶
type GasPriceFactory struct {
// contains filtered or unexported fields
}
func (*GasPriceFactory) CreateRequest ¶
func (f *GasPriceFactory) CreateRequest() (rpc.BatchElem, error)
func (*GasPriceFactory) HandleResponse ¶
func (f *GasPriceFactory) HandleResponse(elem rpc.BatchElem) error
func (*GasPriceFactory) Returns ¶
func (f *GasPriceFactory) Returns(blockNumber *big.Int) *GasPriceFactory
type GetBalanceFactory ¶
type GetBalanceFactory struct {
// contains filtered or unexported fields
}
func Balance ¶
func Balance(addr common.Address) *GetBalanceFactory
Balance requests the balance of the given common.Address addr.
func (*GetBalanceFactory) AtBlock ¶
func (f *GetBalanceFactory) AtBlock(blockNumber *big.Int) *GetBalanceFactory
func (*GetBalanceFactory) CreateRequest ¶
func (f *GetBalanceFactory) CreateRequest() (rpc.BatchElem, error)
func (*GetBalanceFactory) HandleResponse ¶
func (f *GetBalanceFactory) HandleResponse(elem rpc.BatchElem) error
func (*GetBalanceFactory) Returns ¶
func (f *GetBalanceFactory) Returns(balance *big.Int) *GetBalanceFactory
type GetCodeFactory ¶
type GetCodeFactory struct {
// contains filtered or unexported fields
}
func Code ¶
func Code(addr common.Address) *GetCodeFactory
Code requests the contract code of the given common.Address addr.
func (*GetCodeFactory) AtBlock ¶
func (f *GetCodeFactory) AtBlock(blockNumber *big.Int) *GetCodeFactory
func (*GetCodeFactory) CreateRequest ¶
func (f *GetCodeFactory) CreateRequest() (rpc.BatchElem, error)
func (*GetCodeFactory) HandleResponse ¶
func (f *GetCodeFactory) HandleResponse(elem rpc.BatchElem) error
func (*GetCodeFactory) Returns ¶
func (f *GetCodeFactory) Returns(code *[]byte) *GetCodeFactory
type GetStorageAtFactory ¶
type GetStorageAtFactory struct {
// contains filtered or unexported fields
}
func StorageAt ¶
func StorageAt(addr common.Address, slot common.Hash) *GetStorageAtFactory
StorageAt requests the storage of the given common.Address addr at the given common.Hash slot.
func (*GetStorageAtFactory) AtBlock ¶
func (f *GetStorageAtFactory) AtBlock(blockNumber *big.Int) *GetStorageAtFactory
func (*GetStorageAtFactory) CreateRequest ¶
func (f *GetStorageAtFactory) CreateRequest() (rpc.BatchElem, error)
func (*GetStorageAtFactory) HandleResponse ¶
func (f *GetStorageAtFactory) HandleResponse(elem rpc.BatchElem) error
func (*GetStorageAtFactory) Returns ¶
func (f *GetStorageAtFactory) Returns(storage *common.Hash) *GetStorageAtFactory
type GetTransactionCountFactory ¶
type GetTransactionCountFactory struct {
// contains filtered or unexported fields
}
func Nonce ¶
func Nonce(addr common.Address) *GetTransactionCountFactory
Nonce requests the nonce of the given common.Address addr.
func (*GetTransactionCountFactory) AtBlock ¶
func (f *GetTransactionCountFactory) AtBlock(blockNumber *big.Int) *GetTransactionCountFactory
func (*GetTransactionCountFactory) CreateRequest ¶
func (f *GetTransactionCountFactory) CreateRequest() (rpc.BatchElem, error)
func (*GetTransactionCountFactory) HandleResponse ¶
func (f *GetTransactionCountFactory) HandleResponse(elem rpc.BatchElem) error
func (*GetTransactionCountFactory) Returns ¶
func (f *GetTransactionCountFactory) Returns(txCount *uint64) *GetTransactionCountFactory
Click to show internal directories.
Click to hide internal directories.