What's in a transaction, and what a signer can check from the bytes

Signatures plus a message: header, account keys, a recent blockhash, instructions. A signer can check nearly everything from the bytes, except accounts hidden in lookup tables. Blockhashes expire in about a minute. Durable nonces don't.

Read the briefing
About 2 min to read 6 drills

What to remember

  1. Blockhash is a timer. After about 150 slots the transaction can't land. So a stolen or held signature has a short life, unless a nonce removes that.
  2. A durable nonce removes the timer. It's valid until the nonce advances, so a signed transaction can sit in reserve. That's useful and dangerous.
  3. Lookup tables hide accounts. A v0 message may not show every account in its bytes, so a policy must resolve the tables from a verified copy, or refuse.
  4. First signer pays. The fee payer is the first signer, and its signature is the transaction's ID.
  5. Fees are a way to lose money. Compute price and tips are value too, so a policy caps them. Otherwise a compromised service can burn funds without moving them anywhere suspicious.

The big picture

To put policy in front of signing on Solana you need to know what's in the bytes. It's a simple format, and that's what makes checking before signing possible. It also has two features with security consequences: durable nonces and lookup tables.

The mental model

A cheque with an expiry date. The blockhash is the date, so it goes stale in about a minute. A durable nonce is a cheque with no date, valid until you cancel it, which makes it worth a very different level of care.

Diagrams

A transaction
signatures  [ed25519, one per required signer]
message
  header         how many signers, how many read-only
  account keys   the first signer pays
  blockhash      or a durable nonce's value
  instructions   program, accounts, data
  lookups        v0 only: more accounts, by table

In depth

What a signer can check from the bytes

Who's required to sign, and who pays. Which programs are invoked. Each instruction's data, against a decoder for that program. Compute-budget instructions for the limit and price. Transfers, including tips. Whether the first instruction is a nonce advance, which means this is a durable-nonce transaction.

Expiry

A recent blockhash is valid for about 150 slots, so roughly a minute at about 400 ms a slot. Validators reject anything older, and that also stops replays, since the same transaction has the same signature. Check the current docs for the exact figures before quoting them.

Durable nonces

A nonce account stores a value used in place of the blockhash, and the transaction's first instruction advances it. The transaction stays valid until then. That's useful for offline signing and for multisig flows that take time. It also means a signed transaction can be held and submitted later, and the signer can't revoke it except by advancing the nonce. Public analyses of the Drift incident in April 2026 describe this being used to take admin control.

Versioned messages and lookup tables

A v0 message can refer to accounts through address lookup tables, stored on-chain, which fits more accounts into 1232 bytes. For a policy, the bytes then hold table references rather than addresses. So resolve from a local copy you trust, watching for table changes, or refuse v0 for that key.

Myths and facts

Myth: A signed Solana transaction is safe to keep, since it expires.

Fact: Only if it uses a blockhash. A durable-nonce one lasts until the nonce moves.

Myth: You can read everything a transaction touches from its bytes.

Fact: Not with lookup tables. Those accounts live on-chain, and they can change.

Myth: Simulating before signing replaces a policy.

Fact: Simulation runs against state that may change by the time it lands, and it's too slow for a hot path. It's a slow-path tool.

How pros do it

  • Decode instructions per program, and deny programs you can't decode.
  • Refuse durable nonces on hot keys unless they're named.
  • Resolve lookup tables from a verified local copy, or refuse them.
  • Cap compute price and tips per transaction and per window.
  • Fuzz your parser against the validator client's own.

Questions people ask

How do durable nonces change a policy?

Treat them as a different class: refuse by default, allow by name for slow flows, and bound what can be signed with one. In an incident, look for outstanding ones, and advance the nonce to kill them.

Can a signer check slippage or price?

Only as far as it can decode the instruction. It knows the arguments, not the state it'll meet. So it can cap what's stated, and it can't promise an outcome. Say that distinction.

Why ed25519 and not secp256k1?

That's Solana's choice: fast verification and deterministic signatures. For you it matters because key stores differ in what they support. AWS KMS supports ed25519 now, but other options vary, so check.

Further reading

Drills · 6

Answer in your head, or out loud, before you reveal. Mark each one: "Again" brings it back, "Got it" counts on your desk.

1 Pick the strongest answer

What's the security difference between a transaction using a recent blockhash and one using a durable nonce?

  1. The first expires in about a minute. The second stays valid until the nonce advances, so a signed one can be held and used later. That lasting validity is both why they exist and why they need care.
  2. Durable-nonce transactions can be replayed many times. Advancing the nonce stops replay. The risk is delay, not repeat.
  3. Blockhash transactions can be revoked, and durable-nonce ones can't. Neither can be revoked as such. The nonce one can be killed by advancing the nonce; the other simply expires.
  4. Durable-nonce transactions use a stronger signature. The signature's the same. What differs is how long it's useful.
In short

A blockhash transaction expires in about a minute; a durable-nonce one stays valid until the nonce advances, so it can be held and used later.

Why

"Signed intent can sit in reserve" is the phrase. A policy should bound it: refuse unless named on hot keys, and keep an inventory for slow flows.

2 Answer out loud

A Solana transaction arrives at your signing proxy as bytes. What can you check before signing, and what can't you check?

In short

You can check signers, programs, decoded instructions, fees, tips and nonce use; you can't see accounts in lookup tables without a copy, or the state it'll meet when it lands.

What a strong answer does
  • What's checkable: Signers, fee payer, programs, instruction decoders, compute price, tips, nonce use.
  • What isn't: Lookup tables without a verified copy, and on-chain state at execution.
  • communication: Walks the format in order, then says where it stops.
Why

The first half shows you know the format. The second half is what scores: lookup tables without a verified copy, and the on-chain state at execution time, which is why a policy caps stated values, and can't promise outcomes.

The common mistake

Promising that a policy can stop any bad outcome. It checks intent, not results.

3 Pick the strongest answer

Your policy allow-lists destination accounts by reading the message's account keys. A service starts sending v0 transactions. What breaks?

  1. Nothing: v0 only changes the fee calculation. Its whole purpose is address lookup tables.
  2. The size limit is removed, so the parser overflows. The limit stays at 1232 bytes. v0 fits more accounts inside it.
  3. v0 transactions can't be signed with ed25519. They're signed the same way.
  4. Accounts may be loaded from lookup tables, so they're not in the static keys, and the check can miss them. The bytes contain a table reference and an index. You need a trusted copy to know what they mean.
In short

Accounts can now come from lookup tables, so they aren't in the bytes, and the allow-list can miss them.

Why

A safe parser refuses what it doesn't fully understand. Add v0 support deliberately, with a verified copy of the tables you allow.

4 Quick recall

What's the maximum size of a Solana transaction, in bytes?

In short

1232 bytes, chosen so a transaction fits in one network packet.

Accepted

1232 · 1232 bytes

Why

It comes from an IPv6 MTU minus headers. It's why lookup tables exist, and why you can't fit much in one transaction.

5 Quick recall

Roughly how long is a recent blockhash valid? Answer in slots.

In short

About 150 slots, roughly a minute.

Accepted

150 · 150 slots · about 150

Why

About a minute at around 400 ms a slot. Slot times vary, so landing tools track block height rather than the clock.

6 Scenario: what do you do next?

Reviewing your signer's logs, you find a trading key signed several durable-nonce transactions last week that none of the strategies should send. None of them has landed yet.

Step 1. What's the urgency?

  1. High. They can land at any time, so this is live, even though nothing has happened yet. A held signature is a loaded gun. Nothing has expired.
  2. Low. Nothing has landed in a week, so they've probably expired. Durable-nonce transactions don't expire. That's the point.

Step 2. What do you do about those signatures?

  1. Advance the nonce accounts, which makes those transactions invalid, and check the key's value and other nonces. It's the only way to cancel them, and it uses the nonce authority, so check who holds that as well.
  2. Rotate the key. That cancels its signatures. Signatures stay valid after rotation. Only the nonce advancing kills these.

Step 3. What changes in the policy?

  1. Refuse durable nonces on this key unless named, and alert on any attempt. It removes the class, and an attempt is itself a useful signal.
  2. Add a line to the runbook about checking for them. It's the same failure next time.
In short

Treat it as a live incident: stop the key, advance the nonces to kill what was signed, move value, then find how it happened.

Why

It tests whether you understand that the signature itself is what's dangerous, and how to kill one.

That's the last lesson in mission 12 Pick your next mission
Drill · What's in a transaction, and what a signer can check from the bytes
0:00

Loading…