Documentation ¶
Index ¶
- Constants
- type EthReader
- func (self *EthReader) Call(result interface{}, method string, args ...interface{}) error
- func (self *EthReader) ERC20Allowance(caddr string, owner string, spender string) (*big.Int, error)
- func (self *EthReader) ERC20Balance(caddr string, user string) (*big.Int, error)
- func (self *EthReader) ERC20Decimal(caddr string) (int64, error)
- func (self *EthReader) EstimateGas(from, to string, priceGwei, value float64, data []byte) (uint64, error)
- func (self *EthReader) GetABI(address string) (*abi.ABI, error)
- func (self *EthReader) GetBalance(address string) (balance *big.Int, err error)
- func (self *EthReader) GetCode(address string) (code []byte, err error)
- func (self *EthReader) GetMinedNonce(address string) (nonce uint64, err error)
- func (self *EthReader) GetPendingNonce(address string) (nonce uint64, err error)
- func (self *EthReader) HeaderByNumber(number int64) (*types.Header, error)
- func (self *EthReader) ReadContract(result interface{}, caddr string, method string, args ...interface{}) error
- func (self *EthReader) ReadContractWithABI(result interface{}, caddr string, abi *abi.ABI, method string, ...) error
- func (self *EthReader) RecommendedGasPrice() (float64, error)
- func (self *EthReader) TransactionByHash(txHash string) (tx *eu.Transaction, isPending bool, err error)
- func (self *EthReader) TransactionReceipt(txHash string) (receipt *types.Receipt, err error)
- func (self *EthReader) TxInfoFromHash(tx string) (eu.TxInfo, error)
Constants ¶
View Source
const TIMEOUT time.Duration = 4 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthReader ¶
type EthReader struct {
// contains filtered or unexported fields
}
func NewEthReader ¶
func NewEthReader() *EthReader
func NewRopstenReader ¶
func NewRopstenReader() *EthReader
func (*EthReader) ERC20Allowance ¶
func (*EthReader) ERC20Balance ¶
func (*EthReader) EstimateGas ¶
func (*EthReader) GetBalance ¶
func (*EthReader) GetMinedNonce ¶
func (*EthReader) GetPendingNonce ¶
func (*EthReader) HeaderByNumber ¶
func (*EthReader) ReadContract ¶
func (*EthReader) ReadContractWithABI ¶
func (*EthReader) RecommendedGasPrice ¶
return gwei
func (*EthReader) TransactionByHash ¶
func (*EthReader) TransactionReceipt ¶
Click to show internal directories.
Click to hide internal directories.