Versions in this module Expand all Collapse all v1 v1.15.0 Mar 23, 2023 v1.14.0 Mar 23, 2023 v1.13.1 Mar 23, 2023 v1.13.0 Mar 23, 2023 v1.12.0 Mar 23, 2023 v1.11.1 Mar 3, 2023 Changes in this version type ERC1155Transfer + Confirmations int + CumulativeGasUsed int + Gas int + GasPrice *BigInt + GasUsed int + Nonce int + TokenDecimal int + TokenID *BigInt + TokenValue int + TransactionIndex int v1.2.0 Oct 10, 2023 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() ([]byte, error) + func (b *BigInt) UnmarshalText(text []byte) 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 + OptimizationUsed int + Proxy string + Runs int + 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 + ContractAddress string + From string + Hash string + Input string + TimeStamp Time + To string + TokenName string + TokenSymbol string + func (tx ERC1155Transfer) GetBlockNumber() int + func (tx ERC1155Transfer) GetHash() string + 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 int + TokenName string + TokenSymbol string + TransactionIndex int + Value *BigInt + func (tx ERC20Transfer) GetBlockNumber() int + func (tx ERC20Transfer) GetHash() string + 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 int + TokenID *BigInt + TokenName string + TokenSymbol string + TransactionIndex int + func (tx ERC721Transfer) GetBlockNumber() int + func (tx ERC721Transfer) GetHash() string + type Envelope struct + Message string + Result json.RawMessage + Status int + type EtherscanTx interface + GetBlockNumber func() int + GetHash func() string + 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 + func (tx InternalTx) GetBlockNumber() int + func (tx InternalTx) GetHash() string + 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 + Gas int + GasPrice *BigInt + GasUsed int + Hash string + Input string + IsError int + Nonce int + TimeStamp Time + To string + TransactionIndex int + TxReceiptStatus string + Value *BigInt + func (tx NormalTx) GetBlockNumber() int + func (tx NormalTx) GetHash() string + 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 Other modules containing this package github.com/timcki/etherscan-api/v2