> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Transactions

> Solana transactions: signatures plus a message of instructions that succeed or fail together. Structure, blockhash expiry, versions, and durable nonces.

## In short

A transaction is a signed request to change the shared ledger. It either fully happens or doesn't happen at all, and once confirmed anyone can look it up.

<div className="sol-usedin not-prose" data-concept="transaction">
<span className="sol-usedin-label">You've used this in:</span> [Quickstart <span className="sol-usedin-step">Step 2</span>](/developers/docs/quickstart/send-dollars) [Payments <span className="sol-usedin-step">Overview</span>](/developers/docs/payments/checkout) [Payments <span className="sol-usedin-step">Step 1</span>](/developers/docs/payments/checkout/try-it) [Payments <span className="sol-usedin-step">Step 2</span>](/developers/docs/payments/checkout/browser) [Pay-per-call <span className="sol-usedin-step">Step 1</span>](/developers/docs/payments/paywall-api/try-it) [Tokenized asset <span className="sol-usedin-step">Step 1</span>](/developers/docs/assets/issue-asset/try-it) [Trade settlement <span className="sol-usedin-step">Overview</span>](/developers/docs/defi/settle-trade)
</div>

A transaction holds one or more [instructions](/developers/docs/core/instructions), the
signatures that authorize them, and a recent blockhash. Its instructions run
together: if any fails, the whole transaction fails and every change is
reverted.

<Frame caption="A transaction holds one or more instructions, and they succeed or fail together.">
  <img className="block dark:hidden" src="/docs-assets/assets/docs/core/transactions/transaction-simple-light.svg" alt="A transaction holds one or more instructions, and they succeed or fail together." />

  <img className="hidden dark:block" src="/docs-assets/assets/docs/core/transactions/transaction-simple.svg" alt="A transaction holds one or more instructions, and they succeed or fail together." />

  <img className="block dark:hidden" src="/docs-assets/assets/docs/core/transactions/transaction-simple-sm-light.svg" alt="A transaction holds one or more instructions, and they succeed or fail together." />

  <img className="hidden dark:block" src="/docs-assets/assets/docs/core/transactions/transaction-simple-sm.svg" alt="A transaction holds one or more instructions, and they succeed or fail together." />
</Frame>

<Columns cols={2}>
  <Card
    title="Transaction structure"
    href="/developers/docs/core/transactions/transaction-structure"
  >
    Signatures, the message format, binary encoding, and the size budget, with
    a SOL transfer example.
  </Card>
  <Card
    title="Versioned transactions"
    href="/developers/docs/core/transactions/versioned-transactions"
  >
    Legacy, v0, and v1 formats, and Address Lookup Tables.
  </Card>
  <Card
    title="Transaction Pipeline"
    href="/developers/docs/core/transactions/transaction-pipeline"
  >
    The 8 processing stages from receive to commit, and validation errors.
  </Card>
  <Card title="Durable nonces" href="/developers/docs/core/transactions/durable-nonces">
    Sign offline without the 150-slot blockhash expiry.
  </Card>
  <Card title="Production readiness" href="/developers/docs/tools/transaction-landing#transaction-landing">
    Landing, retries, priority fees, and confirmation on mainnet.
  </Card>
</Columns>

## Signatures

Every transaction is signed by the wallets it spends from. The first signature doubles as the transaction's ID, which is what your code gets back and looks up later.

Each required signer approves the whole transaction, and the network verifies
every signature before it runs any instruction. See
[Wallets & signatures](/developers/docs/core/wallets) for how keys and signing work.

<div className="sol-usedin not-prose" data-concept="signature">
<span className="sol-usedin-label">You've used this in:</span> [Quickstart <span className="sol-usedin-step">Step 4</span>](/developers/docs/quickstart/send-asset) [Payments <span className="sol-usedin-step">Step 2</span>](/developers/docs/payments/checkout/browser) [Pay-per-call <span className="sol-usedin-step">Step 2</span>](/developers/docs/payments/paywall-api/browser)
</div>

## Key facts

- **Atomic execution**: All instructions succeed or all revert. Fees are still
  charged on failure.
- **Size limit**: 1,232 bytes maximum, derived from the IPv6 minimum MTU (1,280
  bytes) minus 48 bytes for network headers. The
  [v1 format](/developers/docs/core/transactions/versioned-transactions#v1-format) raises
  this to 4,096 bytes.
- **Signatures**: Each signer provides one 64-byte Ed25519 signature.
- **Blockhash expiry**: A transaction's recent blockhash is valid for 150 blocks, about 30 seconds at 200ms slots.

## Limits

| Limit                        | Value                                                                         | Source                                                                                                                   |
| ---------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| Max transaction size         | 1,232 bytes                                                                   | [`PACKET_DATA_SIZE`](https://github.com/anza-xyz/solana-sdk/blob/clock%40v2.2.3/packet/src/lib.rs#L32)                   |
| Max accounts per transaction | 64 (96 for v1 with [SIMD-0596](https://solana.com/upgrades/v1-account-limit)) | [Enforced limit](https://github.com/anza-xyz/agave/blob/v3.1.8/runtime/src/bank.rs#L2942)                                |
| Blockhash expiry             | 150 slots                                                                     | [`MAX_PROCESSING_AGE`](https://github.com/anza-xyz/solana-sdk/blob/clock%40v2.2.3/clock/src/lib.rs#L133)                 |
| Signature size               | 64 bytes (Ed25519)                                                            | --                                                                                                                       |
| Base fee per signature       | 5,000 lamports                                                                | [Fees](/developers/docs/core/fees/fee-structure#base-fee)                                                                           |
| Max executed instructions    | 64 (top-level + CPIs)                                                         | [`MAX_INSTRUCTION_TRACE_LENGTH`](https://github.com/anza-xyz/agave/blob/v3.1.8/transaction-context/src/lib.rs#L41)       |
| Max signatures per packet    | 12                                                                            | [`MAX_SIGNATURES_PER_PACKET`](https://github.com/anza-xyz/agave/blob/v3.1.8/transaction-view/src/signature_frame.rs#L18) |
