Skip to main content

External signing

Sign an EVM write with a key the platform never holds. A transaction preparation binds the write, records your submission and links it to one request.

External signing lets the holder of a custody account sign a write on an EVM network with a key the platform never holds, while still recording that write in the platform's transaction lifecycle. It works through a transaction preparation, a record that binds one write, its signer and its network for ten minutes. Retrying the same prepare or finalise call records one write, and a new preparation creates a new write.

Preparations cover custody accounts linked through Privy, Dynamic or a browser wallet, the three providers that leave signing to the holder. For accounts whose keys sit with a managed custody provider, send writes through the regular API routes instead.

Keeping keys in your own HSM or custody system

Choose one of two setups when keys stay outside the platform's own key store.

  • Connect a managed custody provider. The platform integrates with IBM Digital Asset Haven, DFNS, Fireblocks, Luna HSM, Ripple Custody and Utila as managed providers, alongside its own managed key store. The provider's policy or quorum decides whether to sign, and the platform requests each signature. Preparation routes refuse managed accounts. See custody provider and custody approval.
  • Link a self-custody account and sign through preparations. Link the EVM address to a self-custody provider configuration, then sign each prepared write yourself. An HSM without a managed connector can take this route when an EIP-1193 wallet fronts its EVM key and is linked as a browser wallet.

On the self-custody route, the platform never receives signed transaction bytes for a plain transaction. Your wallet or service broadcasts the transaction and reports the sender, nonce and transaction hash. The platform checks those fields against the frozen write and tracks the nonce on the network. Because it does not inspect which device produced the signature, proof that a key sits in an HSM comes from your own key management.

Linking starts with POST /api/v2/users/me/custody-account-control-preparations, which returns a challenge for one enabled self-custody provider configuration and one EVM address. Choose investor custody walks through the calls.

A provider configuration that does not support linking your own key, is disabled for new accounts or does not serve the network returns 422 CUSTODY_PROVIDER_CONFIG_INVALID (not retryable). Only an unhealthy or quarantined provider returns 503 CUSTODY_PROVIDER_UNAVAILABLE, which you can retry.

Signing setups the preparation accepts

Each preparation records its signingMethod. Two methods exist, and the user-operation method supports two submission paths.

Setup
signingMethod
Executor (sending address)
Who signs
Who sends to the network
Request state at finalise
Browser wallet transaction
eip-1193-transaction
The custody account's own address
The holder's wallet
The holder's wallet
BROADCASTING
Owner-signed user operation
eip-4337-user-operation
The participant's smart wallet
The holder, as the smart wallet's owner
The platform
QUEUED, then execution starts
Provider-submitted user operation
eip-4337-user-operation
The participant's smart wallet
The holder
The holder's wallet provider
BROADCASTING

A smart wallet is a contract account that acts through user operations validated by an EntryPoint contract. User operations covers the bundler that sends them.

The platform chooses the signing method when you prepare, based on executionMode: prefer-aa uses account abstraction when possible, and direct always prepares a browser wallet transaction from the custody account's own address.

With prefer-aa, the preparation uses eip-4337-user-operation when the provider supports account abstraction and the participant has a smart wallet on that network whose sole signer is the custody account's address (a 1-of-1 weighted wallet, or an older single-owner wallet). A weighted smart wallet with another weighted signer, or a threshold the owner cannot meet alone, is refused with a binding conflict.

The preparation routes refuse managed signing. A managed custody account receives DALP-14032 on prepare, and a finalise call carrying a managed authorisation receives DALP-14033.

Who can prepare and sign

The preparation routes accept a signed-in session or an API key and require no organisation role. Eligibility depends on the custody account: it must be active, belong to the acting participant, hold an eligible organisation context on an enabled EVM network, use a provider configuration serving that network, and have an unarchived executor wallet. Failing any check returns DALP-14032.

A preparation belongs to the user and organisation that created it. Any other user or organisation receives DALP-14031, the same response as for a missing preparation.

What a preparation binds

Preparing a write freezes its facts and stores a digest over them: calling user, participant, organisation, custody account, provider configuration, network, executor and source address, operation kind and digest, summary, signing method and expiry. Every later claim, attachment and finalise call is checked against those stored facts.

Send an Idempotency-Key header on prepare. The key belongs to the calling user: repeating the same key and binding returns the stored preparation, while reusing the key with a different binding returns DALP-14033. Without the header, each call creates a new preparation.

An unclaimed preparation expires ten minutes after creation and cannot be claimed or finalised afterwards.

Steps from prepare to transaction request

  1. Prepare the write

    Call POST /api/v2/transaction-preparations with custodyAccountId, executionMode, a summary and the operation (kind, contractAddress, callData and optional value). The response returns state prepared with signingMethod, executor, expiresAt and, for a user operation, preparedUserOperation (userOperationHash and previewData).

    For a user operation, the platform builds a preview before you sign. Under Paymaster-paid gas, the preview carries paymaster sponsorship so the smart wallet pays no gas. Otherwise an underfunded smart wallet returns DALP-14034 with smartWalletAddress, heldWei and shortfallWei. A smart wallet allows one open owner-signed operation per network, returning DALP-14033 for a second until the first finishes or expires.

  2. Read the preparation

    GET /api/v2/transaction-preparations/{preparationId} returns the bound write and its progress: signing method, expiry, submission claim, attached handle or artifact and, once finalised, transactionRequestId.

  3. Claim the submission before anything is sent

    Call POST /api/v2/transaction-preparations/{preparationId}/transitions with action: "claim" to reserve one submission attempt. Repeating a claim with the same claimKey succeeds, so choose a deterministic key.

    • Browser wallet transaction. Send submissionKind: "eip-1193", a claimKey, and the sender, chainId, nonce, to, value and data matching the prepared write. The claim reserves that sender, network and nonce against every other preparation. The body requires startBlock, though the platform records the network's latest block as its search start.
    • Provider-submitted user operation. Send submissionKind: "provider-handle" and a claimKey not held by another preparation under the same provider configuration.
    • Owner-signed user operation sent by the platform. Skip claiming and go straight to finalise.
  4. Sign the write, and send it from your wallet

    For a browser wallet transaction, sign and broadcast the claimed transaction. Once sent, the nonce is spent and the claim can no longer be abandoned.

    For a user operation, sign the raw userOperationHash with no prefix added. A personal-message signature adds a prefix and does not recover to the account. A typed-data signature works when its hash equals userOperationHash.

    On the provider path, attach the provider's handle with action: "attach" and attachment carrying claimKey and providerHandle. Repeating the same handle succeeds, while a different handle returns DALP-14240.

  5. Finalise

    Finalising cannot be undone: a consumed preparation stays permanently linked to its transaction request. Finalising links the preparation to a request and does not prove on-chain execution, so keep tracking the request to a terminal status.

    Call transitions with action: "finalize" and an artifact matching the prepared signing method, with _tag set to Eip1193TransactionAuthorization (browser wallet) or Eip4337UserOperationAuthorization (user operation).

    • Browser wallet transaction. Send sender, chainId, nonce and transactionHash (null if the wallet returned none), matching the stored claim.
    • Owner-signed user operation. Send userOperationHash and signature. The platform recomputes the hash, requires a canonical signature recovering to the custody account, wraps it for a 1-of-1 weighted validator when needed, and queues execution.
    • Provider-submitted user operation. Send the same artifact against the claimed handle. The platform checks the hash against the prepared one without re-verifying the signature, leaving signature verification to the EntryPoint on chain.

    The response returns state consumed with transactionRequestId. Repeating the same artifact returns the same request, while a different artifact returns DALP-14033.

  6. Follow the transaction request

    Read GET /api/v2/transaction-requests/{transactionId}, or its /stream, until status is COMPLETED, FAILED, DEAD_LETTER or CANCELLED. Keep tracking a DEAD_LETTER request while mayStillLand is true, because its call can still confirm.

    A write your wallet already sent enters as BROADCASTING, and confirmation tracking follows it once it has a transaction hash. An owner-signed user operation enters as QUEUED and runs through platform execution from there.

To release a provider claim with no attached handle, call transitions with action: "abandon". The preparation returns to prepared, and you must claim again with a fresh key because abandoned keys are refused. Browser wallet claims and provider claims with a handle cannot be abandoned.

Preparation states

A preparation moves through four states and ends consumed or expired.Four states: prepared, submission-claimed, consumed and expired. A claim moves prepared to submission-claimed, and an abandon moves a provider claim back to prepared. Finalise moves submission-claimed to consumed. Finalising an owner-signed user operation moves prepared straight to consumed, and the platform submits it. Ten minutes passing moves an unclaimed preparation to expired. For an expired browser wallet claim, reconciliation moves it to consumed when the claimed call is pending or mined on that nonce, and to expired when the nonce is still open or a different finalised transaction used it.ClaimAbandonFinaliseNonce movedFinalise, platform submitsTen minutes passNonce still openpreparedbound for ten minutessubmission-claimedone attempt reservedconsumedlinked to one requestexpiredprepare againa call you maketime passing or platform reconciliationA preparation moves through four states and ends consumed or expired.The same figure as the desktop variant, drawn portrait for phone widths. A claim moves prepared to submission-claimed, and an abandon moves a provider claim back. Finalise moves submission-claimed to consumed, and finalising an owner-signed user operation moves prepared straight to consumed. Ten minutes passing moves an unclaimed preparation to expired. Reconciliation of an expired browser wallet claim moves it to consumed when the claimed call is pending or mined on that nonce, and to expired when the nonce is still open or a different finalised transaction used it.ClaimAbandonFinaliseNoncemovedNoncestill openTenminutes passPlatformsubmitspreparedten minutessubmission-claimedone attemptconsumedone requestexpiredprepare againa call you maketime or reconciliation

Your calls move a preparation through prepared, submission-claimed and consumed, and time or reconciliation moves it to expired or consumed.

A preparation has four states, reported in state:

  • prepared: the write is bound and unclaimed. Claiming moves it to submission-claimed. Finalising an owner-signed user operation moves it straight to consumed and submits it.
  • submission-claimed: one attempt is reserved. Finalising moves it to consumed, and abandoning a handle-less provider claim returns it to prepared.
  • consumed: permanently linked to its transaction request.
  • expired: can no longer be claimed or finalised, with no transaction request recorded. Prepare again.

An unclaimed preparation expires ten minutes after creation, and any later claim or finalise returns DALP-12012. The expired state is persisted when that refusal runs, so a read before then can still show prepared with a past expiresAt. A claimed provider submission does not expire automatically: finalise it or abandon it before attaching a handle.

When a browser wallet claim outlives its preparation

When a browser wallet claim outlives its ten minutes, background reconciliation checks the sender's nonce on the network:

  • Pending nonce equals the reserved nonce, confirmed nonce behind it. Nothing was sent, so the preparation expires and its claim key is retired.
  • Pending nonce passed the reservation, confirmed nonce has not. The wallet sent something unmined. The platform consumes the preparation and records a BROADCASTING request without a transaction hash and starts no new execution.
  • Confirmed nonce passed the reservation. The platform searches finalised blocks for that nonce. If the mined transaction matches the claimed destination, value and call data, it consumes the preparation and records a BROADCASTING request with that hash for confirmation tracking. If any of the three differs, the preparation expires and its claim key is retired. A wallet can wrap your call inside another one, as a batched or delegated send does, so read that transaction on the network before you prepare the call again. While the platform cannot read a finalised transaction that used the nonce, the preparation stays claimed.
  • Nonce blocked or network unreadable. The preparation stays unchanged.

A request recorded without a transaction hash proves only that the wallet spent that nonce. Confirmation tracking skips hash-less requests, so check the wallet's on-chain activity at that nonce before sending again.

Writes that need more than one step

Some Console and Investor portal flows need several writes in order, such as an approval followed by a purchase. The public prepare route prepares one operation, while platform flows prepare sequences automatically: a smart wallet batches them into one user operation, and a plain wallet creates linked preparations where each step names the earlier one it waits on.

A linked step can be claimed only after the earlier step's transaction request is COMPLETED. Before then, claiming is refused as pending (DALP-14429), including while a dead-lettered earlier request still has mayStillLand: true.

If the earlier request failed, was cancelled or was dead-lettered with mayStillLand: false, claiming is refused as failed (DALP-14430) and the whole sequence must be prepared again. If either the step or its predecessor expired, claiming is refused as expired (DALP-12012).

Refusals and what the caller does

When an owner-signed preview reverts on chain, prepare returns 422 with the contract's own error (such as DALP-1009 for a compliance refusal, or DALP-0447 with revertData for an uncatalogued revert) and stores nothing. A browser smart-wallet token write returns the contract's error the same way. A platform preview refusal without revert bytes stays a binding conflict (DALP-14033).

Kind
Code
HTTP
What the platform observed
What the caller does
Expired
DALP-12012
410
Ten minutes elapsed before claim or finalise, or an earlier sequence step expired.
Prepare the write again. Nothing was recorded as a transaction request.
Claim conflict
DALP-14240
409
Different active claim, abandoned claim key, sender and nonce held by another preparation, transaction fields mismatch, missing claim on finalise, or mismatched provider handle.
Read the preparation, resume the active claim, or wait until the other preparation holding the nonce settles or expires.
Binding conflict
DALP-14033
409
Call disagrees with the bound signing method, executor, managed authorisation, signature recovery, reused idempotency key, multi-signer weighted smart wallet, or concurrent owner-signed operation on the same smart wallet.
Send a claim, attachment or artifact matching signingMethod and executor, or use a new idempotency key for a different write.
Preimage mismatch
DALP-14241
409
The artifact's user operation hash does not match the prepared one.
Sign the userOperationHash the preparation returned.
Pending
DALP-14429
409, retryable
An earlier step of the sequence has no completed transaction request.
Wait for the earlier step to complete, then claim again.
Failed
DALP-14430
409
An earlier step of the sequence failed, was cancelled, or was dead-lettered and cannot land.
Prepare the sequence again. This step can never be claimed.
Not found
DALP-14031
404
No preparation with this id belongs to the calling user and organisation.
Use the id the prepare call returned to you.
Ineligible account
DALP-14032
422
Custody account is managed, inactive, held by another participant, ineligible on this network, or has an archived executor wallet.
Prepare with a self-custody account you hold on that network.
Smart wallet gas
DALP-14034
422
Smart wallet cannot cover gas and native value without paymaster sponsorship. data names smartWalletAddress, heldWei and shortfallWei.
Send at least shortfallWei to the smart wallet, then prepare again.

The Platform API error reference lists each code with its full text.

In the Console and the Investor portal

The Console's token transfer sheet and the Investor portal use the browser wallet path for accounts linked to a browser wallet. Both require writable browser storage and the browser lock API, storing each attempt so a page reload resumes the recorded attempt instead of broadcasting twice.

When a submission stops, the Console explains why with messages such as:

  • “The transaction expired before the wallet sent it, so the platform can no longer record it. Start the transaction again.”
  • “Another session holds the wallet submission for this transaction. Finish it there.”
  • “Another transaction from this wallet holds its next nonce until it is sent or expires. Finish that transaction, or start this one again in ten minutes.”
  • “The wallet may have sent the transaction, but the platform could not record it. Check the wallet's activity before sending anything again.”

Terms that sound similar

Three other pages use a similar term for a different mechanism:

  • Custody approval covers a managed custody provider or HSM holding a signature for policy approval. Preparation routes refuse managed accounts.
  • Multisig covers an external seat on a weighted smart wallet with no platform identity behind it. Multi-signer weighted smart wallets cannot use the owner-signed path here.
  • Single sign-on covers external Console sign-in via OpenID Connect. It governs sign-in and signs no transactions.

Read custody provider for managed and self-custody providers, smart wallet for the account an owner-signed operation spends from, Embed a Privy wallet for a worked user-operation example, and Transaction lifecycle for how recorded requests settle.

Was this page helpful?