Skip to main content
Before a wallet can send a gas-sponsored transaction, its EOA must be delegated (once) to the Dynamic delegation contract via an EIP-7702 authorization. That delegation is what lets a relayer submit a batch of calls on the user’s behalf.
You usually don’t need any of this. When sendSponsoredTransaction runs on a wallet that isn’t delegated yet, the SDK signs the EIP-7702 authorization automatically and attaches it to the first call. The functions below exist for when you want explicit control over the delegation step, for example, activating it during onboarding.

is7702DelegationActive

Checks whether delegation to the Dynamic gasless contract is active for a wallet on its current network. Results are cached per wallet + chain in an in-memory registry, so repeated calls are cheap.

Parameters

Returns

Promise<boolean>: true if the wallet has an active delegation to the Dynamic gasless contract on its current network.

sign7702Authorization

Signs an EIP-7702 authorization delegating the wallet to the Dynamic delegation contract. The signed authorization can be attached to a sponsored transaction to activate delegation on-chain. If no chainId is provided, the wallet’s active network is used.

Parameters

Returns

Promise<SignAuthorizationReturnType>: viem’s signed EIP-7702 authorization. Pass it to signSponsoredTransaction, sendSponsoredTransaction, or activate7702Delegation.

activate7702Delegation

Persists the delegation on-chain up-front, before any user-facing transaction, which is useful during onboarding. It sends a sponsored transaction that carries only the EIP-7702 authorization (an empty batch of calls) and returns the transaction hash. Afterwards, sponsored transactions no longer need to include an authorization.

Parameters

Returns

Promise<{ transactionHash: Hex }>: the on-chain transaction hash of the activation. Throws a SponsorTransactionError if the relay fails or times out.

resume7702AuthorizationProposal

When the wallet belongs to a Business Account with a matching signing quorum rule, sign7702Authorization rejects with SigningConsentRequiredError and a proposal opens for the other members to approve. After every requirement is satisfied, resume the proposal with resume7702AuthorizationProposal from @dynamic-labs-sdk/evm. Use it instead of resumeSigningProposal for EIP-7702 proposals: resumeSigningProposal returns only the raw signature, while this function returns the complete signed authorization, adding the delegated contract, chain id, and nonce from the approved intent, and it checks that the signature belongs to the wallet.
Save the proposalId from the SigningConsentRequiredError that sign7702Authorization raised so you can find the proposal later. Approving members and the resume step work the same way as for any quorum-gated signing operation.

Parameters

Returns

Promise<SignAuthorizationReturnType>: viem’s signed EIP-7702 authorization. Pass it to signSponsoredTransaction, sendSponsoredTransaction, or activate7702Delegation.

Errors

resume7702AuthorizationProposal throws the proposal-state errors shared with resumeSigningProposal plus dedicated errors when the resumed proposal cannot produce an authorization:
  • SigningProposalNotEip7702AuthorizationError when the proposal’s approved intent is another kind of signing operation.
  • SigningProposalSignatureMalformedError when the resumed signature is not hexadecimal.
  • SigningProposalSignatureMismatchError when the resumed signature does not belong to the wallet.
Import these errors from @dynamic-labs-sdk/client/waas.
Last modified on November 23, 2026