Documentation ¶
Index ¶
- Constants
- func EstimateSendTransactionGas(client rocketpool.ExecutionClient, toAddress common.Address, ...) (rocketpool.GasInfo, error)
- func EthToWei(eth float64) *big.Int
- func FilterContractLogs(rp *rocketpool.RocketPool, contractName string, q FilterQuery, ...) ([]types.Log, error)
- func GetLogs(rp *rocketpool.RocketPool, addressFilter []common.Address, ...) ([]types.Log, error)
- func GweiToWei(gwei float64) *big.Int
- func SendTransaction(client rocketpool.ExecutionClient, 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 rocketpool.ExecutionClient, toAddress common.Address, opts *bind.TransactOpts) (rocketpool.GasInfo, error)
Estimate the gas of SendTransaction
func FilterContractLogs ¶
func FilterContractLogs(rp *rocketpool.RocketPool, contractName string, q FilterQuery, intervalSize *big.Int, opts *bind.CallOpts) ([]types.Log, error)
func GetLogs ¶
func GetLogs(rp *rocketpool.RocketPool, 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 rocketpool.ExecutionClient, 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.