Documentation
¶
Index ¶
- 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
- 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 ¶
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) ExecMethod ¶
func (c *Contract) ExecMethod(methodName string, opts *TxOpts, args ...interface{}) (txHash string, err error)
ExecMethod Execute tx
func (*Contract) GetAddress ¶
type Signer ¶
func NewSignerFromPath ¶
Click to show internal directories.
Click to hide internal directories.