Documentation ¶
Index ¶
- Constants
- func EstimateSendTransactionGas(client *client.EthClientProxy, toAddress common.Address, ...) (gogopool.GasInfo, error)
- func EthToWei(eth float64) *big.Int
- func FilterContractLogs(ggp *gogopool.GoGoPool, contractName string, q FilterQuery, ...) ([]types.Log, error)
- func GetLogs(ggp *gogopool.GoGoPool, addressFilter []common.Address, ...) ([]types.Log, error)
- func GweiToWei(gwei float64) *big.Int
- func SendTransaction(client *client.EthClientProxy, toAddress common.Address, chainID *big.Int, ...) (common.Hash, error)
- func WeiToEth(wei *big.Int) float64
- func WeiToGwei(wei *big.Int) float64
- type FilterQuery
Constants ¶
View Source
const ( WeiPerEth float64 = 1e18 WeiPerGwei float64 = 1e9 )
Conversion factors
Variables ¶
This section is empty.
Functions ¶
func EstimateSendTransactionGas ¶
func EstimateSendTransactionGas(client *client.EthClientProxy, toAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of SendTransaction
func FilterContractLogs ¶
func GetLogs ¶
func GetLogs(ggp *gogopool.GoGoPool, addressFilter []common.Address, topicFilter [][]common.Hash, intervalSize, fromBlock, toBlock *big.Int, blockHash *common.Hash) ([]types.Log, error)
Gets the logs for a particular log request, breaking the calls into batches if necessary
func SendTransaction ¶
func SendTransaction(client *client.EthClientProxy, toAddress common.Address, chainID *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Send a transaction to an address
Types ¶
Click to show internal directories.
Click to hide internal directories.