{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "coinbase_fetchPermission",
  "params": [{
    "permissionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
  }]
}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "permission": {
      "createdAt": 1640995200,
      "permissionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
      "signature": "0xdef456...",
      "spendPermission": {
        "account": "0xfB2adc8629FC9F54e243377ffcECEb437a42934C",
        "spender": "0x2a83b0e4462449660b6e7567b2c81ac6d04d877d",
        "token": "0xA0b86a33E6441b97B7cd5C4F5B42a6e2F8a38923",
        "allowance": "1000000000000000000",
        "period": 86400,
        "start": 1640995200,
        "end": 1672531200,
        "salt": "12345678901234567890",
        "extraData": "0x"
      }
    }
  }
}
Coinbase-specific RPC method
Retrieves a single spend permission by its unique hash identifier. This method allows direct lookup of a specific permission without needing to know the account, chain, or spender details.

Parameters

permissionHash
string
required
The unique hash identifier of the permission to retrieve.

Returns

result
object
The permission response object.
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "coinbase_fetchPermission",
  "params": [{
    "permissionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
  }]
}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": {
    "permission": {
      "createdAt": 1640995200,
      "permissionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
      "signature": "0xdef456...",
      "spendPermission": {
        "account": "0xfB2adc8629FC9F54e243377ffcECEb437a42934C",
        "spender": "0x2a83b0e4462449660b6e7567b2c81ac6d04d877d",
        "token": "0xA0b86a33E6441b97B7cd5C4F5B42a6e2F8a38923",
        "allowance": "1000000000000000000",
        "period": 86400,
        "start": 1640995200,
        "end": 1672531200,
        "salt": "12345678901234567890",
        "extraData": "0x"
      }
    }
  }
}

Error Handling

CodeMessageDescription
-32602Invalid paramsThe permissionHash parameter is invalid or missing
-32603Internal errorPermission not found or internal server error
-32001Failed preconditionThe method is currently disabled via kill switch
The permissionHash must be a valid hex-encoded hash string. The method will return an error if the permission doesn’t exist or has been deleted.

Usage Notes

This method is particularly useful when:
  • You have a permission hash from a previous operation and need to retrieve its details
  • You want to verify the current state of a specific permission
  • You need to look up permission details without knowing the account or spender information
Unlike coinbase_fetchPermissions, this method:
  • Returns a single permission instead of a list
  • Does not require account, chain, or spender parameters
  • Does not support pagination
  • Provides direct access via the permission’s unique identifier