Documentation ¶
Index ¶
- func Big2Int64(n *big.Int) int64
- func Hex2Address(addr string) common.Address
- func Hex2Hash(hash string) common.Hash
- func Int642Big(n int64) *big.Int
- func Uint642Big(n uint64) *big.Int
- type EthereumClient
- func (m *EthereumClient) BalanceAt(ctx context.Context, strAddress string, number uint64) (*big.Int, error)
- func (m *EthereumClient) BalanceAtHash(ctx context.Context, strAddress string, strBlockHash string) (*big.Int, error)
- func (m *EthereumClient) BlockByHash(ctx context.Context, hash string) (*types.Block, error)
- func (m *EthereumClient) BlockByNumber(ctx context.Context, number uint64) (*types.Block, error)
- func (m *EthereumClient) BlockNumber(ctx context.Context) (uint64, error)
- func (m *EthereumClient) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) ([]*types.Receipt, error)
- func (m *EthereumClient) CallContract(ctx context.Context, msg ethereum.CallMsg, number uint64) ([]byte, error)
- func (m *EthereumClient) CallContractAtHash(ctx context.Context, msg ethereum.CallMsg, strBlockHash string) ([]byte, error)
- func (m *EthereumClient) ChainID(ctx context.Context) (chainId int64, err error)
- func (m *EthereumClient) CodeAt(ctx context.Context, strAddress string, number uint64) ([]byte, error)
- func (m *EthereumClient) CodeAtHash(ctx context.Context, strAddress, strBlockHash string) ([]byte, error)
- func (m *EthereumClient) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
- func (m *EthereumClient) FeeHistory(ctx context.Context, blockCount uint64, blockNumber uint64, ...) (*ethereum.FeeHistory, error)
- func (m *EthereumClient) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (m *EthereumClient) HeaderByHash(ctx context.Context, hash string) (*types.Header, error)
- func (m *EthereumClient) HeaderByNumber(ctx context.Context, number uint64) (*types.Header, error)
- func (m *EthereumClient) NetworkID(ctx context.Context) (int64, error)
- func (m *EthereumClient) NonceAt(ctx context.Context, strAddress string, number uint64) (uint64, error)
- func (m *EthereumClient) NonceAtHash(ctx context.Context, strAddress string, strBlockHash string) (uint64, error)
- func (m *EthereumClient) PeerCount(ctx context.Context) (uint64, error)
- func (m *EthereumClient) PendingBalanceAt(ctx context.Context, strAddress string) (*big.Int, error)
- func (m *EthereumClient) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error)
- func (m *EthereumClient) PendingCodeAt(ctx context.Context, strAddress string) ([]byte, error)
- func (m *EthereumClient) PendingNonceAt(ctx context.Context, strAddress string) (uint64, error)
- func (m *EthereumClient) PendingStorageAt(ctx context.Context, strAddress string, strKey string) ([]byte, error)
- func (m *EthereumClient) PendingTransactionCount(ctx context.Context) (uint, error)
- func (m *EthereumClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (m *EthereumClient) StorageAt(ctx context.Context, strAddress, strKey string, number uint64) ([]byte, error)
- func (m *EthereumClient) StorageAtHash(ctx context.Context, strAddress, strKey, strBlockHash string) ([]byte, error)
- func (m *EthereumClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (m *EthereumClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (m *EthereumClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (m *EthereumClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (m *EthereumClient) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
- func (m *EthereumClient) TransactionByHash(ctx context.Context, hash string) (tx *types.Transaction, pending bool, err error)
- func (m *EthereumClient) TransactionCount(ctx context.Context, strBlockHash string) (uint, error)
- func (m *EthereumClient) TransactionInBlock(ctx context.Context, strBlockHash string, index uint) (*types.Transaction, error)
- func (m *EthereumClient) TransactionReceipt(ctx context.Context, hash string) (tx *types.Receipt, err error)
- func (m *EthereumClient) TransactionSender(ctx context.Context, tx *types.Transaction, strBlockHash string, index uint) (common.Address, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hex2Address ¶
func Uint642Big ¶
Types ¶
type EthereumClient ¶
type EthereumClient struct {
// contains filtered or unexported fields
}
func NewEthereumClient ¶
func NewEthereumClient(strNodeUrl string) *EthereumClient
func (*EthereumClient) BalanceAtHash ¶
func (*EthereumClient) BlockByHash ¶
func (*EthereumClient) BlockByNumber ¶
func (*EthereumClient) BlockNumber ¶
func (m *EthereumClient) BlockNumber(ctx context.Context) (uint64, error)
func (*EthereumClient) BlockReceipts ¶
func (m *EthereumClient) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) ([]*types.Receipt, error)
func (*EthereumClient) CallContract ¶
func (*EthereumClient) CallContractAtHash ¶
func (*EthereumClient) ChainID ¶
func (m *EthereumClient) ChainID(ctx context.Context) (chainId int64, err error)
func (*EthereumClient) CodeAtHash ¶
func (*EthereumClient) EstimateGas ¶
func (m *EthereumClient) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
func (*EthereumClient) FeeHistory ¶
func (*EthereumClient) FilterLogs ¶
func (*EthereumClient) HeaderByHash ¶
func (*EthereumClient) HeaderByNumber ¶
func (*EthereumClient) NetworkID ¶
func (m *EthereumClient) NetworkID(ctx context.Context) (int64, error)
func (*EthereumClient) NonceAtHash ¶
func (*EthereumClient) PeerCount ¶
func (m *EthereumClient) PeerCount(ctx context.Context) (uint64, error)
func (*EthereumClient) PendingBalanceAt ¶
func (*EthereumClient) PendingCallContract ¶
func (m *EthereumClient) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error)
func (*EthereumClient) PendingCodeAt ¶
func (*EthereumClient) PendingNonceAt ¶
func (*EthereumClient) PendingStorageAt ¶
func (*EthereumClient) PendingTransactionCount ¶
func (m *EthereumClient) PendingTransactionCount(ctx context.Context) (uint, error)
func (*EthereumClient) SendTransaction ¶
func (m *EthereumClient) SendTransaction(ctx context.Context, tx *types.Transaction) error
func (*EthereumClient) StorageAtHash ¶
func (*EthereumClient) SubscribeFilterLogs ¶
func (*EthereumClient) SubscribeNewHead ¶
func (*EthereumClient) SuggestGasPrice ¶
func (*EthereumClient) SuggestGasTipCap ¶
func (*EthereumClient) SyncProgress ¶
func (m *EthereumClient) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
func (*EthereumClient) TransactionByHash ¶
func (m *EthereumClient) TransactionByHash(ctx context.Context, hash string) (tx *types.Transaction, pending bool, err error)
func (*EthereumClient) TransactionCount ¶
func (*EthereumClient) TransactionInBlock ¶
func (m *EthereumClient) TransactionInBlock(ctx context.Context, strBlockHash string, index uint) (*types.Transaction, error)
func (*EthereumClient) TransactionReceipt ¶
func (*EthereumClient) TransactionSender ¶
func (m *EthereumClient) TransactionSender(ctx context.Context, tx *types.Transaction, strBlockHash string, index uint) (common.Address, error)
Click to show internal directories.
Click to hide internal directories.