Documentation ¶
Index ¶
- func NewKey() (*ecdsa.PrivateKey, error)
- type Wallet
- func NewWalletFromKey(storage *iTypes.IWalletStorage, apiKey string, key *ecdsa.PrivateKey) (*Wallet, error)
- func NewWalletFromStorage(storage *iTypes.IWalletStorage, apiKey string, address common.Address) (*Wallet, error)
- func NewWalletFromString(storage *iTypes.IWalletStorage, apiKey string, key string) (*Wallet, error)
- func (w *Wallet) FromSerializable(ws *iTypes.WalletSerializable) error
- func (w *Wallet) GetTxOpts(chainId *big.Int) (*bind.TransactOpts, error)
- func (w *Wallet) ReplaceKey(newApiKey string) error
- func (w *Wallet) Sign(data []byte) ([]byte, error)
- func (w *Wallet) SignTX(tx *types.Transaction, chainId *big.Int) (*types.Transaction, error)
- func (w *Wallet) ToSerializable() *iTypes.WalletSerializable
- type WalletManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKey ¶
func NewKey() (*ecdsa.PrivateKey, error)
Types ¶
type Wallet ¶
type Wallet struct { ApiKey string PublicKey common.Address // contains filtered or unexported fields }
func NewWalletFromKey ¶
func NewWalletFromKey(storage *iTypes.IWalletStorage, apiKey string, key *ecdsa.PrivateKey) (*Wallet, error)
func NewWalletFromStorage ¶
func NewWalletFromString ¶
func (*Wallet) FromSerializable ¶
func (w *Wallet) FromSerializable(ws *iTypes.WalletSerializable) error
func (*Wallet) ReplaceKey ¶
func (*Wallet) SignTX ¶
func (w *Wallet) SignTX(tx *types.Transaction, chainId *big.Int) (*types.Transaction, error)
func (*Wallet) ToSerializable ¶
func (w *Wallet) ToSerializable() *iTypes.WalletSerializable
type WalletManager ¶
type WalletManager struct {
// contains filtered or unexported fields
}
func NewWalletManager ¶
func NewWalletManager(client *ethclient.Client, config *config.WalletManagerConfig) (*WalletManager, error)
func (*WalletManager) GetByAddress ¶
Click to show internal directories.
Click to hide internal directories.