Versions in this module Expand all Collapse all v1 v1.0.9 Jun 11, 2025 v1.0.8 Jun 11, 2025 v1.0.7 Jun 11, 2025 v1.0.6 May 5, 2025 v1.0.5 May 5, 2025 v1.0.4 May 5, 2025 v1.0.3 May 5, 2025 Changes in this version + type ProxyEnvelope struct + Id int + Jsonrpc int + Result json.RawMessage v1.0.2 Sep 4, 2024 Changes in this version type Client + func (c *Client) Call(module, action string, param map[string]interface{}, outcome interface{}) (err error) + func (c *Client) ContractCreation(addresses []string) (creations []ContractCreation, err error) + type ContractCreation struct + ContractAddress string + ContractCreator string + TxHash string v1.0.1 Jun 13, 2024 Changes in this version + var ErrPreByzantiumTx = errors.New("pre-byzantium transaction does not support receipt status check") + type AccountBalance struct + Account string + Balance *BigInt + type BigInt big.Int + func (b *BigInt) Int() *big.Int + func (b *BigInt) MarshalText() (text []byte, err error) + func (b *BigInt) UnmarshalText(text []byte) (err error) + type BlockRewards struct + BlockMiner string + BlockNumber int + BlockReward *BigInt + TimeStamp Time + UncleInclusionReward *BigInt + Uncles []struct{ ... } + type Client struct + AfterRequest func(module, action string, param map[string]interface{}, outcome interface{}, ...) + BeforeRequest func(module, action string, param map[string]interface{}) error + Verbose bool + func New(network Network, APIKey string) *Client + func NewCustomized(config Customization) *Client + func (c *Client) AccountBalance(address string) (balance *BigInt, err error) + func (c *Client) BlockNumber(timestamp int64, closest string) (blockNumber int, err error) + func (c *Client) BlockReward(blockNum int) (rewards BlockRewards, err error) + func (c *Client) BlocksMinedByAddress(address string, page int, offset int) (mined []MinedBlock, err error) + func (c *Client) ContractABI(address string) (abi string, err error) + func (c *Client) ContractSource(address string) (source []ContractSource, err error) + func (c *Client) ERC1155Transfers(contractAddress, address *string, startBlock *int, endBlock *int, page int, ...) (txs []ERC1155Transfer, err error) + func (c *Client) ERC20Transfers(contractAddress, address *string, startBlock *int, endBlock *int, page int, ...) (txs []ERC20Transfer, err error) + func (c *Client) ERC721Transfers(contractAddress, address *string, startBlock *int, endBlock *int, page int, ...) (txs []ERC721Transfer, err error) + func (c *Client) EtherLatestPrice() (price LatestPrice, err error) + func (c *Client) EtherTotalSupply() (totalSupply *BigInt, err error) + func (c *Client) ExecutionStatus(txHash string) (status ExecutionStatus, err error) + func (c *Client) GasEstimate(gasPrice int) (confirmationTimeInSec time.Duration, err error) + func (c *Client) GasOracle() (gasPrices GasPrices, err error) + func (c *Client) GetLogs(fromBlock, toBlock int, address, topic string) (logs []Log, err error) + func (c *Client) InternalTxByAddress(address string, startBlock *int, endBlock *int, page int, offset int, ...) (txs []InternalTx, err error) + func (c *Client) MultiAccountBalance(addresses ...string) (balances []AccountBalance, err error) + func (c *Client) NormalTxByAddress(address string, startBlock *int, endBlock *int, page int, offset int, ...) (txs []NormalTx, err error) + func (c *Client) ReceiptStatus(txHash string) (receiptStatus int, err error) + func (c *Client) TokenBalance(contractAddress, address string) (balance *BigInt, err error) + func (c *Client) TokenTotalSupply(contractAddress string) (totalSupply *BigInt, err error) + func (c *Client) UnclesMinedByAddress(address string, page int, offset int) (mined []MinedBlock, err error) + type ContractSource struct + ABI string + CompilerVersion string + ConstructorArguments string + ContractName string + EVMVersion string + Implementation string + Library string + LicenseType string + Proxy string + SourceCode string + SwarmSource string + type Customization struct + AfterRequest func(module, action string, param map[string]interface{}, outcome interface{}, ...) + BaseURL string + BeforeRequest func(module, action string, param map[string]interface{}) error + Client *http.Client + Key string + Timeout time.Duration + Verbose bool + type ERC1155Transfer struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + Gas int + GasPrice *BigInt + GasUsed int + Hash string + Input string + Nonce int + TimeStamp Time + To string + TokenDecimal uint8 + TokenID *BigInt + TokenName string + TokenSymbol string + TokenValue uint8 + TransactionIndex int + type ERC20Transfer struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + Gas int + GasPrice *BigInt + GasUsed int + Hash string + Input string + Nonce int + TimeStamp Time + To string + TokenDecimal uint8 + TokenName string + TokenSymbol string + TransactionIndex int + Value *BigInt + type ERC721Transfer struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + Gas int + GasPrice *BigInt + GasUsed int + Hash string + Input string + Nonce int + TimeStamp Time + To string + TokenDecimal uint8 + TokenID *BigInt + TokenName string + TokenSymbol string + TransactionIndex int + type Envelope struct + Message string + Result json.RawMessage + Status int + type ExecutionStatus struct + ErrDescription string + IsError int + type GasPrices struct + FastGasPrice float64 + GasUsedRatio []float64 + LastBlock int + ProposeGasPrice float64 + SafeGasPrice float64 + SuggestBaseFeeInGwei float64 + func (gp *GasPrices) UnmarshalJSON(data []byte) error + type InternalTx struct + BlockNumber int + ContractAddress string + ErrCode string + From string + Gas int + GasUsed int + Hash string + Input string + IsError int + TimeStamp Time + To string + TraceID string + Type string + Value *BigInt + type LatestPrice struct + ETHBTC float64 + ETHBTCTimestamp Time + ETHUSD float64 + ETHUSDTimestamp Time + type Log struct + Address string + BlockHash string + BlockNumber string + Data string + LogIndex string + Removed bool + Topics []string + TransactionHash string + type M map[string]interface + type MinedBlock struct + BlockNumber int + BlockReward *BigInt + TimeStamp Time + type Network string + const Goerli + const Kovan + const Mainnet + const Rinkby + const Ropsten + const Tobalaba + func (n Network) SubDomain() (sub string) + type NormalTx struct + BlockHash string + BlockNumber int + Confirmations int + ContractAddress string + CumulativeGasUsed int + From string + FunctionName string + Gas int + GasPrice *BigInt + GasUsed int + Hash string + Input string + IsError int + MethodId string + Nonce int + TimeStamp Time + To string + TransactionIndex int + TxReceiptStatus string + Value *BigInt + type Time time.Time + func (t *Time) UnmarshalText(text []byte) (err error) + func (t Time) MarshalText() (text []byte, err error) + func (t Time) Time() time.Time