Versions in this module Expand all Collapse all v1 v1.0.4 Nov 20, 2018 v1.0.3 Sep 24, 2018 v1.0.2 Sep 8, 2018 v1.0.1 Aug 10, 2018 v1.0.0 Aug 6, 2018 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 (c *Client) AccountBalance(address string) (balance *BigInt, 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) ERC20Transfers(contractAddress, address *string, startBlock *int, endBlock *int, page int, ...) (txs []ERC20Transfer, 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) 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 + Library string + OptimizationUsed int + Runs int + SourceCode string + SwarmSource 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 uint8 + TokenName string + TokenSymbol string + TransactionIndex int + Value *BigInt + type Envelope struct + Message string + Result json.RawMessage + Status int + type ExecutionStatus struct + ErrDescription string + IsError int + 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 int + Type string + Value *BigInt + type LatestPrice struct + ETHBTC float64 + ETHBTCTimestamp Time + ETHUSD float64 + ETHUSDTimestamp Time + type M map[string]interface + type MinedBlock struct + BlockNumber int + BlockReward *BigInt + TimeStamp Time + type Network string + 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