Skip to main content

Permit

Reference for the permit token feature and the Platform API routes that sign a permit, relay it, and read its signing domain and nonce.

The permit feature lets a token holder approve a spender with an off-chain signature instead of an approve transaction, and the Console and Platform API sign, store and relay that signature.

Each token feature is configured by the token's governance role.

Permit

Implements EIP-2612 signed approvals on EVM tokens, supporting both ordinary wallets and contract wallets via EIP-1271 (see Smart wallet). Anyone can submit a signed permit on chain before its deadline to set the spender's allowance.

Each owner has a sequential nonce starting at 0 that increments on every used permit, preventing replays. Signatures bind to the token's deployment name, and expired permits revert with ERC2612ExpiredSignature. Permit restricts no token operations and ships on 32 DALP Library templates (all except Carbon Credit, Controlling Class Share, Custody receipt and Share-Class Mirror).

Operating permits in the Console

The feature takes no parameters. Open Features → View permit details and select Create permit approval to sign a permit with wallet verification. Through DALP, a custodian relays stored permits from Actions (Actions) or the permit page, with the organisation paying network gas (via its paymaster when sponsoring).

Governance attaches Permit via Attach a feature and detaches it behind typed confirmation (it cannot be rotated). Re-attaching restores the same contract address with existing nonces and signing domain intact.

Role holders on the asset and reporting readers (organisation owners, platform administrators, Permission managers, Auditors, Compliance managers and System managers) see all permits and replay history. Other users see only permits their own wallets signed or are spender of.

Permit API

Five routes under /api/v2/tokens/{assetId} manage permits. For full request and response schemas, see “Sign and store a permit” and “Relay a signed permit” in the API reference.

Route
Who calls it
What it does
POST /api/v2/tokens/{assetId}/features/permit/signatures
Holder (wallet verification, no token role)
Signs a permit for spender, value (base units) and deadline (Unix seconds), stores it as pending with its id and nonce.
POST /api/v2/tokens/{assetId}/features/permit/permits
Custodian role (wallet verification)
Relays a stored signedPermitId, or raw owner, spender, value, deadline with v/r/s or packed EIP-1271 signature.
GET /api/v2/tokens/{assetId}/permit-info
Any signed-in caller
Returns featureAddress, domainSeparator, permitTypeHash, tokenName and optional owner nonce (data: null if unattached).
GET /api/v2/tokens/{assetId}/features/permit/signatures
Asset role holders or reporting readers (else own permits only)
Lists stored permits with status (pending, relayed, expired) and relayable.
GET /api/v2/tokens/{assetId}/permit/replay-history
Asset role holders or reporting readers (else own rows only)
Lists on-chain consumed nonces.

Relay returns 202 with transactionId, status and statusUrl by default, or 200 with Prefer: wait=<seconds> (5 to 99 seconds). See Idempotency and async settlement.

The signing domain

External signers sign EIP-712 typed data for Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline) using the domain returned by permit-info:

Domain field
Value
name
Token name when the permit feature deployed
version
1
chainId
Network chain ID
verifyingContract
Permit feature contract (featureAddress from permit-info)

Compare your computed hash against domainSeparator (indexed as of asOfBlockNumber) and permitTypeHash before signing. Nonces are read live. If the feature's declared domain mismatches the indexed separator, signing stops with TOKEN_PERMIT_FEATURE_UNAVAILABLE (or TOKEN_PERMIT_READ_REFUSED if not indexed yet).

Nonces

  • Platform-signed nonces: Signing skips nonces reserved by pending stored permits, assigning consecutive nonces. A permit with a higher nonce stays relayable: false until earlier nonces settle. Expired permits free their nonce without advancing chain state.
  • Status tracking: Reads compute live status against chain time, and a 15-minute background sweep reconciles stored relayed and expired states.
  • Custody approval hold: If a custody rule holds signing, the sign route returns 409 TOKEN_PERMIT_SIGNING_PENDING while reserving the nonce. Resubmit with identical parameters once approved (or re-sign if 409 TOKEN_PERMIT_NONCE_CONFLICT occurs).
  • Detach and re-attach: While detached, sign and relay routes fail. Re-attaching restores the same contract, nonces and domain so unexpired permits matching the current nonce become relayable again.

Retries and idempotency

  • Sign: Does not deduplicate. Retrying after a lost response stores a second permit on the next nonce, so list stored permits before retrying (except custody-approval holds with identical parameters).
  • Relay by signedPermitId: Deduplicates by permit ID rather than Idempotency-Key. Concurrent retries return 202 with the active transactionId. Completed relays return 409 TOKEN_PERMIT_ALREADY_RELAYED or TOKEN_PERMIT_NOT_RELAYABLE. Failed relays can be retried.
  • Relay with raw signature: Pass a consistent Idempotency-Key header on every retry so the transaction queue attaches retries to the first submission instead of submitting a duplicate that reverts on nonce reuse.

Errors

Standard auth, role and wallet-verification errors apply (rate-limit 429 clears after the response wait window). Permit-specific codes are listed below and in the error reference.

Code
Status
Retry
Route
Cause
TOKEN_PERMIT_DEADLINE_EXPIRED, DALP-9495
422
No
Sign
Deadline is not after current chain time. Sign again with a later deadline.
TOKEN_PERMIT_WALLET_UNAVAILABLE, DALP-9496
409
No
Sign
No executor wallet is configured for this organisation and network.
TOKEN_PERMIT_NOT_FOUND, DALP-9497
404
No
Relay
No stored permit matches this organisation, network, token and signedPermitId.
TOKEN_PERMIT_ALREADY_RELAYED, DALP-9498
409
No
Relay
Permit already submitted. Read the permit and its transaction.
TOKEN_PERMIT_NOT_RELAYABLE, DALP-9499
409
No
Relay
Permit expired or its nonce no longer equals the owner's current nonce.
TOKEN_PERMIT_NONCE_CONFLICT, DALP-9500
409
Yes
Sign
Another permit claimed the nonce while this one was stored. Sign again.
TOKEN_PERMIT_FEATURE_UNAVAILABLE, DALP-9501
503
Yes
Sign
Nonce or token name unavailable, or domain separator mismatch. Retry after indexing.
TOKEN_PERMIT_SIGNING_FAILED, DALP-9502
503
Yes
Sign
Custody signer did not complete the signature.
TOKEN_FEATURE_PERSISTENCE_FAILED, DALP-9266
503
Yes
Both
Failed to read or save token feature data.
TOKEN_PERMIT_PERSISTENCE_FAILED, DALP-9505
503
Yes
Both
Failed to read or save the stored permit. Retry unchanged.
TOKEN_PERMIT_SIGNING_PENDING, DALP-14037
409
No
Sign
Custody approval holds the signature. Response includes approval reference and expiry.
TOKEN_PERMIT_CUSTODY_APPROVAL_CLOSED, DALP-14038
409
No
Sign
Custody provider rejected, failed or expired the approval. Sign a new permit.
TOKEN_PERMIT_READ_REFUSED, DALP-13001
422
No
Both
Nonce or domain read failed (for example, domain separator not indexed yet).
CONTRACT_ERROR, DALP-9026, DALP-9027, DALP-9069
422
No
Relay
Chain rejected raw signature: expired deadline (9026), signer mismatch (9027) or EIP-1271 check failed (9069). Rebuild and re-sign.

Was this page helpful?