Versions in this module Expand all Collapse all v1 v1.11.1 Sep 21, 2023 Changes in this version type Client + func NewMultiKey(network Network, APIKeys []string) *Client v1.11.0 Sep 21, 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() (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, APIKeys []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 + Keys []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 + Gas int + GasPrice *BigInt + GasUsed int + Hash string + Input string + IsError int + 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