Coinbase Server Wallet icon

Coinbase Server Wallet

Interact with Coinbase Server Wallet API v2 (EVM & Solana)

Actions61

EVM Smart Accounts → Create Spend Permission

AI-generated

Summary

Create a spend permission for a specified Smart Account in the Coinbase server wallet.

Inputs

  • X-Wallet-Auth (required) — A JWT signed using your Wallet Secret, encoded in base64.
  • X-Idempotency-Key — An optional UUID v4 request header for making requests safely retryable.
  • address (required) — The address of the Smart Account to create the spend permission for.
  • network (required) — The network the spend permission is on.
  • spender (required) — Entity that can spend account's tokens, either a Smart Account or an EOA.
  • token (required) — ERC-7528 native token address or an ERC-20 contract address.
  • allowance (required) — Maximum allowed value to spend, in atomic units for the specified token, within each period.
  • period (required) — Time duration for resetting used allowance on a recurring basis (seconds).
  • start (required) — The start time for this spend permission, in Unix seconds.
  • end (required) — The expiration time for this spend permission, in Unix seconds.
  • salt — An arbitrary salt to differentiate unique spend permissions.
  • extraData — Arbitrary data to include in the permission.
  • paymasterUrl — The paymaster URL of the spend permission.
  • requestOptions — Additional request options including batching and timeout settings.

Output shape

no body — success/failure only

Ensure the provided parameters adhere to network specifications.

Discussion