sendCalls
Prepares, signs, and submits calls. This function internally calls prepareCalls
, signPreparedCalls
, and sendPreparedCalls
.
Import
Usage
Parameters
client
InnerWalletApiClient
- The wallet API client to use for the request
signer
SmartAccountSigner
- The signer to use
params
PrepareCallsParams<TAccount>
- Parameters for sending calls
params.calls
Array<{to: Address, data?: Hex, value?: Hex}>
- Array of contract calls to execute
params.from
Address
- The address to execute the calls from (required if the client wasn’t initialized with an account)
params.capabilities
object
- Optional capabilities to include with the request.
Returns
Promise<SendPreparedCallsResult>
A Promise that resolves to the result containing the prepared call IDs.