v1

latestOpenAPI 3.1.02026-07-13570316.1 KB
Wallets

Create Session Key

Create a session key for a smart account using EIP-7702.

post/v1/wallets/create-session-key

Request body

chainIdnumber required

The chain ID where the session key will be active.

sessionKeyAddressstring required

The address of the session key to create.

durationInSecondsnumber required

The duration in seconds for which the session key is valid.

grantFullPermissionsboolean

If true, grants full admin permissions to the session key. Use with caution.

Example request

{
  "callPolicies": [
    {
      "valueLimit": {
        "limitType": "Allowance"
      },
      "constraints": [
        {
          "condition": "Equal",
          "limit": {
            "limitType": "Allowance"
          }
        }
      ]
    }
  ],
  "transferPolicies": [
    {
      "valueLimit": {
        "limitType": "Allowance"
      }
    }
  ]
}

Response

Transaction queued

transactionIdstring required