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

# getSignaturesForAddress

> Returns confirmed transaction signatures for transactions that reference the supplied address in accountKeys, newest first.

<Info>
  **Source**

  [`get_signatures_for_address`](https://github.com/anza-xyz/agave/blob/v4.3.2/rpc/src/rpc.rs#L1858)
</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": "getSignaturesForAddress",
      "params": [
        "Vote111111111111111111111111111111111111111",
        {
          "commitment": "finalized",
          "limit": 1
        }
      ]
    }
  '
  ```

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

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

  let addr = address("Vote111111111111111111111111111111111111111");

  let signaturesForConfig = {
    limit: 1
  };

  let signatures = await rpc
    .getSignaturesForAddress(addr, signaturesForConfig)
    .send();

  console.log(signatures);
  ```

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

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

  let signaturesOptions: SignaturesForAddressOptions = {
    limit: 1
  };

  let address = new PublicKey("Vote111111111111111111111111111111111111111");
  let signatures = await connection.getSignaturesForAddress(
    address,
    signaturesOptions
  );

  console.log(signatures);
  ```

  ```rs Rust
  use anyhow::Result;
  use solana_client::{
      nonblocking::rpc_client::RpcClient, rpc_client::GetConfirmedSignaturesForAddress2Config,
  };
  use solana_commitment_config::CommitmentConfig;
  use solana_sdk::pubkey;

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

      let address = pubkey!("Vote111111111111111111111111111111111111111");

      let signatures_for_config = GetConfirmedSignaturesForAddress2Config {
          before: None,
          until: None,
          limit: Some(1),
          commitment: CommitmentConfig::finalized().into(),
      };

      let signatures = client
          .get_signatures_for_address_with_config(&address, signatures_for_config)
          .await?;

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

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

<ResponseExample>
  ```json Response
  {
    "jsonrpc": "2.0",
    "result": [
      {
        "signature": "5h6xBEauJ3PK6SWCZ1PGjBvj8vDdWG3KpwATGy1ARAXFSDwt8GFXM7W5Ncn16wmqokgpiKRLuS83KUxyZyv2sUYv",
        "slot": 114,
        "err": null,
        "memo": null,
        "blockTime": null,
        "confirmationStatus": "finalized",
        "transactionIndex": 0
      }
    ],
    "id": 1
  }
  ```
</ResponseExample>

## Parameters

<ParamField body="address" type="string" required>
  Account address as base-58 encoded string
</ParamField>

<ParamField body="config" type="object">
  Configuration object containing the following fields:

  <Expandable title="properties" defaultOpen>
    <ParamField body="commitment" type="string" default="finalized">
      Values: `confirmed`, `finalized`

      Solana RPC uses the following commitment levels:

      | Value       | Description                                                                                                                                                                               |
      | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
      | `processed` | Return data from the highest slot this node has processed. This is the newest view, but the block can still be skipped.                                                                   |
      | `confirmed` | Return data from the same slot as `finalized`. Kept for compatibility and planned for removal in a later release.                                                                         |
      | `finalized` | Return data from the highest slot with a finalization certificate, from votes by 80% of stake in one round or 60% of stake in each of two rounds. This is the strongest commitment level. |

      This method does not accept `processed`.
    </ParamField>

    <ParamField body="minContextSlot" type="number">
      The minimum slot that the request can be evaluated at

      ```json Example
      { "minContextSlot": 341197000 }
      ```
    </ParamField>

    <ParamField body="limit" type="usize" default="1000">
      Maximum transaction signatures to return (between 1 and 1,000).
    </ParamField>

    <ParamField body="before" type="string">
      Start searching backwards from this transaction signature. If not provided the
      search starts from the top of the highest max confirmed block.

      ```json Example
      {
        "before": "5h6xBEauJ3PK6SWCz5Qq8DbD4t7VDdaRhfvsRrHBhXX2x4dLZxN1YhJpN96CBvs1BgqsSVqSogn8CA9nVddrzNRs"
      }
      ```
    </ParamField>

    <ParamField body="until" type="string">
      Search until this transaction signature, if found before limit reached

      ```json Example
      {
        "until": "2id3YC2jK9G5Wo2phDx4gJVAew8DcY5NAojnVuao8rkxwPYPe8cSwE5GzhEgJA2y8fVjDEo6iR6ykBvDxrTQrtpb"
      }
      ```
    </ParamField>
  </Expandable>
</ParamField>

## Result

<ResponseField name="result" type="array">
  An array of transaction signature information objects, ordered from **newest**
  to **oldest** transaction, containing:

  <Expandable title="properties" defaultOpen>
    <ResponseField name="signature" type="string">
      Transaction signature as base-58 encoded string
    </ResponseField>

    <ResponseField name="slot" type="u64">
      The slot that contains the block with the transaction
    </ResponseField>

    <ResponseField name="err" type="object | string | null">
      Error if the transaction failed. `null` if the transaction succeeded.

      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]`. |
    </ResponseField>

    <ResponseField name="memo" type="string | null">
      Memo associated with the transaction, null if no memo is present
    </ResponseField>

    <ResponseField name="blockTime" type="i64 | null">
      Estimated production time, as Unix timestamp (seconds since the Unix epoch) of
      when transaction was processed. null if not available.
    </ResponseField>

    <ResponseField name="confirmationStatus" type="string | null">
      The transaction's cluster confirmation status; Either `processed`, `confirmed`,
      or `finalized`. See [Commitment](/developers/docs/rpc/#configuring-state-commitment) for
      what each level means.
    </ResponseField>

    <ResponseField name="transactionIndex" type="u32">
      Position of the transaction in its block, starting at `0`. Nodes running Agave
      before v4.0 omit this field.
    </ResponseField>
  </Expandable>
</ResponseField>
