Documentation ¶
Index ¶
- func ParseHexKey(hexkey string) (*ecdsa.PrivateKey, common.Address, error)
- type Wallet
- func (w *Wallet) GetCallOpts(ctx context.Context) *bind.CallOpts
- func (w *Wallet) GetNonce(ctx context.Context) (uint64, error)
- func (w *Wallet) GetTransactOpts(ctx context.Context) (*bind.TransactOpts, error)
- func (w *Wallet) WaitForTransactionReceipt(ctx context.Context, hash common.Hash) (*types.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseHexKey ¶
ParseHexKey converts a hex private key to an ecdsa private key.
Types ¶
type Wallet ¶
type Wallet struct { Client *ethclient.Client ChainId *big.Int PrivateKey *ecdsa.PrivateKey From common.Address }
Wallet is wrappers ethclient and private key.
func (*Wallet) GetCallOpts ¶
Returns options to fine tune a contract call request.
func (*Wallet) GetTransactOpts ¶
Returns transaction authorization data.
Click to show internal directories.
Click to hide internal directories.