Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Wallet ¶
type Wallet interface { // Address returns the pubkey Address of the wallet Address() common.Address // SignTransaction returns a signed transaction SignTransaction(tx types.TxData) (*types.Transaction, error) SignTransactionForChainID(tx types.TxData, chainID *big.Int) (*types.Transaction, error) // SetNonce overrides the current nonce // The GetTransactionCount is expected to be the next nonce to use in a transaction, not the current account GetTransactionCount SetNonce(nonce uint64) // GetNonceAndIncrement atomically increments the nonce by one and returns the previous value GetNonceAndIncrement() uint64 GetNonce() uint64 ChainID() *big.Int // PrivateKey returns the wallets private key PrivateKey() *ecdsa.PrivateKey }
func NewInMemoryWalletFromPK ¶
Click to show internal directories.
Click to hide internal directories.