Type aliases
KeyPairSigner
KeyPairSigner<
TAddress
> =MessagePartialSigner
<TAddress
> &TransactionPartialSigner
<TAddress
> &object
Defines a signer that uses a CryptoKeyPair to sign messages and transactions.
It implements both the MessagePartialSigner and TransactionPartialSigner interfaces and keeps track of the CryptoKeyPair instance used to sign messages and transactions.
Type declaration
Name | Type |
---|---|
keyPair | CryptoKeyPair |
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
TAddress extends string | string | Supply a string literal to define a signer having a particular address. |