> ## 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.

# getSignatureStatuses

> Returns the current status for each supplied transaction signature. Each signature must be a txid, the first signature of a transaction.

Each signature must be a
[txid](/developers/docs/references/terminology#transaction-id), the first signature of a
transaction.

<Info>
  **Source**

  [`get_signature_statuses`](https://github.com/anza-xyz/agave/blob/v4.3.2/rpc/src/rpc.rs#L1679)
</Info>

<Info>
  Unless the `searchTransactionHistory` configuration parameter is included,
  this method only searches the recent status cache of signatures, which retains
  statuses for all active slots plus `MAX_RECENT_BLOCKHASHES` rooted slots.
</Info>

<RequestExample>
  ```bash cURL
  curl https://api.devnet.solana.com -s -X POST \
    -H "Content-Type: application/json" \
    -d '
    {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getSignatureStatuses",
      "params": [
        [
          "4cdd1oX7cfVALfr26tP52BZ6cSzrgnNGtYD7BFhm6FFeZV5sPTnRvg6NRn8yC6DbEikXcrNChBM5vVJnTgKhGhVu"
        ],
        {
          "searchTransactionHistory": true
        }
      ]
    }
  '
  ```

  ```ts Kit
  import { createSolanaRpc, type Signature } from "@solana/kit";

  const rpc_url = "https://api.devnet.solana.com";
  const rpc = createSolanaRpc(rpc_url);

  let signatures = [
    "4cdd1oX7cfVALfr26tP52BZ6cSzrgnNGtYD7BFhm6FFeZV5sPTnRvg6NRn8yC6DbEikXcrNChBM5vVJnTgKhGhVu" as unknown as Signature
  ];

  let config = {
    searchTransactionHistory: true
  };

  let signatureStatus = await rpc.getSignatureStatuses(signatures, config).send();

  console.log(signatureStatus);
  ```

  ```ts web3.js
  import {
    Connection,
    clusterApiUrl,
    type SignatureStatusConfig
  } from "@solana/web3.js";

  const connection = new Connection(clusterApiUrl("devnet"), "confirmed");

  let signatures = [
    "4cdd1oX7cfVALfr26tP52BZ6cSzrgnNGtYD7BFhm6FFeZV5sPTnRvg6NRn8yC6DbEikXcrNChBM5vVJnTgKhGhVu"
  ];

  let config: SignatureStatusConfig = {
    searchTransactionHistory: true
  };

  let signatureStatus = await connection.getSignatureStatuses(signatures, config);
  console.log(signatureStatus);
  ```

  ```rs Rust
  use anyhow::Result;
  use solana_client::nonblocking::rpc_client::RpcClient;
  use solana_commitment_config::CommitmentConfig;
  use solana_sdk::signature::Signature;
  use std::str::FromStr;

  #[tokio::main]
  async fn main() -> Result<()> {
      let client = RpcClient::new_with_commitment(
          String::from("https://api.devnet.solana.com"),
          CommitmentConfig::confirmed(),
      );

      let signatures_str = [
          "4cdd1oX7cfVALfr26tP52BZ6cSzrgnNGtYD7BFhm6FFeZV5sPTnRvg6NRn8yC6DbEikXcrNChBM5vVJnTgKhGhVu",
      ];
      let signatures = signatures_str.map(|sig| Signature::from_str(sig).unwrap());

      let signature_status = client
          .get_signature_statuses_with_history(&signatures)
          .await?;

      println!("{:#?}", signature_status);

      Ok(())
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Response
  {
    "jsonrpc": "2.0",
    "result": {
      "context": { "apiVersion": "4.3.2", "slot": 82 },
      "value": [
        {
          "slot": 48,
          "confirmations": null,
          "err": null,
          "status": {
            "Ok": null
          },
          "confirmationStatus": "finalized"
        },
        null
      ]
    },
    "id": 1
  }
  ```
</ResponseExample>

## Parameters

<ParamField body="signatures" type="array" required>
  An array of transaction signatures to confirm, as base-58 encoded strings (up to
  a maximum of 256)
</ParamField>

<ParamField body="config" type="object">
  Configuration object containing the following fields. Nodes running Agave
  before v4.4 reject a config object without `searchTransactionHistory`
  (`-32602`, "missing field `searchTransactionHistory`"), so set it whenever you
  send the object, or omit the object to use the defaults.

  <Expandable title="properties" defaultOpen>
    <ParamField body="searchTransactionHistory" type="bool" default="false">
      Values: `true`, `false`

      if `true` - a Solana node will search its ledger cache for any signatures not
      found in the recent status cache. Defaults to `false` when you omit the
      config object, or, from Agave v4.4, when you omit this field.
    </ParamField>

    <ParamField body="commitment" type="string" default="processed">
      Values: `processed`, `confirmed`, `finalized`

      Commitment level of the bank whose recent status cache the node searches.
      The default is `processed`, unlike most methods.

      <Warning>
        Available from Agave v4.4. Nodes running an earlier version ignore this
        field and always search at `processed`.
      </Warning>
    </ParamField>

    <ParamField body="minContextSlot" type="number">
      The minimum slot that the request can be evaluated at. If the node has not
      reached it, the request fails with error `-32016` ("Minimum context slot has
      not been reached").

      <Warning>
        Available from Agave v4.4. Nodes running an earlier version ignore this
        field.
      </Warning>

      ```json Example
      { "searchTransactionHistory": true, "minContextSlot": 341197000 }
      ```
    </ParamField>
  </Expandable>
</ParamField>

## Result

<ResponseField name="result" type="object">
  RpcResponse object containing:

  <Expandable title="properties" defaultOpen>
    <ResponseField name="context" type="object">
      Slot and API version the node used to answer this request.

      | Field        | Type     | Description                                                                     |
      | ------------ | -------- | ------------------------------------------------------------------------------- |
      | `slot`       | `u64`    | Slot at which the node evaluated this request.                                  |
      | `apiVersion` | `string` | RPC API version reported by the node. This field may be omitted by older nodes. |
    </ResponseField>

    <ResponseField name="value" type="array">
      Array consisting of either `null` or a transaction-status object containing the
      following fields:

      | Field                | Type                       | Description                                                                                                            |
      | -------------------- | -------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
      | `slot`               | `u64`                      | Slot in which the transaction was processed.                                                                           |
      | `confirmations`      | `usize \| null`            | `null` once the transaction's block is finalized. Before that, `0`.                                                    |
      | `err`                | `object \| string \| null` | Error if the transaction failed. `null` if the transaction succeeded.                                                  |
      | `status`             | `object`                   | Deprecated legacy status object that mirrors `err`.                                                                    |
      | `confirmationStatus` | `string \| null`           | Cluster confirmation status. When present, the value is `processed`, `confirmed`, or `finalized`.                      |

      When `err` is returned as an object, it is a transaction error enum payload
      rather than a fixed JSON schema:

      | Field           | Type                                | Description                                                                                                                                     |
      | --------------- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
      | `<variantName>` | `array \| object \| string \| null` | Transaction error variant payload. Most variants serialize as strings. `InstructionError` serializes as `[instructionIndex, instructionError]`. |

      **`status` fields**

      **DEPRECATED** Legacy transaction status object. Exactly one of these fields is
      present:

      | Field | Type               | Description                                                       |
      | ----- | ------------------ | ----------------------------------------------------------------- |
      | `Ok`  | `null`             | Transaction succeeded.                                            |
      | `Err` | `object \| string` | Transaction failed. Payload uses the same serialization as `err`. |
    </ResponseField>
  </Expandable>
</ResponseField>
