Documentation ¶
Index ¶
- type Contract
- func (c *Contract) Address() common.Address
- func (c *Contract) Call(methodName string, args ...interface{}) (interface{}, error)
- func (c *Contract) CallWithFromAndValue(methodName string, from common.Address, value *big.Int, args ...interface{}) ([]interface{}, error)
- func (c *Contract) CallWithMultiReturns(methodName string, args ...interface{}) ([]interface{}, error)
- func (c *Contract) EncodeABI(methodName string, args ...interface{}) ([]byte, error)
- func (c *Contract) Methods(methodName string) abi.Method
- type Eth
- func (e *Eth) Accounts() ([]common.Address, error)
- func (e *Eth) Address() common.Address
- func (e *Eth) Call(msg *types.CallMsg, block *big.Int) (string, error)
- func (e *Eth) ChainID() (*big.Int, error)
- func (e *Eth) EncodeParams()
- func (e *Eth) EstimateGas(msg *types.CallMsg) (uint64, error)
- func (e *Eth) EstimateGasContract(bin []byte) (uint64, error)
- func (e *Eth) GasPrice() (uint64, error)
- func (e *Eth) GetBalance(addr common.Address, blockNumber *big.Int) (*big.Int, error)
- func (e *Eth) GetBlockByHash(hash common.Hash, full bool) (*eTypes.Block, error)
- func (e *Eth) GetBlockByNumber(i *big.Int, full bool) (*eTypes.Block, error)
- func (e *Eth) GetBlockNumber() (uint64, error)
- func (e *Eth) GetNonce(addr common.Address, blockNumber *big.Int) (uint64, error)
- func (e *Eth) GetTransactionByHash(hash common.Hash) (*eTypes.Transaction, error)
- func (e *Eth) GetTransactionReceipt(hash common.Hash) (*eTypes.Receipt, error)
- func (e *Eth) NewContract(abiString string, contractAddr ...string) (*Contract, error)
- func (e *Eth) SendRawTransaction(to common.Address, amount *big.Int, gasLimit uint64, gasPrice *big.Int, ...) (common.Hash, error)
- func (e *Eth) SendTransaction(txn *eTypes.Transaction) (common.Hash, error)
- func (e *Eth) SetAccount(privateKey string) error
- func (e *Eth) SetChainId(chainId int64)
- func (e *Eth) SetTxPollTimeout(timeout int)
- func (e *Eth) SyncSendRawTransaction(to common.Address, amount *big.Int, gasLimit uint64, gasPrice *big.Int, ...) (*eTypes.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct {
// contains filtered or unexported fields
}
func (*Contract) CallWithFromAndValue ¶
func (*Contract) CallWithMultiReturns ¶
type Eth ¶
type Eth struct {
// contains filtered or unexported fields
}
Eth is the eth namespace
func (*Eth) EncodeParams ¶
func (e *Eth) EncodeParams()
func (*Eth) GetBalance ¶
func (*Eth) GetBlockByHash ¶
func (*Eth) GetBlockByNumber ¶
func (*Eth) GetBlockNumber ¶
func (*Eth) GetTransactionByHash ¶
func (*Eth) GetTransactionReceipt ¶
func (*Eth) NewContract ¶
func (*Eth) SendRawTransaction ¶
func (*Eth) SendTransaction ¶
func (*Eth) SetAccount ¶
func (*Eth) SetChainId ¶
func (*Eth) SetTxPollTimeout ¶
Click to show internal directories.
Click to hide internal directories.