Documentation
¶
Index ¶
- type TxID
- type Wallet
- func GetLocalGetWallet(privateKeyStorePath string, ethClient eth.Client, chainID *big.Int, ...) (Wallet, gethcommon.Address, error)
- func GetLocalGetWalletByPrivateKey(privateKey *ecdsa.PrivateKey, ethClient eth.Client, chainID *big.Int, ...) (Wallet, gethcommon.Address, error)
- func NewPrivateKeyWallet(ethClient eth.Client, signer signerv2.SignerFn, signerAddress common.Address, ...) (Wallet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet interface { SendTransaction(ctx context.Context, tx *types.Transaction) (TxID, error) GetTransactionReceipt(ctx context.Context, txID TxID) (*types.Receipt, error) // SenderAddress returns the address of the wallet SenderAddress(ctx context.Context) (common.Address, error) }
Wallet is an interface for signing and sending transactions to the network This interface is used to abstract the process of sending transactions to the Ethereum network For example, for an MPC signer, the transaction would be broadcasted via an external API endpoint and the status is tracked via another external endpoint instead of being broadcasted and retrieved via an Ethereum client.
func GetLocalGetWallet ¶
Click to show internal directories.
Click to hide internal directories.