createSmartAccountClient
1 function createSmartAccountClient<TTransport, TChain, TAccount, TContext>( 2 config, 3 ): SmartAccountClient<TTransport, TChain, TAccount>;
Defined in: aa-sdk/core/src/client/smartAccountClient.ts:135
Type Parameters
Type Parameter | Default type |
---|---|
|
|
|
|
| | |
| | |
Parameters
Parameter | Type | Description | ||
---|---|---|---|---|
| { | The configuration for creating the smart account client | ||
|
| ‐ | ||
| < | A function that adds a breadcrumb to the current context Note, most implementations will override the client with the default alchemy transport and this leads to the fact that a transport could be overwritten and not known until later. | ||
|
| Time (in ms) that cached data will remain in memory. Default
| ||
|
| Chain for the client. | ||
|
| ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| A key for the client. | ||
|
| A name for the client. | ||
| { | ‐ | ||
| { | Optional user operation fee options to be set globally at the provider level | ||
| { | ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| Multiplier value with max precision of 4 decimal places | ||
| { | ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| Multiplier value with max precision of 4 decimal places | ||
| { | ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| Multiplier value with max precision of 4 decimal places | ||
| { | ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| Multiplier value with max precision of 4 decimal places | ||
| { | ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| Multiplier value with max precision of 4 decimal places | ||
| { | ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| Multiplier value with max precision of 4 decimal places | ||
| { | ‐ | ||
|
| ‐ | ||
|
| ‐ | ||
|
| Multiplier value with max precision of 4 decimal places | ||
|
| The maximum number of times to try fetching a transaction receipt before giving up (default: 5) | ||
|
| The interval in milliseconds to wait between retries while waiting for tx receipts (default: 2_000) | ||
|
| The multiplier on interval length to wait between retries while waiting for tx receipts (default: 1.5) | ||
|
| ‐ | ||
|
| Frequency (in ms) for polling enabled actions & events. Default
| ||
|
| ‐ | ||
|
| The RPC transport | ||
|
| The type of client. | ||
|
| ‐ |
Returns
SmartAccountClient
<TTransport
, TChain
, TAccount
>
A smart account client capable of handling transactions, message signing, and other operations on a smart account