Create EIP-7702 delegation
Changed onCreates an EIP-7702 delegation for an EVM EOA account, upgrading it with smart account capabilities.
This endpoint:
- Retrieves delegation artifacts from onchain
- Signs the EIP-7702 authorization for delegation
- Assembles and submits a Type 4 transaction
- Creates an associated smart account object
The delegation allows the EVM EOA to be used as a smart account, which enables batched transactions and gas sponsorship via paymaster.
Request
- Base URLhttps://api.cdp.coinbase.com/platform
- AuthHTTP bearer
Path parameters
The 0x-prefixed address of the EVM account to delegate.
Headers
A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.
An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.
Request body
The network for the EIP-7702 delegation.
Whether to configure spend permissions for the upgraded, delegated account. When enabled, the account can grant permissions for third parties to spend on its behalf.
Example request
{
"network": "base",
"enableSpendPermissions": true
}Response
Delegation operation created successfully.
The unique identifier for the delegation operation. Use this to poll the operation status.
Example response
{
"delegationOperationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}Changes
- warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status - warning
added the new
policy_not_applicableenum value to theerrorTyperesponse property for the response status
6 more changes in this revision
- warning