AccountSigner
Defined in: aa-sdk/ethers/src/account-signer.ts:32
Implementation of the ethers Signer interface to use with Smart Contract Accounts
Extends
Signer
Type Parameters
Constructors
Constructor
Defined in: aa-sdk/ethers/src/account-signer.ts:67
Creates a new AccountSigner with the given ethers Provider and Smart Contract Account
Example
Parameters
Returns
AccountSigner
<TAccount
, TEntryPointVersion
>
Overrides
Properties
Methods
_checkProvider()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:42
Parameters
Returns
void
Inherited from
call()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:34
Parameters
Returns
Promise
<string
>
Inherited from
checkTransaction()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:40
Parameters
Returns
Deferrable
<TransactionRequest
>
Inherited from
connect()
Defined in: aa-sdk/ethers/src/account-signer.ts:283
Sets the provider for the account signer and returns the updated account signer instance. Note: this is not necessary since the Provider is required by the constructor. This is useful if you want to change the provider after the account signer has been created.
Example
Parameters
Returns
AccountSigner
<TAccount
>
the updated account signer instance
Overrides
estimateGas()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:33
Parameters
Returns
Promise
<BigNumber
>
Inherited from
getAddress()
Defined in: aa-sdk/ethers/src/account-signer.ts:115
Returns the account address if the account exists.
Example
Returns
Promise
<string
>
a promise that resolves to the account address
Throws
if the account is not found
Overrides
getBalance()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:31
Parameters
Returns
Promise
<BigNumber
>
Inherited from
getBundlerClient()
Defined in: aa-sdk/ethers/src/account-signer.ts:251
Retrieves the BundlerClient instance from the provider.
Example
Returns
BundlerClient
<Transport
>
The BundlerClient instance
getChainId()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:36
Returns
Promise
<number
>
Inherited from
getFeeData()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:38
Returns
Promise
<FeeData
>
Inherited from
getGasPrice()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:37
Returns
Promise
<BigNumber
>
Inherited from
getTransactionCount()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:32
Parameters
Returns
Promise
<number
>
Inherited from
populateTransaction()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:41
Parameters
Returns
Promise
<TransactionRequest
>
Inherited from
resolveName()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:39
Parameters
Returns
Promise
<string
>
Inherited from
sendTransaction()
Defined in: aa-sdk/ethers/src/account-signer.ts:194
Sends a transaction using the account provider and returns the transaction response.
Example
Parameters
Returns
Promise
<TransactionResponse
>
a promise that resolves to the transaction response
Throws
if the account is not found in the provider
Overrides
signMessage()
Defined in: aa-sdk/ethers/src/account-signer.ts:150
Signs a message using the associated account.
Example
Parameters
Returns
Promise
<string
>
a promise that resolves to the signed message
Throws
if the account is not found
Overrides
signTransaction()
Defined in: aa-sdk/ethers/src/account-signer.ts:218
Throws an error indicating that transaction signing is not supported and advises to use sendUserOperation
instead.
Parameters
Returns
Promise
<string
>
Throws
Will always throw an error indicating transaction signing is unsupported
Overrides
isSigner()
Defined in: node_modules/@ethersproject/abstract-signer/lib/index.d.ts:43
Parameters
Returns
value is Signer