An authorization expired before signing
Why a transfer's signing window is short, what expiry costs, and how to restructure a signer that keeps missing it.
The error
{
"error": {
"kind": "invalid_request_error",
"code": "wallet_authorization_expired",
"message": "The window to sign passed before the signature arrived: create a new transaction. Windows are short because they pin live chain state.",
"param": null,
"request_id": "req_..."
}
}
A signature posted to POST /api/wallets/authorizations/{wallet_authorization_id}/signatures
after the authorization's expires_at is refused. For a transfer, nothing
moved and no fee was charged.
The transaction does not end the moment the window passes: a signature we
never saw could still land, so it stays awaiting_authorization while we
fill its position on chain with a void, an authorization for your signing
key that moves nothing. Sign the void. Once the chain shows the transfer can
no longer run, the transaction ends expired, with failure_code: authorization_expired, and transaction.expired fires. Then create a new
transaction, with a new partner_reference_id. A transfer's
authorization is never refreshed.
For an action your recovery keys sign, the fix is different: call
POST /api/wallets/authorizations/{wallet_authorization_id}/refresh. Every authorization of
the action is replaced, and signatures already given must be made again.
Why the window is short
A transfer's authorization pins live chain state. On Solana the message is tied to a recent blockhash and lives about 30 seconds, so the window closes within 30 seconds, sooner if the message's own life ends first.
The window is a machine budget, not a human one. Look up the payment, decode, check, one key service call: well under a second.
Common causes
| Cause | Fix |
|---|---|
| A human approval step inside the window | Move the approval before POST /api/transactions. Create the transaction only once the decision is made |
| The verifier fetching remote data per request | Cache your wallets' address, signing_reference, and signing_configuration, and the pinned mints, at startup |
| A cold-start serverless signer | Keep the signing path warm, or run it as a long-lived service |
| Waiting for the webhook alone | Sign from the create response, which carries the transaction's authorizations, and keep wallet_authorization.created and GET /api/wallets/authorizations?status=pending as the backstop |
| A slow key service region | Co-locate the signing service with the key |
The shape that works
1. Your product decides a send should happen, and records it under its own id.
2. Any human approval happens here.
3. Worker: POST /api/transactions, with that id as partner_reference_id
4. Same worker: verify the authorization against the record, sign,
POST /api/wallets/authorizations/{id}/signatures
5. Wait for transaction.completed
Steps 3 and 4 belong in one synchronous block. If they can be separated by
a queue, a retry, or a deploy, the window will be missed eventually. If
your product changes its mind between them, call
POST /api/transactions/{transaction_id}/cancel rather than letting the
window lapse.
If it keeps happening
Instrument the elapsed time between your POST /api/transactions response
and your signature post. If the median is above a second, the problem is in
your pipeline rather than in the window.
See Sending funds and the Signing guide.