Versions in this module Expand all Collapse all v2 v2.0.2 Jan 6, 2025 v2.0.1 Jan 6, 2025 v2.0.0 Jan 6, 2025 Changes in this version + var ErrPreByzantiumTx = errors.New("pre-byzantium transaction does not support receipt status check") + type AccountBalanceParams struct + Address string + Tag string + func (p AccountBalanceParams) GetUrlValues() url.Values + type BlockNumberParams struct + Closest string + Timestamp int64 + func (p BlockNumberParams) GetUrlValues() url.Values + type BlockRewardParams struct + BlockNo int + func (p BlockRewardParams) GetUrlValues() url.Values + type Client struct + AfterRequest func(module, action string, values url.Values, outcome interface{}, ...) error + BeforeRequest func(module, action string, values url.Values) error + Verbose bool + func NewClient(chain chain.Chain, APIKey string) *Client + func NewCustomized(config Customization) *Client + func (c *Client) AccountBalance(address string) (types.BigInt, error) + func (c *Client) BlockNumber(timestamp int64, closest string) (int, error) + func (c *Client) BlockReward(blockNum int) (response.BlockRewards, error) + func (c *Client) BlocksMinedByAddress(address string, page int, offset int) ([]response.MinedBlock, error) + func (c *Client) ContractABI(address string) (string, error) + func (c *Client) ContractSource(address string) ([]response.ContractSource, error) + func (c *Client) ERC1155Transfers(contractAddress, address *string, startBlock *int, endBlock *int, page int, ...) ([]response.ERC1155Transfer, error) + func (c *Client) ERC20Transfers(contractAddress, address *string, startBlock *int, endBlock *int, page int, ...) ([]response.ERC20Transfer, error) + func (c *Client) ERC721Transfers(contractAddress, address *string, startBlock *int, endBlock *int, page int, ...) ([]response.ERC721Transfer, error) + func (c *Client) EtherLatestPrice() (price response.LatestPrice, err error) + func (c *Client) EtherTotalSupply() (totalSupply types.BigInt, err error) + func (c *Client) ExecutionStatus(txHash string) (response.ExecutionStatus, error) + func (c *Client) GasEstimate(gasPrice int) (time.Duration, error) + func (c *Client) GasOracle() (response.GasPrices, error) + func (c *Client) GetLogs(fromBlock, toBlock int, address, topic string) ([]response.Log, error) + func (c *Client) InternalTxByAddress(address string, startBlock *int, endBlock *int, page int, offset int, ...) ([]response.InternalTx, error) + func (c *Client) MultiAccountBalance(addresses ...string) ([]response.AccountBalance, error) + func (c *Client) NormalTxByAddress(address string, startBlock *int, endBlock *int, page int, offset int, ...) ([]response.NormalTx, error) + func (c *Client) ReceiptStatus(txHash string) (int, error) + func (c *Client) TokenBalance(contractAddress, address string) (types.BigInt, error) + func (c *Client) TokenTotalSupply(contractAddress string) (types.BigInt, error) + func (c *Client) UnclesMinedByAddress(address string, page int, offset int) ([]response.MinedBlock, error) + type ContractParams struct + Address string + func (p ContractParams) GetUrlValues() url.Values + type Customization struct + AfterRequest func(module, action string, values url.Values, outcome interface{}, ...) error + BaseURL string + BeforeRequest func(module, action string, values url.Values) error + Chain chain.Chain + Client *http.Client + Key string + Timeout time.Duration + Verbose bool + type GasEstimateParams struct + GasPrice int + func (p GasEstimateParams) GetUrlValues() url.Values + type LogParams struct + Address string + FromBlock int + ToBlock int + Topic0 string + func (p LogParams) GetUrlValues() url.Values + type MinedBlockParams struct + Address string + BlockType string + Offset int + Page int + func (p MinedBlockParams) GetUrlValues() url.Values + type MultiAccountBalanceParams struct + Addresses []string + Tag string + func (p MultiAccountBalanceParams) GetUrlValues() url.Values + type TokenBalanceParams struct + Address string + ContractAddress string + Tag string + func (p TokenBalanceParams) GetUrlValues() url.Values + type TokenTotalSupplyParams struct + ContractAddress string + func (p TokenTotalSupplyParams) GetUrlValues() url.Values + type TokenTransferParams struct + Address *string + ContractAddress *string + EndBlock *int + Offset int + Page int + Sort string + StartBlock *int + func (p TokenTransferParams) GetUrlValues() url.Values + type TransactionParams struct + TxHash string + func (p TransactionParams) GetUrlValues() url.Values + type TxListParams struct + Address string + EndBlock *int + Offset int + Page int + Sort string + StartBlock *int + func (p TxListParams) GetUrlValues() url.Values