Documentation ¶
Index ¶
- Constants
- type Signer
- func (s *Signer) Account() accounts.Account
- func (s *Signer) List() []accounts.Account
- func (s *Signer) NewTransactor() *gasless.TransactOpts
- func (s *Signer) SetAccount(account accounts.Account)
- func (s *Signer) SetAccountWithPassphrase(account accounts.Account, passphrase string)
- func (s *Signer) SignTx(address common.Address, tx *types.Transaction) (*types.Transaction, error)
- func (s *Signer) SignTypedData(address common.Address, typedData core.TypedData) ([]byte, error)
Constants ¶
View Source
const EnvKey = "VALIST_SIGNER"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer signs transactions.
func NewSigner ¶
NewSigner returns a signer that uses the given backends to sign transactions. If VALIST_SIGNER env is set, an ephemeral keystore is created and the default account is set.
func (*Signer) NewTransactor ¶
func (s *Signer) NewTransactor() *gasless.TransactOpts
NewTransactor returns TransactOpts for meta or regular transactions.
func (*Signer) SetAccount ¶
SetAccount sets the default signer account.
func (*Signer) SetAccountWithPassphrase ¶
SetAccountWithPassphrase sets the default signer account and passphrase to unlock the account.
func (*Signer) SignTx ¶
func (s *Signer) SignTx(address common.Address, tx *types.Transaction) (*types.Transaction, error)
SignTx signs the given transaction using the given account's wallet.
Click to show internal directories.
Click to hide internal directories.