Documentation
¶
Index ¶
- func EIP712Hash(typedData core.TypedData) (hash []byte, err error)
- func Ecrecover(hash, sig []byte) (addr common.Address, err error)
- func EthToBN(amount float64) (bn *big.Int)
- func GweiToBN(amount float64) (bn *big.Int)
- type Contract
- func (c *Contract) CallMethod(methodName, tag string, args ...interface{}) (res string, err error)
- func (c *Contract) DecodeData(data []byte) (methodName string, params map[string]interface{}, err error)
- func (c *Contract) DecodeDataHex(dataHex string) (methodName string, params map[string]interface{}, err error)
- func (c *Contract) DecodeEvent(topics []common.Hash, data []byte) (eventName string, values map[string]interface{}, err error)
- func (c *Contract) DecodeEventHex(topicsHex []string, dataHex string) (eventName string, values map[string]interface{}, err error)
- func (c *Contract) EncodeData(methodName string, args ...interface{}) ([]byte, error)
- func (c *Contract) EncodeDataHex(methodName string, args ...interface{}) (hex string, err error)
- func (c *Contract) ExecMethod(methodName string, opts *TxOpts, args ...interface{}) (txHash string, err error)
- func (c *Contract) GetAddress() string
- type Signer
- type TxOpts
- type Wallet
- func (w *Wallet) GetAddress() string
- func (w *Wallet) GetBalance() (balance big.Int, err error)
- func (w *Wallet) GetNonce() (nonce int, err error)
- func (w *Wallet) GetPendingNonce() (nonce int, err error)
- func (w *Wallet) SendTx(to common.Address, amount *big.Int, data []byte, opts *TxOpts) (txHash string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EIP712Hash ¶ added in v1.1.3
Types ¶
type Contract ¶
func NewContract ¶
func (*Contract) CallMethod ¶
CallMethod Only read contract status tag:
HEX String - an integer block number String "earliest" for the earliest/genesis block String "latest" - for the latest mined block String "pending" - for the pending state/transactions
func (*Contract) DecodeData ¶ added in v1.1.2
func (*Contract) DecodeDataHex ¶ added in v1.1.2
func (*Contract) DecodeEvent ¶ added in v1.1.2
func (*Contract) DecodeEventHex ¶ added in v1.1.2
func (*Contract) EncodeData ¶ added in v1.1.2
func (*Contract) EncodeDataHex ¶ added in v1.1.2
func (*Contract) ExecMethod ¶
func (c *Contract) ExecMethod(methodName string, opts *TxOpts, args ...interface{}) (txHash string, err error)
ExecMethod Execute tx
func (*Contract) GetAddress ¶
Click to show internal directories.
Click to hide internal directories.