Documentation ¶
Index ¶
- type RpcClient
- func (ec *RpcClient) BuildTransferTx(to common.Address, value *big.Int, gasLimit uint64, opts *bind.TransactOpts) (tx *types.Transaction, err error)
- func (e *RpcClient) EstimateGasForContractCall(fromAddress common.Address, toAddress common.Address, data []byte) (uint64, error)
- func (e *RpcClient) EstimateGasForTransfer(fromAddress string, toAddress string, amount uint64) (uint64, error)
- func (e *RpcClient) GenerateRawTransaction(fromAddress string, toAddress string, amount uint64, privateKeyHex string) (string, error)
- func (e *RpcClient) GetBalance(address string) (uint64, error)
- func (e *RpcClient) GetClientVersion() (string, error)
- func (e *RpcClient) GetCode(address string) (string, error)
- func (e *RpcClient) GetGasPrice() (*big.Int, error)
- func (e *RpcClient) GetNonce(address string) (uint64, error)
- func (e *RpcClient) GetStorageAt(address string, index string) (string, error)
- func (e *RpcClient) SendRawTransaction(rawTx string) (string, error)
- func (e *RpcClient) SendTransaction(tx *types.Transaction) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func NewRpcClient ¶
func (*RpcClient) BuildTransferTx ¶
func (*RpcClient) EstimateGasForContractCall ¶
func (e *RpcClient) EstimateGasForContractCall(fromAddress common.Address, toAddress common.Address, data []byte) (uint64, error)
EstimateGasForContractCall estimates the gas needed for a contract-call transaction
func (*RpcClient) EstimateGasForTransfer ¶
func (e *RpcClient) EstimateGasForTransfer(fromAddress string, toAddress string, amount uint64) (uint64, error)
EstimateGasForTransfer estimates the gas needed for a native token transfer transaction
func (*RpcClient) GenerateRawTransaction ¶
func (e *RpcClient) GenerateRawTransaction(fromAddress string, toAddress string, amount uint64, privateKeyHex string) (string, error)
Send a transaction to the ETH network
func (*RpcClient) GetClientVersion ¶
web3_client_version
func (*RpcClient) GetStorageAt ¶
func (*RpcClient) SendRawTransaction ¶
SendRawTransaction sends a raw transaction to the ETH network
func (*RpcClient) SendTransaction ¶
func (e *RpcClient) SendTransaction(tx *types.Transaction) (string, error)
Click to show internal directories.
Click to hide internal directories.