eth

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 9 Imported by: 12

Documentation

Overview

Package eth implements RPC API bindings for methods in the "eth" namespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceFactory added in v0.2.0

type BalanceFactory struct {
	// contains filtered or unexported fields
}

func Balance

func Balance(addr common.Address) *BalanceFactory

Balance requests the balance of the given common.Address addr.

func (*BalanceFactory) AtBlock added in v0.2.0

func (f *BalanceFactory) AtBlock(blockNumber *big.Int) *BalanceFactory

func (*BalanceFactory) CreateRequest added in v0.2.0

func (f *BalanceFactory) CreateRequest() (rpc.BatchElem, error)

func (*BalanceFactory) HandleResponse added in v0.2.0

func (f *BalanceFactory) HandleResponse(elem rpc.BatchElem) error

func (*BalanceFactory) Returns added in v0.2.0

func (f *BalanceFactory) Returns(balance *big.Int) *BalanceFactory

type BlockByHashFactory added in v0.2.0

type BlockByHashFactory struct {
	// contains filtered or unexported fields
}

func BlockByHash added in v0.2.0

func BlockByHash(hash common.Hash) *BlockByHashFactory

func (*BlockByHashFactory) CreateRequest added in v0.2.0

func (f *BlockByHashFactory) CreateRequest() (rpc.BatchElem, error)

func (*BlockByHashFactory) HandleResponse added in v0.2.0

func (f *BlockByHashFactory) HandleResponse(elem rpc.BatchElem) error

func (*BlockByHashFactory) Returns added in v0.2.0

func (f *BlockByHashFactory) Returns(block *types.Block) *BlockByHashFactory

type BlockByNumberFactory added in v0.2.0

type BlockByNumberFactory struct {
	// contains filtered or unexported fields
}

func BlockByNumber added in v0.2.0

func BlockByNumber(number *big.Int) *BlockByNumberFactory

func (*BlockByNumberFactory) CreateRequest added in v0.2.0

func (f *BlockByNumberFactory) CreateRequest() (rpc.BatchElem, error)

func (*BlockByNumberFactory) HandleResponse added in v0.2.0

func (f *BlockByNumberFactory) HandleResponse(elem rpc.BatchElem) error

func (*BlockByNumberFactory) Returns added in v0.2.0

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 ChainID

func ChainID() *ChainIDFactory

ChainID requests the chain ID.

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 CodeFactory added in v0.2.0

type CodeFactory struct {
	// contains filtered or unexported fields
}

func Code

func Code(addr common.Address) *CodeFactory

Code requests the contract code of the given common.Address addr.

func (*CodeFactory) AtBlock added in v0.2.0

func (f *CodeFactory) AtBlock(blockNumber *big.Int) *CodeFactory

func (*CodeFactory) CreateRequest added in v0.2.0

func (f *CodeFactory) CreateRequest() (rpc.BatchElem, error)

func (*CodeFactory) HandleResponse added in v0.2.0

func (f *CodeFactory) HandleResponse(elem rpc.BatchElem) error

func (*CodeFactory) Returns added in v0.2.0

func (f *CodeFactory) Returns(code *[]byte) *CodeFactory

type GasPriceFactory

type GasPriceFactory struct {
	// contains filtered or unexported fields
}

func GasPrice

func GasPrice() *GasPriceFactory

GasPrice requests the current gas price in wei.

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(gasPrice *big.Int) *GasPriceFactory

type HeaderByHashFactory added in v0.2.0

type HeaderByHashFactory struct {
	// contains filtered or unexported fields
}

func HeaderByHash added in v0.2.0

func HeaderByHash(hash common.Hash) *HeaderByHashFactory

func (*HeaderByHashFactory) CreateRequest added in v0.2.0

func (f *HeaderByHashFactory) CreateRequest() (rpc.BatchElem, error)

func (*HeaderByHashFactory) HandleResponse added in v0.2.0

func (f *HeaderByHashFactory) HandleResponse(elem rpc.BatchElem) error

func (*HeaderByHashFactory) Returns added in v0.2.0

func (f *HeaderByHashFactory) Returns(header *types.Header) *HeaderByHashFactory

type HeaderByNumberFactory added in v0.2.0

type HeaderByNumberFactory struct {
	// contains filtered or unexported fields
}

func HeaderByNumber added in v0.2.0

func HeaderByNumber(number *big.Int) *HeaderByNumberFactory

func (*HeaderByNumberFactory) CreateRequest added in v0.2.0

func (f *HeaderByNumberFactory) CreateRequest() (rpc.BatchElem, error)

func (*HeaderByNumberFactory) HandleResponse added in v0.2.0

func (f *HeaderByNumberFactory) HandleResponse(elem rpc.BatchElem) error

func (*HeaderByNumberFactory) Returns added in v0.2.0

type LogsFactory added in v0.2.0

type LogsFactory struct {
	// contains filtered or unexported fields
}

func Logs added in v0.2.0

func Logs(filterQuery ethereum.FilterQuery) *LogsFactory

func (*LogsFactory) CreateRequest added in v0.2.0

func (f *LogsFactory) CreateRequest() (rpc.BatchElem, error)

func (*LogsFactory) HandleResponse added in v0.2.0

func (f *LogsFactory) HandleResponse(elem rpc.BatchElem) error

func (*LogsFactory) Returns added in v0.2.0

func (f *LogsFactory) Returns(logs *[]types.Log) *LogsFactory

type NonceFactory added in v0.2.0

type NonceFactory struct {
	// contains filtered or unexported fields
}

func Nonce

func Nonce(addr common.Address) *NonceFactory

Nonce requests the nonce of the given common.Address addr.

func (*NonceFactory) AtBlock added in v0.2.0

func (f *NonceFactory) AtBlock(blockNumber *big.Int) *NonceFactory

func (*NonceFactory) CreateRequest added in v0.2.0

func (f *NonceFactory) CreateRequest() (rpc.BatchElem, error)

func (*NonceFactory) HandleResponse added in v0.2.0

func (f *NonceFactory) HandleResponse(elem rpc.BatchElem) error

func (*NonceFactory) Returns added in v0.2.0

func (f *NonceFactory) Returns(nonce *uint64) *NonceFactory

type SendRawTransactionFactory added in v0.2.0

type SendRawTransactionFactory struct {
	// contains filtered or unexported fields
}

func SendRawTransaction added in v0.2.0

func SendRawTransaction(rawTx []byte) *SendRawTransactionFactory

SendRawTransaction sends a raw transaction to the network.

func SendTransaction added in v0.2.0

func SendTransaction(tx *types.Transaction) *SendRawTransactionFactory

SendTransaction sends a signed transaction to the network.

func (*SendRawTransactionFactory) CreateRequest added in v0.2.0

func (f *SendRawTransactionFactory) CreateRequest() (rpc.BatchElem, error)

func (*SendRawTransactionFactory) HandleResponse added in v0.2.0

func (f *SendRawTransactionFactory) HandleResponse(elem rpc.BatchElem) error

func (*SendRawTransactionFactory) Returns added in v0.2.0

type StorageAtFactory added in v0.2.0

type StorageAtFactory struct {
	// contains filtered or unexported fields
}

func StorageAt

func StorageAt(addr common.Address, slot common.Hash) *StorageAtFactory

StorageAt requests the storage of the given common.Address addr at the given common.Hash slot.

func (*StorageAtFactory) AtBlock added in v0.2.0

func (f *StorageAtFactory) AtBlock(blockNumber *big.Int) *StorageAtFactory

func (*StorageAtFactory) CreateRequest added in v0.2.0

func (f *StorageAtFactory) CreateRequest() (rpc.BatchElem, error)

func (*StorageAtFactory) HandleResponse added in v0.2.0

func (f *StorageAtFactory) HandleResponse(elem rpc.BatchElem) error

func (*StorageAtFactory) Returns added in v0.2.0

func (f *StorageAtFactory) Returns(storage *common.Hash) *StorageAtFactory

type TransactionByHashFactory added in v0.2.0

type TransactionByHashFactory struct {
	// contains filtered or unexported fields
}

func TransactionByHash added in v0.2.0

func TransactionByHash(hash common.Hash) *TransactionByHashFactory

func (*TransactionByHashFactory) CreateRequest added in v0.2.0

func (f *TransactionByHashFactory) CreateRequest() (rpc.BatchElem, error)

func (*TransactionByHashFactory) HandleResponse added in v0.2.0

func (f *TransactionByHashFactory) HandleResponse(elem rpc.BatchElem) error

func (*TransactionByHashFactory) Returns added in v0.2.0

type TransactionReceiptFactory added in v0.2.0

type TransactionReceiptFactory struct {
	// contains filtered or unexported fields
}

func TransactionReceipt added in v0.2.0

func TransactionReceipt(hash common.Hash) *TransactionReceiptFactory

func (*TransactionReceiptFactory) CreateRequest added in v0.2.0

func (f *TransactionReceiptFactory) CreateRequest() (rpc.BatchElem, error)

func (*TransactionReceiptFactory) HandleResponse added in v0.2.0

func (f *TransactionReceiptFactory) HandleResponse(elem rpc.BatchElem) error

func (*TransactionReceiptFactory) Returns added in v0.2.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL