Skip to main content

How to Replace Durable Nonces on Solana with Offline Signer Programs

Updated on
Nov 20, 2026

32 min read

Overview​

A Solana transaction expires 150 blocks after its recent blockhash, which is about 30 seconds at 200ms slots. That is not enough time for a cold key on an air-gapped device, a multi-party approval, or a custody workflow that waits on a compliance check.

A durable nonce solves this by swapping the recent blockhash for a value stored in a nonce account. The transaction stays valid until that stored value advances, so a signer can take minutes or days.

Durable nonces are being removed from the protocol. Their replacement is an onchain offline signer program, and two implementations exist today, Anza's Programmatic Signer and Blueshift's Vector.

This change affects exchanges, custodians, stablecoin issuers, and any other team whose signing happens offline or goes through approvals that outlast a blockhash. Common cases are withdrawals approved on an air-gapped machine, treasury transactions signed by keyholders in different locations, stake delegations and withdrawals signed ahead of broadcast, freeze and authority changes on tokens a team issues, and any transaction pre-signed and held for minutes or days.

This guide explains why durable nonces are going away, how both replacements work, and how they differ. It then walks through an offline-signed transfer with each one and covers what existing apps and programs need to change.

TLDR
  • Durable nonces let a Solana transaction skip blockhash expiry, which enables air-gapped and long-running signing flows
  • They are being removed because the runtime special cases cause replay bugs, block asynchronous execution, and attract spam
  • Offline signer programs replace them. A cold key signs a list of instructions, a fee payer submits it, and a program-derived address (PDA) acts on the key's behalf
  • Anza's Programmatic Signer favors hardware wallets and today's nonce workflow, while Blueshift's Vector binds the whole transaction to the signature and supports non-Ed25519 keys
  • This guide sends an offline-signed SOL transfer with each program, then covers migration for apps and programs

What You Will Need​

Why Are Durable Nonces Being Removed?​

Durable nonces are being removed because they force the Solana validator to carry special replay rules that cause security bugs, block asynchronous execution, and make spam cheap. The replacement moves offline signing into an ordinary onchain program, so the validator only ever sees normal blockhash transactions and the nonce logic lives outside the runtime.

Solana prevents replays with two checks. The recent blockhash limits a transaction to a short window, and the status cache remembers every signature seen in that window. A durable nonce transaction skips the blockhash check, so the validator replaces it with extra rules: read the nonce account, verify its stored value, advance it even when the transaction fails, and drop the transaction in several edge cases. That design causes four problems:

  • Security bugs. Every special case in the runtime is another place a replay bug can hide. Nonce handling has caused outages, emergency patches, and bug bounty payouts.
  • It blocks asynchronous execution. Async execution puts transactions in a block first and runs them later. A normal transaction that fails at execution can't land again, because its signature is recorded against its blockhash. A failed nonce transaction never advanced its nonce, so the same transaction could land twice. Explorers, RPC providers, and indexers all assume a signature is unique.
  • Spam during congestion. Nonce transactions never expire, so resending them costs nothing. In one epoch in June 2026 they were 3.1% of transactions but 30% of all priority fees, and 555 fee payers sent 97.5% of them (SIMD Discussion #564).
  • Expensive filtering. A validator rejects a stale blockhash with a cheap lookup. A nonce transaction's validity depends on account data, so it travels further down the pipeline before it can be dropped.
No removal date is set

Durable nonces keep working until a replacement is audited and live on mainnet, and removal is expected roughly six months after that. The Solana Foundation upgrade page will carry the date once there is one.

How Does an Offline Signer Program Replace a Durable Nonce?​

An offline signer program replaces a durable nonce by moving replay protection out of the validator and into a program. A cold key signs a message listing instructions, with no blockhash. A hot fee payer submits it in a normal transaction. The program verifies the signature, advances its own nonce, and runs the instructions through a PDA that it signs for.

Core developers settled on this design, called CPI Passthrough in SIMD Discussion #456, because it removes nonces from the validator entirely and needs no runtime change. It works on mainnet today. The flow has five parts:

  1. A PDA owned by the signer program becomes the authority, in place of the cold key. It can hold SOL, own token accounts, or act as a mint, freeze, stake, or withdraw authority.
  2. The cold key signs a message that lists the instructions to run. The message has no blockhash, so it does not expire.
  3. A hot fee payer puts that signed message into a normal transaction with a recent blockhash and submits it.
  4. The program verifies the cold key's signature and advances a nonce it stores itself, so the same message can't run twice.
  5. The program runs each instruction through a CPI and signs for the PDA.
A cold key signs a message offline, with no blockhash. A relayer submits it in a normal transaction and pays the fee. The signer program verifies the signature, advances its own nonce, and runs the instructions through CPI as the signer PDA.A cold key signs a message offline, with no blockhash. A relayer submits it in a normal transaction and pays the fee. The signer program verifies the signature, advances its own nonce, and runs the instructions through CPI as the signer PDA.

Two costs come with this design. Authorities have to move from the cold key to a PDA, and the authorized instructions run as CPIs instead of top-level instructions. Two other protocol changes reduce the impact. SIMD-0268 raises the CPI depth limit from four to eight, which leaves room for the target program's own CPIs. Version 1 transactions allow 4,096-byte payloads, enough to fit a signed message nested inside a relay transaction (see How to Read and Send Solana v1 Transactions).

Two Proposed Replacements: Anza Programmatic Signer and Blueshift Vector​

Core developers haven't chosen a final replacement. Two independent teams have built the same CPI Passthrough design, and either could become the standard.

Anza's Programmatic Signer is part of the Solana Program Library. It splits the job across three programs (signature checking, message execution, and replay protection) and signs a payload that parses as a standard Solana message. It is deployed on Devnet, ships a CLI plus Rust and JavaScript clients, and is licensed under Apache-2.0. Audits are planned before its v1 release.

Blueshift's Vector is a single program per signature scheme, with published program IDs for Ed25519, secp256k1, Ethereum personal_sign (EIP-191), and Falcon-512. Its signature covers every top-level instruction in the relay transaction. It has Rust and TypeScript SDKs and an MIT license. Its audit status and deployed clusters are not stated.

Pre-audit programs

Both programs are pre-audit and their interfaces may change before a v1 release. Use Devnet or a local validator, and do not move mainnet authorities to either program until it is audited and deployed on mainnet.

What Offline Signer Programs Offer​

Beyond making the protocol safer, offline signer programs let a team retry a failed message without re-signing, choose the fee payer at submission, and pre-sign a chain of transactions. Depending on the program, they also let a relayer build around a signed intent or sign with keys beyond Ed25519.

Retry a failed attempt. A durable nonce transaction that fails, for example on slippage, still advances the nonce, so the cold key has to sign again. In both replacements the nonce advances in the same atomic transaction as the instructions. If an instruction fails, the whole transaction rolls back, the nonce stays put, and the same signed message can be resubmitted.

Choose the fee payer at submission. A durable nonce transaction names its fee payer when it is signed, and the fee payer co-signs. An offline signer message covers neither the fee payer nor a blockhash, so the key holder, a relayer, or an RPC provider can submit and pay. The cold key never needs SOL, and if one relayer is down another can submit the same message.

Pre-sign a chain of transactions. The next nonce is a hash of the current nonce and the executed message, so a client can compute every future nonce offline. A cold session can sign message 1, then message 2 against the nonce that message 1 will produce, and so on. Message 2 can't run before message 1, and changing any message invalidates the rest. A multi-step treasury operation can be approved once and executed hours or days apart.

Let a relayer build around a signed intent. The Programmatic Signer's signature covers only its authorization message, so a relayer can add instructions before and after it, for example to batch several users' messages into one transaction. Vector blocks this on purpose, since its signature covers every top-level instruction.

Use keys beyond Ed25519. The program verifies the signature itself, so it is not limited to Solana's native key type. Vector supports secp256k1, EIP-191, and post-quantum Falcon-512 keys. The Programmatic Signer ships with Ed25519, and its design lets a separate signer program add other schemes. The PDA is derived from the key, so switching keys means a different address.

Neither program has a built-in expiry. A signed message stays valid until it lands or is canceled. When timing matters, add a deadline instruction such as sbpf-asm-timeout to the signed instructions.

How the Anza Programmatic Signer Works​

The Programmatic Signer uses three programs, each with one job:

  • Ed25519 Signer (EdSigVfK1DkeMrjFNDMjwfQaJPhPTtX7jW8uPv3oKEgN) verifies authority signatures and grants signer privilege to each authority's PDA for one CPI
  • Legacy Message Executor (ExecxgyHYsAXB4c5dZodV1zJZ9hqfsDCYkRDRATrpkFR) checks the message against the nonce, advances it, and runs each instruction
  • Nonce (Noncediea1fH12usShuQAz28UhgAeuE5Maf32LsMUQB) stores 72-byte nonce accounts, separate from System Program nonce accounts

These are the Devnet addresses. Splitting signature checking from execution and replay protection means a future signer program for another key type can reuse the executor and nonce programs unchanged.

Each authority's signer PDA is derived from seeds ["programmatic-signer", authority] under the Ed25519 Signer program. Nothing creates an account at that address, so it stays a System-owned account like a normal wallet and needs no setup. To send SOL out, the authority signs a message containing an ordinary System Program Transfer from the PDA.

The signed payload has three nested layers:

  1. Execution message. A standard v1 message listing the instructions to run. Its blockhash field holds the nonce value.
  2. Authorization message. Wraps the execution message in an Execute instruction for the executor and nonce account. Every required authority signs these bytes.
  3. Relay transaction. A normal transaction with a recent blockhash that carries a Submit instruction, signed by the relayer.

The nesting exists for hardware wallets. Most of them only sign bytes that parse as a Solana message, and the authorization message does. Several authorities can sign the same message in any order. The relayer controls the fee payer, the blockhash, and any instructions around Submit, but can't change anything inside the authorization message.

Onchain, one top-level Submit instruction fans out into two levels of CPI. The Ed25519 Signer verifies the signature, the executor checks the message against the nonce, and the nonce program advances it before the System Program transfer runs with the PDA as the source. The authority key never appears as a transaction signer, only in the account list.

One authority can own many nonce accounts, so many messages can be in flight at once. Each advance hashes the current nonce with the SHA-256 hash of the executed message.

How Blueshift Vector Works​

Vector deploys one program per signature scheme, all with the same instruction set and account layout:

  • Ed25519 at vectorcLBXJ2TuoKuUygkEi6FWqvBnbHDEDWoYamfjV, about 14,000 compute units per advance
  • secp256k1 at 9NCknbW4LpePSZzbZGFk2HHsSH4y4pkmRjEguJo7qqjd, about 72,000 compute units
  • EIP-191 at G6okL1MvXx7k5eytY7wRXNupXyYG1QVZW37ygAjMiTTu
  • Falcon-512 at HdkE3dPYgCRZJgLv64mbFmojyCprUim8VRXzK2wR6Qgm, about 184,000 compute units

The repository also contains ML-DSA-44, Winternitz, and XMSS programs. Their program IDs are local and undeployed. Winternitz and XMSS keys can sign only once per key or leaf, so the caller has to track signing state and rotate keys.

Each identity gets a PDA at ["vector", identity], created with an Initialize instruction. The Vector program owns the account, which holds a 33-byte header (a 32-byte nonce and a 1-byte bump) followed by the identity. Anyone can send SOL in. Only Vector's Withdraw, which keeps the rent minimum, or Close, which empties and deletes the account, can send it out, and both have to run inside a signed Passthrough.

To sign, the client builds the full relay transaction, puts the nonce and identity where the signature will go, hashes the instruction list with SHA-256, and signs the hash. Onchain, Vector rebuilds the same hash from the instructions sysvar and verifies it. The signature covers every top-level instruction, so a relayer can't add, remove, or reorder anything. Because the signed bytes are a custom hash rather than a Solana message, most hardware wallets refuse to sign them.

A Vector transaction uses two top-level instructions:

  • Advance verifies the signature and stores the hash as the next nonce
  • Passthrough runs the embedded instructions through CPI, signing as the PDA, and only works if an Advance for the same PDA appears earlier in the transaction

To cancel a pending message, sign an Advance with no other instructions. It consumes the nonce and invalidates every signature made against it, and it can be signed ahead of time and stored. Each identity has one outstanding nonce, so parallel transactions need more identities.

Compare Programmatic Signer and Vector​

The two programs follow the same CPI Passthrough pattern. They differ in what the signature covers, how the payload is encoded, and how deep the authorized instructions run.

Anza Programmatic SignerBlueshift Vector
StatusDevnet, audits pendingProgram IDs published, audit status not stated
Signature schemesEd25519, more through separate signer programsEd25519, secp256k1, EIP-191, Falcon-512, with ML-DSA-44, Winternitz, and XMSS not yet deployed
Signature coversThe authorization messageEvery top-level instruction
Payload formatStandard v1 messageSHA-256 hash of the instruction list
Hardware walletsDesigned for themMost refuse to sign a raw hash
Relayer can add instructionsYes, around SubmitNo
Signer PDA["programmatic-signer", authority], no setup["vector", identity], created by Initialize
Holding SOLSystem-owned, sent out with a signed TransferVector-owned, sent out with Withdraw or Close
Concurrent messagesMany nonce accounts per authorityOne per identity
Multiple signersYesOne identity per account
Authorized instructions run atStack height 3Stack height 2
ToolingCLI, Rust and JavaScript clientsRust and TypeScript SDKs

The Programmatic Signer stays closest to today's durable nonce workflow. It suits teams whose cold keys live on Ledger or Trezor devices or in custody systems that expect Solana messages.

Vector suits teams that need a secp256k1, Ethereum, or post-quantum key, or the strictest relayer model, and that can sign with software keys. Approvers sign a 32-byte digest they can't read, so the signing workflow has to rebuild that digest from the intended instructions and confirm it matches before anyone approves.

Send an Offline Transfer with the Programmatic Signer​

This walkthrough moves SOL out of a signer PDA on Devnet, with the cold key signing on one side and a relayer submitting on the other. The project splits into three scripts that mirror the roles in a real custody flow:

  1. setup.ts runs online. It funds the signer PDA and creates a nonce account whose authority is the PDA.
  2. sign.ts runs offline. It builds the execution and authorization messages and signs them with the cold key, with no RPC calls.
  3. submit.ts runs online. The relayer wraps the signed message in a Submit instruction and sends it.

Two small JSON files move between machines. The current nonce goes to the offline signer, and the signed message comes back.

Build a Programmatic Signer Client​

The JavaScript client is not published to npm yet, so build it from the repository and pack it into a tarball. The client requires Node.js 24 and builds with pnpm:

git clone https://github.com/solana-program/ed25519-programmatic-signer.git
cd ed25519-programmatic-signer
git checkout 2b2cc7f
cd clients/js
pnpm install
pnpm build
npm pack --pack-destination ../../..
cd ../../..

This leaves solana-program-ed25519-programmatic-signer-0.1.0.tgz next to the cloned repository. The package exports Codama-generated builders for every instruction in the three programs, plus helpers such as findProgrammaticSignerPda and fetchNonce.

Set Up the Project​

Create a project next to the tarball and install the client alongside @solana/kit and the System Program client:

mkdir programmatic-signer-demo && cd programmatic-signer-demo
npm init -y
npm pkg set type=module
npm install @solana/kit@^8.6.0 @solana-program/system ../solana-program-ed25519-programmatic-signer-0.1.0.tgz
npm install -D tsx

Generate three keypairs. cold.json stands in for the offline key, relayer.json is the hot fee payer, and recipient.json gives the transfer a destination:

solana-keygen new --no-bip39-passphrase -o cold.json
solana-keygen new --no-bip39-passphrase -o relayer.json
solana-keygen new --no-bip39-passphrase -o recipient.json
Test keys only

These keypair files are unencrypted. A production cold key lives on a hardware wallet, a hardware security module (HSM), or a custody system, and never touches an online machine. Add cold.json, relayer.json, recipient.json, and .env to .gitignore in both projects so they never get committed.

Fund the relayer with 1 Devnet SOL from the Solana faucet, or with solana airdrop 1 $(solana address -k relayer.json) -u devnet if the CLI faucet is not rate-limited. The cold key needs no SOL.

Create a .env file with your Quicknode Devnet endpoint and the two addresses the online scripts need. Copy both the HTTP and WSS URLs from your endpoint's dashboard, and print the addresses with solana address -k cold.json and solana address -k recipient.json:

.env
QUICKNODE_RPC=https://your-endpoint.solana-devnet.quiknode.pro/
QUICKNODE_RPC_TOKEN=your-auth-token
QUICKNODE_WSS=wss://your-endpoint.solana-devnet.quiknode.pro/your-token/
COLD_AUTHORITY=YOUR_COLD_KEY_ADDRESS
RECIPIENT=YOUR_RECIPIENT_ADDRESS

Copy the Base URL and Auth token for HTTP. Set QUICKNODE_WSS to the full WSS URL for subscriptions.

Endpoint authentication

We recommend sending the Auth token in the x-token header for HTTPS requests. This reduces the risk of exposing credentials through URL logging and monitoring systems.

Quicknode supports both header and URL-path authentication. Open How to authenticate on your endpoint overview to see the HTTPS examples. Use the full authenticated WSS URL for this example’s subscription client.

Only the cold key's address goes into .env. The online scripts never load cold.json.

Create the Signer PDA and Nonce Account​

The signer PDA is derived from the cold key's address, so it exists as soon as SOL lands on it. The Programmatic Signer also needs its own nonce account, which is separate from System Program nonce accounts. setup.ts funds the PDA, creates the 72-byte nonce account, and initializes it with the PDA as its authority. That way, the cold key's signature is what authorizes each nonce advance.

setup.ts
import { readFile, writeFile } from 'node:fs/promises';
import {
address,
appendTransactionMessageInstructions,
createKeyPairSignerFromBytes,
createSolanaRpc,
createSolanaRpcSubscriptions,
createTransactionMessage,
generateKeyPairSigner,
getSignatureFromTransaction,
lamports,
pipe,
sendAndConfirmTransactionFactory,
setTransactionMessageFeePayerSigner,
setTransactionMessageLifetimeUsingBlockhash,
signTransactionMessageWithSigners,
} from '@solana/kit';
import { getCreateAccountInstruction, getTransferSolInstruction } from '@solana-program/system';
import {
NONCE_PROGRAM_ADDRESS,
fetchNonce,
findProgrammaticSignerPda,
getInitializeInstruction,
} from '@solana-program/ed25519-programmatic-signer';

const NONCE_ACCOUNT_SIZE = 72n;
const PDA_FUNDING = lamports(10_000_000n); // 0.01 SOL

const rpc = createSolanaRpc(process.env.QUICKNODE_RPC!, process.env.QUICKNODE_RPC_TOKEN
? { headers: { "x-token": process.env.QUICKNODE_RPC_TOKEN } }
: undefined);
const rpcSubscriptions = createSolanaRpcSubscriptions(process.env.QUICKNODE_WSS!);
const sendAndConfirm = sendAndConfirmTransactionFactory({ rpc, rpcSubscriptions });

const relayer = await createKeyPairSignerFromBytes(
new Uint8Array(JSON.parse(await readFile('relayer.json', 'utf8'))),
);
const coldAuthority = address(process.env.COLD_AUTHORITY!);
const [signerPda] = await findProgrammaticSignerPda({ authority: coldAuthority });
const nonceAccount = await generateKeyPairSigner();

const rent = await rpc.getMinimumBalanceForRentExemption(NONCE_ACCOUNT_SIZE).send();
const { value: latestBlockhash } = await rpc.getLatestBlockhash({ commitment: 'finalized' }).send();

const transaction = await pipe(
createTransactionMessage({ version: 0 }),
m => setTransactionMessageFeePayerSigner(relayer, m),
m => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, m),
m =>
appendTransactionMessageInstructions(
[
// Fund the signer PDA, which holds the SOL the cold key controls
getTransferSolInstruction({ source: relayer, destination: signerPda, amount: PDA_FUNDING }),
getCreateAccountInstruction({
payer: relayer,
newAccount: nonceAccount,
lamports: rent,
space: NONCE_ACCOUNT_SIZE,
programAddress: NONCE_PROGRAM_ADDRESS,
}),
// The PDA is the nonce authority, so the cold key's signature can advance it
getInitializeInstruction({ nonceAccount: nonceAccount.address, authority: signerPda }),
],
m,
),
m => signTransactionMessageWithSigners(m),
);

await sendAndConfirm(transaction, { commitment: 'finalized' });

const { data } = await fetchNonce(rpc, nonceAccount.address, { commitment: 'finalized' });
await writeFile('nonce.json', JSON.stringify({ nonceAccount: nonceAccount.address, nonceValue: data.nonce }, null, 2));

console.log('Setup transaction:', getSignatureFromTransaction(transaction));
console.log('Signer PDA: ', signerPda);
console.log('Nonce account: ', nonceAccount.address);
console.log('Nonce value: ', data.nonce);

CreateAccount and Initialize go in the same transaction so nobody else can initialize the account first. The nonce program derives the starting nonce value from the latest slot hash. Run the script:

npx tsx --env-file=.env setup.ts

Expected results:

Setup transaction: 3pxwmpYdhvstUurQDfj1tftQcXySrJgx2eqnibDF116EXXtYWMvHSeHEBhW5WRHzs1VTCXvjKUyKYSGZEyFwHGkL
Signer PDA: 5vHWdBaB9dKEp6x7rnX9iM8wFZaPNJTkjLXzj67XsmnM
Nonce account: 8EBUb27UmCUdkaqP9SfRFWJcpfkFKwVAq29PVCZd3JeB
Nonce value: 6JtbzZryhyx4fR4xTXPFowa7EVXSWXhE2hQCctVuHqcR

Your addresses and nonce value will differ. The script also writes them to nonce.json, which is the file you carry to the offline machine.

Sign a Transfer Offline​

Signing happens in two layers. First, sign.ts builds the execution message, which is a v1 message whose fee payer is the PDA, whose only instruction is a System Program transfer out of the PDA, and whose blockhash field holds the nonce value. Then it wraps those bytes in an Execute instruction and compiles that into the authorization message, which is what the cold key signs.

The PDA appears in the Execute accounts as a signer, but the cold key is the only real signer of the authorization message. The PDA gets its signer privilege later, when the Ed25519 Signer program verifies the cold key's signature. So the script downgrades every account in the Execute instruction to a non-signer before compiling.

sign.ts
import { readFile, writeFile } from 'node:fs/promises';
import {
address,
appendTransactionMessageInstruction,
compileTransaction,
createKeyPairSignerFromBytes,
createNoopSigner,
createTransactionMessage,
downgradeRoleToNonSigner,
getBase64Decoder,
pipe,
setTransactionMessageFeePayer,
setTransactionMessageLifetimeUsingBlockhash,
signTransaction,
type Blockhash,
} from '@solana/kit';
import { getTransferSolInstruction } from '@solana-program/system';
import { findProgrammaticSignerPda, getExecuteInstruction } from '@solana-program/ed25519-programmatic-signer';

// An authorization message is never executed as a transaction, so it carries an all-zero blockhash
const EMPTY_BLOCKHASH = '11111111111111111111111111111111' as Blockhash;

const amount = BigInt(process.argv[2] ?? '1000000');
const recipient = address(process.env.RECIPIENT!);
const { nonceAccount, nonceValue } = JSON.parse(await readFile('nonce.json', 'utf8'));
const coldKey = await createKeyPairSignerFromBytes(new Uint8Array(JSON.parse(await readFile('cold.json', 'utf8'))));
const [signerPda] = await findProgrammaticSignerPda({ authority: coldKey.address });

// 1. Execution message: what runs onchain, with the nonce value in the blockhash field
const executionMessage = pipe(
createTransactionMessage({ version: 1 }),
m => setTransactionMessageFeePayer(signerPda, m),
m => setTransactionMessageLifetimeUsingBlockhash({ blockhash: nonceValue, lastValidBlockHeight: 0n }, m),
m =>
appendTransactionMessageInstruction(
getTransferSolInstruction({ source: createNoopSigner(signerPda), destination: recipient, amount }),
m,
),
);
const executionMessageBytes = compileTransaction(executionMessage).messageBytes;

// 2. Authorization message: an Execute instruction wrapping the execution message, signed by the cold key
const execute = getExecuteInstruction({
nonceAuthority: createNoopSigner(signerPda),
nonceAccount: address(nonceAccount),
message: executionMessageBytes,
});
// The PDA gets signer privilege from Submit, so it must not be a signer of the authorization message
const executeWithoutSigners = {
...execute,
accounts: execute.accounts.map(({ address, role }) => ({ address, role: downgradeRoleToNonSigner(role) })),
};
const authorizationMessage = pipe(
createTransactionMessage({ version: 1 }),
m => setTransactionMessageFeePayer(coldKey.address, m),
m => setTransactionMessageLifetimeUsingBlockhash({ blockhash: EMPTY_BLOCKHASH, lastValidBlockHeight: 0n }, m),
m => appendTransactionMessageInstruction(executeWithoutSigners, m),
);
const signed = await signTransaction([coldKey.keyPair], compileTransaction(authorizationMessage));

const base64 = getBase64Decoder();
await writeFile(
'signed-message.json',
JSON.stringify(
{
authority: coldKey.address,
authorizationMessage: base64.decode(signed.messageBytes),
signature: base64.decode(signed.signatures[coldKey.address]!),
},
null,
2,
),
);

console.log(`Signed a transfer of ${amount} lamports from ${signerPda} to ${recipient}`);
console.log('Consumes nonce value:', nonceValue);
console.log('Wrote signed-message.json');

The script reads RECIPIENT from .env, so on a real offline machine, set RECIPIENT there before signing. Sign a transfer of 0.001 SOL (1,000,000 lamports):

npx tsx --env-file=.env sign.ts 1000000

Expected results:

Signed a transfer of 1000000 lamports from 5vHWdBaB9dKEp6x7rnX9iM8wFZaPNJTkjLXzj67XsmnM to 4sCJxRE4k7GxnTpbseBgw8xoXrpvyCym6KXN3WVHArHV
Consumes nonce value: 6JtbzZryhyx4fR4xTXPFowa7EVXSWXhE2hQCctVuHqcR
Wrote signed-message.json

signed-message.json holds the authorization message and the cold key's signature. Neither covers a fee payer or a recent blockhash, so the file stays valid until the nonce moves, whether that takes a minute or a month.

Submit a Signed Message with a Relayer​

submit.ts is all the relayer has to do. It decodes the signed file, builds a Submit instruction with getSubmitInstruction, which fills in the accounts from the authorization message, and sends it in a normal transaction that the relayer signs and pays for. After sending, it reads the nonce account and writes the new value back to nonce.json for the next signing round.

The relay transaction is v0, since one signed transfer fits in the 1,232-byte limit. A signed message with more instructions or accounts needs a v1 relay transaction for the 4,096-byte limit.

submit.ts
import { readFile, writeFile } from 'node:fs/promises';
import {
address,
appendTransactionMessageInstruction,
createKeyPairSignerFromBytes,
createSolanaRpc,
createSolanaRpcSubscriptions,
createTransactionMessage,
getBase64Encoder,
getSignatureFromTransaction,
isSolanaError,
pipe,
sendAndConfirmTransactionFactory,
setTransactionMessageFeePayerSigner,
setTransactionMessageLifetimeUsingBlockhash,
signTransactionMessageWithSigners,
} from '@solana/kit';
import { fetchNonce, getSubmitInstruction } from '@solana-program/ed25519-programmatic-signer';

const rpc = createSolanaRpc(process.env.QUICKNODE_RPC!, process.env.QUICKNODE_RPC_TOKEN
? { headers: { "x-token": process.env.QUICKNODE_RPC_TOKEN } }
: undefined);
const rpcSubscriptions = createSolanaRpcSubscriptions(process.env.QUICKNODE_WSS!);
const sendAndConfirm = sendAndConfirmTransactionFactory({ rpc, rpcSubscriptions });

const relayer = await createKeyPairSignerFromBytes(
new Uint8Array(JSON.parse(await readFile('relayer.json', 'utf8'))),
);
const { nonceAccount } = JSON.parse(await readFile('nonce.json', 'utf8'));
const signedMessage = JSON.parse(await readFile('signed-message.json', 'utf8'));

const base64 = getBase64Encoder();
const submit = getSubmitInstruction({
signatures: [base64.encode(signedMessage.signature)],
message: base64.encode(signedMessage.authorizationMessage),
});

const { value: latestBlockhash } = await rpc.getLatestBlockhash({ commitment: 'finalized' }).send();
const transaction = await pipe(
createTransactionMessage({ version: 0 }),
m => setTransactionMessageFeePayerSigner(relayer, m),
m => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, m),
m => appendTransactionMessageInstruction(submit, m),
m => signTransactionMessageWithSigners(m),
);

try {
await sendAndConfirm(transaction, { commitment: 'finalized' });
console.log('Submitted:', getSignatureFromTransaction(transaction));
} catch (error) {
console.error('Submit failed:', error instanceof Error ? error.message : error);
const logs = isSolanaError(error) ? (error.context as { logs?: string[] }).logs : undefined;
logs?.filter(line => line.includes('failed')).forEach(line => console.error(' ', line));
process.exitCode = 1;
}

const { data } = await fetchNonce(rpc, address(nonceAccount), { commitment: 'finalized' });
await writeFile('nonce.json', JSON.stringify({ nonceAccount, nonceValue: data.nonce }, null, 2));
console.log('Nonce value now:', data.nonce);

Run submit.ts:

npx tsx --env-file=.env submit.ts

Expected results:

Submitted: 2Dyp4g3tGZWQ5BqmPLGZVFmCTFhMQXzzHkifd1h3FYrBQriozMVaP4vNvfSt4S5EBhAZgZTHPqeSdWUNCF6H2bm7
Nonce value now: 2K2gdEhaLkc6PmBkKkB2oLvysVgM6YvvSo1GEk8gTw4C

A changed nonce value confirms the message executed. To see how, open the transaction signature in Solana Explorer on Devnet. The relayer is the only signer and pays the 5,000-lamport fee. Under the single top-level Submit, the executor runs at stack height 2, and the nonce advance and the System Program transfer run at stack height 3, with the signer PDA as the transfer's source. The cold key's address appears only in the account list.

Retry Without Re-Signing​

The used message can't run again. Run submit.ts a second time and the executor rejects it, because the nonce no longer matches the value in the message:

Submit failed: Transaction simulation failed
Program ExecxgyHYsAXB4c5dZodV1zJZ9hqfsDCYkRDRATrpkFR failed: custom program error: 0x3
Program EdSigVfK1DkeMrjFNDMjwfQaJPhPTtX7jW8uPv3oKEgN failed: custom program error: 0x3
Nonce value now: 2K2gdEhaLkc6PmBkKkB2oLvysVgM6YvvSo1GEk8gTw4C

Now try a message that fails. Sign a transfer of 0.02 SOL, which is more than the PDA holds, and submit it:

npx tsx --env-file=.env sign.ts 20000000
npx tsx --env-file=.env submit.ts

Expected results:

Submit failed: Transaction simulation failed
Program 11111111111111111111111111111111 failed: custom program error: 0x1
Program ExecxgyHYsAXB4c5dZodV1zJZ9hqfsDCYkRDRATrpkFR failed: custom program error: 0x1
Program EdSigVfK1DkeMrjFNDMjwfQaJPhPTtX7jW8uPv3oKEgN failed: custom program error: 0x1
Nonce value now: 2K2gdEhaLkc6PmBkKkB2oLvysVgM6YvvSo1GEk8gTw4C

The System Program rejected the transfer for insufficient funds, and the nonce did not move. Top up the PDA and send the same signed file again, with no new signature from the cold key. Replace <SIGNER_PDA> with the address setup.ts printed:

solana transfer -u devnet -k relayer.json <SIGNER_PDA> 0.02 --commitment finalized
npx tsx --env-file=.env submit.ts

Expected results:

Submitted: 5iX8kpVRYR1nQ5zqTnWPTKmFQhqunJ8Rt3A1ztasCWrF81TPzkMStxdq4F4B5buRoC1f3etM2vwvjtsSe4HGbmdj
Nonce value now: 7AsJaf4ZjvtQQiefxuoqAZWJipo23DgdoiSnomWd23sP

The same holds when a failing transaction lands onchain instead of failing in simulation. The relayer pays the fee, the nonce advance rolls back with the rest of the transaction, and the signed message stays usable. A durable nonce would have advanced and forced a new signature.

These are the program errors you are most likely to meet while working through this flow:

Failing programCodeMeaning and fix
Legacy Message Executor0x3NonceMismatch. The message was already used, or was signed against an old nonce value. Sign again with the current value from nonce.json.
Ed25519 Signer0x3InvalidSignature, when the signer fails on its own. The authorization message or signature changed after signing, or a different key signed it.
Legacy Message Executor0x2MessageAccountsMismatch. The accounts passed to Execute do not match the execution message.
System Program0x1Insufficient funds in the signer PDA. Fund it and resubmit the same file.

Send an Offline Transfer with Blueshift Vector​

Vector's programs are not deployed on Devnet, so this walkthrough builds the Ed25519 program and loads it into a local validator at its published program ID. Vector ships a TypeScript SDK built on @solana/web3.js version 3, and the scripts use it directly. The SDK builds the instructions, computes the digest the cold key signs, and checks a signature offline.

The scripts follow the same split as before, with one addition:

  1. setup.ts creates and funds the Vector PDA.
  2. sign.ts signs the withdrawal offline. With --cancel, it signs an empty Advance instead.
  3. submit.ts checks the signature against the current nonce, then sends the instructions with a relayer as fee payer.

Build Vector and Start a Local Validator​

Clone the repository, build the Ed25519 program, and build the SDK into a tarball. The repository's test dependencies still expect web3.js version 1, so npm install needs --legacy-peer-deps:

git clone https://github.com/blueshift-gg/vector.git
cd vector
git checkout 9a4d926
cargo build-sbf --manifest-path programs/ed25519/Cargo.toml
npm install --legacy-peer-deps
npm run build
npm pack --pack-destination ..
cd ..

This leaves vector-sdk-0.1.0.tgz next to the repository. Start a validator with the program loaded at vectorcLBXJ2TuoKuUygkEi6FWqvBnbHDEDWoYamfjV:

solana-test-validator --bpf-program vectorcLBXJ2TuoKuUygkEi6FWqvBnbHDEDWoYamfjV vector/target/deploy/vector_ed25519.so --reset

Leave the validator running and open a new terminal in the same directory for the rest of this section.

Set Up a Vector Project​

Create the project next to the tarball. The SDK pins @solana/web3.js@3.0.0-rc.0, and the override below moves both the SDK and your scripts to 3.0.0-rc.2 so one copy of web3.js serves both. npm requires the direct dependency to match the override exactly, hence --save-exact:

mkdir vector-demo && cd vector-demo
npm init -y
npm pkg set type=module
npm pkg set 'overrides[@solana/web3.js]=3.0.0-rc.2'
npm install --save-exact @solana/web3.js@3.0.0-rc.2 ../vector-sdk-0.1.0.tgz
npm install -D tsx
Vector SDK and web3.js versions

The Vector SDK is not published to npm, and it targets the web3.js 3.0 release candidates rather than a stable release. It uses the Address class from those release candidates. Release candidate 3 and the stable 3.x releases replaced that class with string addresses, so the SDK does not compile against them. The 3.0.0-rc.0 build the SDK pins also crashes under Node.js with an undefined __VERSION__ error, which 3.0.0-rc.2 fixes. That makes 3.0.0-rc.2 the version that works, and the override applies it to the SDK and your scripts alike. Check the Vector repository for an SDK release that targets stable web3.js before you build on it.

Generate the keypairs and fund the relayer from the local validator:

solana-keygen new --no-bip39-passphrase -o cold.json
solana-keygen new --no-bip39-passphrase -o relayer.json
solana-keygen new --no-bip39-passphrase -o recipient.json
solana airdrop 5 $(solana address -k relayer.json) -u localhost --commitment finalized

Create a .env file with the local validator's URLs and the two addresses. Print the addresses with solana address -k cold.json and solana address -k recipient.json:

.env
RPC_URL=http://127.0.0.1:8899
WSS_URL=ws://127.0.0.1:8900
COLD_IDENTITY=YOUR_COLD_KEY_ADDRESS
RECIPIENT=YOUR_RECIPIENT_ADDRESS

For the Ed25519 scheme, the Vector identity is the cold key's 32-byte public key, which is the same as its Solana address.

Create and Fund a Vector PDA​

setup.ts sends Initialize and a 0.02 SOL transfer into the PDA in one transaction, then reads the starting nonce with fetchVectorAccount. In this web3.js release, Keypair.publicKey is the Address object the SDK and SystemProgram expect, while Keypair.address is its base58 string.

setup.ts
import { readFile, writeFile } from 'node:fs/promises';
import { Address, Connection, Keypair, SystemProgram, Transaction, sendAndConfirmTransaction } from '@solana/web3.js';
import { ED25519, createInitializeEd25519, fetchVectorAccount, findVectorPda } from 'vector-sdk';

const PDA_FUNDING = 20_000_000; // 0.02 SOL

const connection = new Connection(process.env.RPC_URL!, { commitment: 'finalized', wsEndpoint: process.env.WSS_URL });
const relayer = await Keypair.fromSecretKey(new Uint8Array(JSON.parse(await readFile('relayer.json', 'utf8'))));

// For Ed25519, the Vector identity is the cold key's 32-byte public key
const identity = new Address(process.env.COLD_IDENTITY!).toBytes();
const [vectorPda] = findVectorPda(ED25519, identity);

const transaction = new Transaction().add(
createInitializeEd25519(relayer.publicKey, identity),
SystemProgram.transfer({ fromPubkey: relayer.publicKey, toPubkey: vectorPda, lamports: PDA_FUNDING }),
);
const signature = await sendAndConfirmTransaction(connection, transaction, [relayer], { commitment: 'finalized' });

const { nonce } = await fetchVectorAccount(connection, ED25519, identity);
await writeFile('nonce.json', JSON.stringify({ nonce: Buffer.from(nonce).toString('hex') }, null, 2));

console.log('Setup transaction:', signature);
console.log('Vector PDA: ', vectorPda.toBase58());
console.log('Nonce: ', Buffer.from(nonce).toString('hex'));

Run setup.ts:

npx tsx --env-file=.env setup.ts

Expected results:

Setup transaction: 3WfR2iwos3wDf9JezzE6nxgA7yR2E4phFQZMmc2rAxodM55WsRNNdfvCR5E5NFPCSZ7h1E35b7r5c7Eddf9jLQS6
Vector PDA: Cw2ZQXk1CVnm7SuMdR4j3M7ewhtZPHvmedJjvJvKe92P
Nonce: 46b2f3238d43049e26118cc78911a585d61350ccc66d25a1e9cc0fed4927a0f9

As with the Programmatic Signer, nonce.json is the file the offline signer needs.

Sign a Withdrawal Offline​

The signed instructions have to travel from the offline machine to the relayer as a file, and web3.js has no serializer for a bare instruction list. instruction-file.ts writes each TransactionInstruction as JSON with base58 addresses and base64 data, and reads it back:

instruction-file.ts
import { Address, TransactionInstruction } from '@solana/web3.js';

// JSON form of signed instructions, so they can move from the offline machine to the relayer
type InstructionJson = {
programId: string;
keys: { pubkey: string; isSigner: boolean; isWritable: boolean }[];
data: string;
};

export function serializeInstructions(instructions: TransactionInstruction[]): string {
const json: InstructionJson[] = instructions.map(ix => ({
programId: ix.programId.toBase58(),
keys: ix.keys.map(k => ({ pubkey: k.pubkey.toBase58(), isSigner: k.isSigner, isWritable: k.isWritable })),
data: Buffer.from(ix.data).toString('base64'),
}));
return JSON.stringify(json, null, 2);
}

export function deserializeInstructions(json: string): TransactionInstruction[] {
return (JSON.parse(json) as InstructionJson[]).map(
ix =>
new TransactionInstruction({
programId: new Address(ix.programId),
keys: ix.keys.map(k => ({ pubkey: new Address(k.pubkey), isSigner: k.isSigner, isWritable: k.isWritable })),
data: Buffer.from(ix.data, 'base64'),
}),
);
}

sign.ts builds a Withdraw sub-instruction, wraps it in a Passthrough, and hands both to signAdvanceInstructionEd25519. That function computes the digest over the whole instruction list, with the Advance in front of the Passthrough, signs it with the cold key's 32-byte seed, and returns the finished Advance. The script writes both instructions to signed-tx.json, and the relayer sends exactly those.

sign.ts
import { readFile, writeFile } from 'node:fs/promises';
import { Address, Keypair } from '@solana/web3.js';
import {
ED25519,
createPassthroughInstruction,
createWithdrawSubinstruction,
ed25519Identity,
signAdvanceInstructionEd25519,
signRevocationInstructionEd25519,
} from 'vector-sdk';
import { serializeInstructions } from './instruction-file.ts';

// Pass --cancel to sign an empty Advance that invalidates everything signed against this nonce
const cancel = process.argv.includes('--cancel');
const amount = BigInt(process.argv.find(arg => /^\d+$/.test(arg)) ?? '10000000');
const output = cancel ? 'cancel-tx.json' : 'signed-tx.json';

const coldKey = await Keypair.fromSecretKey(new Uint8Array(JSON.parse(await readFile('cold.json', 'utf8'))));
const signingKey = coldKey.secretKey.slice(0, 32); // the Ed25519 seed is the first half of a Solana secret key
const identity = ed25519Identity(signingKey);
const nonce = Buffer.from(JSON.parse(await readFile('nonce.json', 'utf8')).nonce, 'hex');

if (cancel) {
const advance = signRevocationInstructionEd25519(signingKey, nonce);
await writeFile(output, serializeInstructions([advance]));
console.log('Signed a cancel against nonce', nonce.toString('hex'));
} else {
const withdraw = createWithdrawSubinstruction(ED25519, identity, new Address(process.env.RECIPIENT!), amount);
const passthrough = createPassthroughInstruction(ED25519, identity, [withdraw]);
// The signature covers the Advance and every instruction after it, so the relayer can't change the Passthrough
const advance = signAdvanceInstructionEd25519(signingKey, nonce, [], [passthrough]);
await writeFile(output, serializeInstructions([advance, passthrough]));
console.log(`Signed a withdrawal of ${amount} lamports against nonce ${nonce.toString('hex')}`);
}
console.log('Wrote', output);

Run sign.ts:

npx tsx --env-file=.env sign.ts 10000000

Expected results:

Signed a withdrawal of 10000000 lamports against nonce 46b2f3238d43049e26118cc78911a585d61350ccc66d25a1e9cc0fed4927a0f9
Wrote signed-tx.json

Verify and Submit Signed Instructions​

A relayer can't tell whether a Vector signature is still valid by looking at it, since validity depends on the nonce stored onchain. submit.ts reads the current nonce and calls verifyAdvanceSignatureEd25519, which recomputes the digest and throws SignatureVerificationError if the signature no longer matches, before the relayer pays any fee. Then it sends the Advance and Passthrough instructions in a transaction where the relayer is the only signer.

submit.ts
import { readFile, writeFile } from 'node:fs/promises';
import { Address, Connection, Keypair, SendTransactionError, Transaction, sendAndConfirmTransaction } from '@solana/web3.js';
import { ED25519, SignatureVerificationError, fetchVectorAccount, verifyAdvanceSignatureEd25519 } from 'vector-sdk';
import { deserializeInstructions } from './instruction-file.ts';

const file = process.argv[2] ?? 'signed-tx.json';

const connection = new Connection(process.env.RPC_URL!, { commitment: 'finalized', wsEndpoint: process.env.WSS_URL });
const relayer = await Keypair.fromSecretKey(new Uint8Array(JSON.parse(await readFile('relayer.json', 'utf8'))));
const identity = new Address(process.env.COLD_IDENTITY!).toBytes();
const [advance, ...after] = deserializeInstructions(await readFile(file, 'utf8'));

async function saveNonce(): Promise<string> {
const { nonce } = await fetchVectorAccount(connection, ED25519, identity);
const hex = Buffer.from(nonce).toString('hex');
await writeFile('nonce.json', JSON.stringify({ nonce: hex }, null, 2));
return hex;
}

// Check the signature against the current onchain nonce before paying a fee
const { nonce } = await fetchVectorAccount(connection, ED25519, identity);
try {
verifyAdvanceSignatureEd25519(identity, nonce, [], after, advance.data.subarray(1));
} catch (error) {
if (error instanceof SignatureVerificationError) {
console.error(`${file} was not signed against the current nonce. It was used, canceled, or altered.`);
process.exit(1);
}
throw error;
}

try {
const transaction = new Transaction().add(advance, ...after);
const signature = await sendAndConfirmTransaction(connection, transaction, [relayer], { commitment: 'finalized' });
console.log('Submitted:', signature);
} catch (error) {
// transactionError.message holds the one-line reason; error.message also dumps every log line
const reason = error instanceof SendTransactionError ? error.transactionError.message : error;
console.error('Submit failed:', reason);
process.exitCode = 1;
}

console.log('Nonce now:', await saveNonce());

Run submit.ts:

npx tsx --env-file=.env submit.ts

Expected results:

Submitted: 3A7er8HFN75HwDKG8QqkvVHVvXRxGGqcxvx4tKNnL9Q74uxqmSG2CQ8ybkjVhWquT2e7BkY4GQLNVemrRXBQ97pQ
Nonce now: a7d7708ca81678e6029f832bad97fc1fff53e4e368e494f93e924be68a5b41fc

Check the recipient with solana balance -u localhost $(solana address -k recipient.json), which should show 0.01 SOL. The whole transaction uses about 15,000 compute units: roughly 13,000 for the signature check in Advance, and a few thousand for Passthrough and the Withdraw it runs at stack height 2. Running submit.ts again fails the local check, because the nonce has moved:

signed-tx.json was not signed against the current nonce. It was used, canceled, or altered.

A failed attempt behaves the same way as with the Programmatic Signer. Sign a withdrawal of 0.02 SOL, which is more than the PDA's remaining balance, and submit it:

npx tsx --env-file=.env sign.ts 20000000
npx tsx --env-file=.env submit.ts

Expected results:

Submit failed: Program vectorcLBXJ2TuoKuUygkEi6FWqvBnbHDEDWoYamfjV failed: insufficient funds for instruction
Nonce now: a7d7708ca81678e6029f832bad97fc1fff53e4e368e494f93e924be68a5b41fc

The nonce stays put, and the same signed file can be resubmitted once the PDA is funded.

Cancel a Pending Signature​

Signed messages don't expire, so a custody flow needs a way to revoke one that is still waiting to be submitted. With Vector, an Advance with no other instructions does this. It consumes the nonce and installs a new one, which orphans every signature made against the old value. Sign a withdrawal and a cancel against the same nonce, then submit only the cancel:

npx tsx --env-file=.env sign.ts 1000000
npx tsx --env-file=.env sign.ts --cancel
npx tsx --env-file=.env submit.ts cancel-tx.json
npx tsx --env-file=.env submit.ts signed-tx.json

Expected results:

Submitted: 3Mntjg6NSnj62vJ1oAQtLni1rvLboanJh5pYebpskLeqxMLZfPiAqvwx9Gccmoq9GAxVi2LmHgwK7MV49tqLMsXV
Nonce now: 1c7ec3645f16d197ff5347bfaf4a82ae2fcd959809d3ffb9d2a8aa6416a6e340
signed-tx.json was not signed against the current nonce. It was used, canceled, or altered.

The withdrawal is now dead. A cancel can be signed ahead of time and stored with the pending message, so revoking it later doesn't need the cold key. It has to be broadcast as a transaction containing only that Advance, because its digest commits to an otherwise empty instruction list.

How Do You Migrate an App Off Durable Nonces?​

To migrate an app off durable nonces, move each authority and balance a cold key controls to that key's signer PDA, clear out pending nonce transactions, update anything keyed to the old address, and run a hot fee payer to submit signed messages. Do this after a replacement is audited and live on mainnet, while durable nonces still work.

Normal blockhash transactions need no changes. Test the full flow on Devnet or a local validator now, then work through these steps:

ActionDetails
List every account authorized through a durable nonceWallets, stake accounts (stake and withdraw authorities), token accounts (owner and close authorities), and token mints (mint and freeze authorities).
Derive the signer PDA for each cold keyThe Programmatic Signer PDA needs no initialization. A Vector PDA has to be created with Initialize.
Move authorities and funds to the PDAUse durable nonce transactions for the migration itself. Reassign stake and mint authorities directly. For token accounts, create an associated token account owned by the PDA and transfer the tokens. Transfer native SOL to the PDA.
Plan for the new addressThe PDA is a different address from the cold key, so everything keyed to the old address changes with it, including deposit instructions you've given counterparties, exchange allowlists, accounting records, and proof-of-reserves reports. Regulated institutions should scope this as its own workstream, covering counterparty coordination and compliance controls, separate from the signer integration.
Clear out pending nonce transactionsBefore cutover, list every transaction already signed with a durable nonce and still waiting to be broadcast. Broadcast or cancel each one, where canceling means advancing its nonce account, then re-sign anything still needed through the new program.
Run a hot fee payerIt only needs SOL for fees, never custody of user funds, but it becomes standing infrastructure with its own funding, balance monitoring, and key management. A paymaster such as Kora can fill this role. Rotate fee payers between clients, since a shared fee payer links every wallet it relays for.

Other parts of the stack that touch nonce transactions need smaller changes:

ComponentWhat changes
Wallets and offline signing toolsDecode the new payloads, warn users that they are signing a message with no expiry that whoever holds it can submit later, show which PDA will act next to the cold key, and support v1 transactions.
Relayers, paymasters, and transaction guardsDrop rules that require or reject AdvanceNonceAccount, add the signer program IDs to their allowlists, and expect a PDA as the acting signer in inner instructions.
RPC middlewareMiddleware that depends on getFeeForMessage falling back to a nonce account's stored fee loses that fallback when nonces go away.
Reconciliation and accounting systemsKey each approved action to its signed message, for example a hash of it, instead of a transaction signature. The relayer signs and pays for every attempt, and a retried message lands in a new outer transaction, so one approval can map to several transaction signatures.
Indexers and explorersAttribute activity to the PDA in inner instructions, since the cold key no longer signs the transaction. Map Programmatic Signer PDAs to authorities by deriving ["programmatic-signer", authority], and read a Vector identity from byte offset 33 of its PDA account. Pass maxSupportedTransactionVersion: 1 on getTransaction and getBlock to read v1 relay transactions.
Validator operatorsOperators who use durable nonces to hand over a vote account's authorized voter or withdrawer without trusting the other party should plan to run that flow through an offline signer program.

Check Your Program for Offline Signer Compatibility​

Offline signer users reach a program through CPI, at stack height 2 with Vector or stack height 3 with the Programmatic Signer, signed by a PDA. Nothing breaks for programs that accept CPI callers, but three common patterns lock these users out:

  • Stack height checks. A program that asserts sol_get_stack_height() == TRANSACTION_LEVEL_STACK_HEIGHT rejects every call that arrives through CPI.
  • Instruction introspection that expects top-level instructions. Flash loan programs read the instructions sysvar to find their repayment instruction, and signature verification reads it to find a precompile instruction. Only top-level instructions appear in the sysvar, so instructions nested inside Submit or Passthrough are invisible to these checks.
  • Token-2022 CPI Guard. This extension lets a token account owner block transfers, approvals, burns, and authority changes whenever the owner's signature arrives through CPI. A signer PDA only acts through CPI, so a token account with CPI Guard enabled rejects every instruction from it.

To support these users, allow the known signer program IDs through these checks or offer a path that accepts CPI callers. Where a protocol insists on top-level calls, users can withdraw to a hot key first and act from there.

Also remove any dependency on System Program nonce instructions. A program that looks for AdvanceNonceAccount at instruction index 0 stops matching once nonce transactions are gone.

Wrapping Up​

You moved SOL out of a PDA twice, and neither time did the cold key sign a transaction. With the Programmatic Signer, the cold key signed a nested v1 message that a relayer submitted on Devnet, and a failed attempt went through on the second try with the same signature. With Vector, the cold key signed a hash of the exact instructions the relayer would send, and a pre-signed cancel killed a pending withdrawal. To apply the pattern to your own flows, move the authority to the signer PDA, swap the transfer for the stake, token, or mint instructions your workflow needs, and keep the cold key's job limited to signing messages.

Resources​

Frequently Asked Questions​

When will durable nonces be removed from Solana?

No date is set. Durable nonces keep working until a replacement offline signer program is audited and live on mainnet, and removal is expected roughly six months after that. Removing them will require a feature gate in a regular validator client release.

Do normal Solana transactions change when durable nonces are removed?

No. Transactions that use a recent blockhash and land before it expires are unaffected. Only apps that sign with durable nonces, and tools that inspect or depend on nonce instructions, need to change.

Can a Ledger or Trezor sign offline signer program messages?

The Anza Programmatic Signer is designed for hardware wallets, because its authorization message is a standard Solana v1 message. Blueshift Vector asks the key to sign a raw SHA-256 hash, which most hardware wallets refuse to sign.

Does the cold key need SOL to use an offline signer program?

No. The cold key only signs a message. A separate hot fee payer submits it in a normal transaction and pays the fees, and any relayer can do this because the signature does not cover the fee payer.

Do signed offline signer messages expire?

No. Neither the Programmatic Signer nor Vector has a built-in expiry, so a signed message stays valid until it lands or is canceled. Add a deadline instruction such as sbpf-asm-timeout to the signed instructions when the message should expire.