requestAccount
Requests an account for the provided signer using the wallet API client. If an account already exists for the signer, it will always return that account unless a new ID is specified. If an account already exists, the creationHint will be ignored.
Import
Usage
Parameters
client
InnerWalletApiClient
- The wallet API client to use for the request
signer
SmartAccountSigner
- The signer that will be associated with the account
params
RequestAccountParams
- Optional parameters for requesting a specific account
params.id
string
- Optional identifier for the account. If specified, a new account with this ID will be created even if one already exists for the signer
params.creationHint
object
- Optional hints to guide account creation. These are ignored if an account already exists
Returns
Promise<RequestAccountResult>
A Promise that resolves to a SmartContractAccount instance