delegatedSignSponsoredTransaction signs an EIP-712 AuthorizedExecutions intent for a batch of calls, auto-signing a one-time EIP-7702 authorization when the wallet is not delegated yet. The returned SignedSponsoredTransaction can be relayed later with sendSponsoredTransaction on a DynamicEvmWalletClient.
EVM Gas Sponsorship is an enterprise-only feature and works with V3 MPC embedded wallets only.
Function signature
Parameters
Required
Optional
Each entry in
calls is a SponsoredTransactionCall:
Returns
Promise<SignedSponsoredTransaction> — a JSON-serializable payload containing calls, chainId, deadline, nonce, relayer, signature, walletAddress, and an optional authorization. Pass it to sendSponsoredTransaction on a DynamicEvmWalletClient with userId to relay it.
Example
Error handling
If signing cannot complete,delegatedSignSponsoredTransaction throws. Wrap the call in a try/catch so you can surface a message and decide what to do next.
Related
delegatedSendSponsoredTransaction— sign, relay, and wait in one calldelegatedSign7702Authorization— manage the one-time EIP-7702 delegation step- EVM Gas Sponsorship — full guide