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

> Send, simulate, and inspect transaction data on Surfnet

These methods handle the creation, simulation, and inspection of transactions on the blockchain. They are essential for executing state changes, estimating fees, checking transaction outcomes, and monitoring transaction lifecycles.

## getSignatureStatuses

Returns the signature statuses for a given signature.

The sample signature belongs to a transfer that was processed by a Surfnet earlier. On a fresh Surfnet the value is `null` until you send a transaction.

**Parameters**

<ParamField body="signatures" type="array[string]" required>
  An array of transaction signatures to query, as base-58 encoded strings.
</ParamField>

<ParamField body="config" type="object">
  Configuration object for the query.

  <Expandable title="properties" defaultOpen>
    <ParamField body="searchTransactionHistory" type="boolean">
      Whether to search the transaction history.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="array<any>" />

```bash Request
curl http://127.0.0.1:8899 -s -X POST \
  -H "Content-Type: application/json" \
  -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getSignatureStatuses",
    "params": [
      [
        "3Vgn9jbnyRU48EHSbD47wXLDNV17vzcArFdmZAiN2NjGLpgvsRtkdgR8h5FnHj4ghWDD6nkxq78kPra2c5Gghijo"
      ],
      {
        "searchTransactionHistory": true
      }
    ]
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 457254542,
      "apiVersion": "4.2.1"
    },
    "value": [
      {
        "slot": 457254529,
        "confirmations": 13,
        "status": {
          "Ok": null
        },
        "err": null,
        "confirmationStatus": "confirmed"
      }
    ]
  }
}
```

## requestAirdrop

Requests an airdrop to a given address.

**Parameters**

<ParamField body="pubkey" type="string" required>
  The public key of the account to receive the airdrop, as a base-58 encoded string.
</ParamField>

<ParamField body="lamports" type="integer" required>
  The amount of lamports to airdrop.
</ParamField>

<ParamField body="config" type="object">
  Configuration object for the query.

  <Expandable title="properties" defaultOpen>
    <ParamField body="commitment" type="&#x22;processed&#x22; | &#x22;confirmed&#x22; | &#x22;finalized&#x22;">
      The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="result" type="string">
  requestAirdrop - Requests an airdrop to a given address
</ResponseField>

```bash Request
curl http://127.0.0.1:8899 -s -X POST \
  -H "Content-Type: application/json" \
  -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "requestAirdrop",
    "params": [
      "GmaDrppBC7P5ARKV8g3djiwP89vz1jLK23V2GBjuAEGB",
      1000000000,
      {
        "commitment": "confirmed"
      }
    ]
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "2HGr48cj3ArWfqmhPCtaQeae58Z3WHiCTajdkXvaJtHFHoJG37HcS1aJ24fP94Zf2pD1GGAfpEXA7ZPjz3L5BZye"
}
```

## sendTransaction

Sends a transaction to the cluster.

The sample payload is a base64-encoded, signed SOL transfer built against an earlier Surfnet blockhash. Build your own with a recent blockhash from `getLatestBlockhash`; `skipPreflight` is set so that the stale sample is accepted and returns its signature instead of a preflight error.

**Parameters**

<ParamField body="transaction" type="string" required>
  The signed transaction, as a base-64 encoded string.
</ParamField>

<ParamField body="config" type="object">
  Configuration object for the query.

  <Expandable title="properties" defaultOpen>
    <ParamField body="encoding" type="&#x22;binary&#x22; | &#x22;base58&#x22; | &#x22;base64&#x22; | &#x22;json&#x22; | &#x22;jsonParsed&#x22; | &#x22;base64+zstd&#x22;">
      The encoding for the transaction.
    </ParamField>

    <ParamField body="maxRetries" type="integer">
      The maximum number of retries for the transaction.
    </ParamField>

    <ParamField body="minContextSlot" type="integer">
      The minimum context slot for the transaction.
    </ParamField>

    <ParamField body="preflightCommitment" type="&#x22;processed&#x22; | &#x22;confirmed&#x22; | &#x22;finalized&#x22;">
      The commitment level for the preflight check.
    </ParamField>

    <ParamField body="skipPreflight" type="boolean">
      Whether to skip the preflight check.
    </ParamField>

    <ParamField body="skipSigVerify" type="boolean">
      Whether to skip signature verification for the transaction.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="result" type="string">
  sendTransaction - Sends a transaction to the cluster
</ResponseField>

```bash Request
curl http://127.0.0.1:8899 -s -X POST \
  -H "Content-Type: application/json" \
  -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "sendTransaction",
    "params": [
      "AXzFhcUHGylNDuMTfr5qBYaj71td11S/rpPFYSyPTrvzFEj0Ggel2f25JI2PomzHqyU8pWrim/iORamKu/WvZAaAAQABA+pKbGPinFIKvvVQexMuxfmVR3auvr57kkIe6mkURtIsaKtGd/+x8olN0KYVPCMdRexDauU65gFJ2+FfMuS4cD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaGhZ04yAqXIUgYQWkX4L+PyhV+Rk+YzP0P+p34R9veAQICAAEMAgAAAEBCDwAAAAAAAA==",
      {
        "encoding": "base64",
        "skipPreflight": true
      }
    ]
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "3Vgn9jbnyRU48EHSbD47wXLDNV17vzcArFdmZAiN2NjGLpgvsRtkdgR8h5FnHj4ghWDD6nkxq78kPra2c5Gghijo"
}
```

## simulateTransaction

Simulates a transaction.

The sample payload is a signed SOL transfer whose fee payer, `GmaDrppBC7P5ARKV8g3djiwP89vz1jLK23V2GBjuAEGB`, must be a funded System Program account with no data on your Surfnet. On an offline Surfnet the account doesn't exist (`AccountNotFound`), and on the default mainnet fork it's owned by a program (`InvalidAccountForFee`). Fund it first with `surfnet_setAccount` and the params `["GmaDrppBC7P5ARKV8g3djiwP89vz1jLK23V2GBjuAEGB", {"lamports": 1000000000, "owner": "11111111111111111111111111111111", "data": ""}]`, or simulate your own transaction.

**Parameters**

<ParamField body="transaction" type="string" required>
  The transaction to simulate, as a base-64 encoded string.
</ParamField>

<ParamField body="config" type="object">
  Configuration object for the query.

  <Expandable title="properties" defaultOpen>
    <ParamField body="accounts" type="object">
      Accounts to return in the simulation result.

      <Expandable title="properties">
        <ParamField body="addresses" type="array[string]">
          An array of account addresses to return, as base-58 encoded strings.
        </ParamField>

        <ParamField body="encoding" type="&#x22;binary&#x22; | &#x22;base58&#x22; | &#x22;base64&#x22; | &#x22;jsonParsed&#x22; | &#x22;base64+zstd&#x22;">
          Encoding for the account data.
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="commitment" type="&#x22;processed&#x22; | &#x22;confirmed&#x22; | &#x22;finalized&#x22;">
      The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
    </ParamField>

    <ParamField body="encoding" type="&#x22;binary&#x22; | &#x22;base58&#x22; | &#x22;base64&#x22; | &#x22;json&#x22; | &#x22;jsonParsed&#x22; | &#x22;base64+zstd&#x22;">
      Encoding for the transaction data.
    </ParamField>

    <ParamField body="innerInstructions" type="boolean">
      Whether to include inner instructions in the simulation result.
    </ParamField>

    <ParamField body="minContextSlot" type="integer">
      Mincontextslot
    </ParamField>

    <ParamField body="replaceRecentBlockhash" type="boolean">
      Whether to replace the recent blockhash with a new one.
    </ParamField>

    <ParamField body="sigVerify" type="boolean">
      Whether to verify transaction signatures.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="accounts" type="array" />

    <ResponseField name="err" type="object">
      <Expandable title="properties">
        <ResponseField name="errorType" type="string">
          Error type
        </ResponseField>

        <ResponseField name="message" type="string">
          Error message
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="innerInstructions" type="array" />

    <ResponseField name="logs" type="array" />

    <ResponseField name="replacementBlockhash" type="object">
      <Expandable title="properties">
        <ResponseField name="blockhash" type="string" />

        <ResponseField name="lastValidBlockHeight" type="integer" />
      </Expandable>
    </ResponseField>

    <ResponseField name="returnData" type="object">
      <Expandable title="properties">
        <ResponseField name="data" type="array<string>">
          Returned data
        </ResponseField>

        <ResponseField name="programId" type="string">
          Program ID that returned the data
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="unitsConsumed" type="integer" />
  </Expandable>
</ResponseField>

```bash Request
curl http://127.0.0.1:8899 -s -X POST \
  -H "Content-Type: application/json" \
  -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "simulateTransaction",
    "params": [
      "AXzFhcUHGylNDuMTfr5qBYaj71td11S/rpPFYSyPTrvzFEj0Ggel2f25JI2PomzHqyU8pWrim/iORamKu/WvZAaAAQABA+pKbGPinFIKvvVQexMuxfmVR3auvr57kkIe6mkURtIsaKtGd/+x8olN0KYVPCMdRexDauU65gFJ2+FfMuS4cD8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaGhZ04yAqXIUgYQWkX4L+PyhV+Rk+YzP0P+p34R9veAQICAAEMAgAAAEBCDwAAAAAAAA==",
      {
        "encoding": "base64",
        "commitment": "confirmed",
        "replaceRecentBlockhash": true
      }
    ]
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 457254542,
      "apiVersion": "4.2.1"
    },
    "value": {
      "err": null,
      "logs": [
        "Program 11111111111111111111111111111111 invoke [1]",
        "Program 11111111111111111111111111111111 success"
      ],
      "accounts": null,
      "unitsConsumed": 150,
      "loadedAccountsDataSize": 213,
      "returnData": null,
      "innerInstructions": null,
      "replacementBlockhash": {
        "blockhash": "SURFNETxSAFEHASHxxxxxxxxxxxxxxxxxxxxxxxxx12",
        "lastValidBlockHeight": 169
      },
      "fee": null,
      "preBalances": null,
      "postBalances": null,
      "preTokenBalances": null,
      "postTokenBalances": null,
      "loadedAddresses": null
    }
  }
}
```

## getTransaction

Returns the transaction for a given signature.

The sample signature belongs to a transfer that was processed by a Surfnet earlier. On a fresh Surfnet the result is `null` until you send a transaction.

**Parameters**

<ParamField body="signature" type="string" required>
  The transaction signature to query, as a base-58 encoded string.
</ParamField>

<ParamField body="config" type="object">
  Configuration object for the query.

  <Expandable title="properties" defaultOpen>
    <ParamField body="commitment" type="object">
      The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'.

      <Expandable title="properties">
        <ParamField body="commitment" type="&#x22;processed&#x22; | &#x22;confirmed&#x22; | &#x22;finalized&#x22;">
          The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
        </ParamField>
      </Expandable>
    </ParamField>

    <ParamField body="maxSupportedTransactionVersion" type="integer">
      The maximum transaction version to support.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="blockTime" type="integer">
  Block time
</ResponseField>

<ResponseField name="meta" type="object">
  Transaction metadata

  <Expandable title="properties" defaultOpen>
    <ResponseField name="computeUnitsConsumed" type="integer">
      Compute units consumed
    </ResponseField>

    <ResponseField name="err" type="object">
      Transaction error

      <Expandable title="properties">
        <ResponseField name="errorType" type="string">
          Error type
        </ResponseField>

        <ResponseField name="message" type="string">
          Error message
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="fee" type="integer">
      Transaction fee
    </ResponseField>

    <ResponseField name="innerInstructions" type="array">
      Inner instructions
    </ResponseField>

    <ResponseField name="logMessages" type="array">
      Log messages
    </ResponseField>

    <ResponseField name="postBalances" type="array<integer>">
      Account balances after transaction
    </ResponseField>

    <ResponseField name="postTokenBalances" type="array">
      Post token balances
    </ResponseField>

    <ResponseField name="preBalances" type="array<integer>">
      Account balances before transaction
    </ResponseField>

    <ResponseField name="preTokenBalances" type="array">
      Pre token balances
    </ResponseField>

    <ResponseField name="returnData" type="object">
      Return data

      <Expandable title="properties">
        <ResponseField name="data" type="array<string>">
          Returned data
        </ResponseField>

        <ResponseField name="programId" type="string">
          Program ID that returned the data
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="slot" type="integer">
  The transaction slot
</ResponseField>

<ResponseField name="transaction" type="object">
  The encoded transaction

  <Expandable title="properties" defaultOpen>
    <ResponseField name="message" type="object">
      Transaction message

      <Expandable title="properties">
        <ResponseField name="accountKeys" type="array<string>">
          List of account keys
        </ResponseField>

        <ResponseField name="addressTableLookups" type="array">
          List of address table lookups
        </ResponseField>

        <ResponseField name="instructions" type="array<InstructionSchema>">
          List of instructions

          <Expandable title="properties">
            <ResponseField name="accounts" type="array<integer>">
              Account indices
            </ResponseField>

            <ResponseField name="data" type="string">
              Instruction data
            </ResponseField>

            <ResponseField name="programIdIndex" type="integer">
              Program ID index
            </ResponseField>
          </Expandable>
        </ResponseField>

        <ResponseField name="numReadonlySignedAccounts" type="integer">
          Number of readonly signed accounts
        </ResponseField>

        <ResponseField name="numReadonlyUnsignedAccounts" type="integer">
          Number of readonly unsigned accounts
        </ResponseField>

        <ResponseField name="numRequiredSignatures" type="integer">
          Number of required signatures
        </ResponseField>

        <ResponseField name="recentBlockhash" type="string">
          Recent blockhash
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="signatures" type="array<string>">
      List of signatures
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="version" type="integer">
  Transaction version
</ResponseField>

```bash Request
curl http://127.0.0.1:8899 -s -X POST \
  -H "Content-Type: application/json" \
  -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getTransaction",
    "params": [
      "3Vgn9jbnyRU48EHSbD47wXLDNV17vzcArFdmZAiN2NjGLpgvsRtkdgR8h5FnHj4ghWDD6nkxq78kPra2c5Gghijo",
      {
        "commitment": "confirmed",
        "encoding": "json",
        "maxSupportedTransactionVersion": 0
      }
    ]
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "slot": 457254529,
    "transaction": {
      "signatures": [
        "3Vgn9jbnyRU48EHSbD47wXLDNV17vzcArFdmZAiN2NjGLpgvsRtkdgR8h5FnHj4ghWDD6nkxq78kPra2c5Gghijo"
      ],
      "message": {
        "header": {
          "numRequiredSignatures": 1,
          "numReadonlySignedAccounts": 0,
          "numReadonlyUnsignedAccounts": 1
        },
        "accountKeys": [
          "GmaDrppBC7P5ARKV8g3djiwP89vz1jLK23V2GBjuAEGB",
          "83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri",
          "11111111111111111111111111111111"
        ],
        "recentBlockhash": "SURFNETxSAFEHASHxxxxxxxxxxxxxxxxxxxxxxxxxx5",
        "instructions": [
          {
            "programIdIndex": 2,
            "accounts": [
              0,
              1
            ],
            "data": "3Bxs4Bc3VYuGVB19",
            "stackHeight": 1
          }
        ],
        "addressTableLookups": []
      }
    },
    "meta": {
      "err": null,
      "status": {
        "Ok": null
      },
      "fee": 5000,
      "preBalances": [
        5000000000,
        1000000,
        1
      ],
      "postBalances": [
        4998995000,
        2000000,
        1
      ],
      "innerInstructions": [],
      "logMessages": [
        "Program 11111111111111111111111111111111 invoke [1]",
        "Program 11111111111111111111111111111111 success"
      ],
      "preTokenBalances": [],
      "postTokenBalances": [],
      "rewards": [],
      "loadedAddresses": {
        "writable": [],
        "readonly": []
      },
      "computeUnitsConsumed": 150
    },
    "version": 0,
    "blockTime": 1792070970
  }
}
```

## getSignaturesForAddress

Returns the signatures for a given address.

**Parameters**

<ParamField body="address" type="string" required>
  The address to query for transaction signatures, as a base-58 encoded string.
</ParamField>

<ParamField body="before" type="string">
  Start searching backwards from this transaction signature.
</ParamField>

<ParamField body="limit" type="integer">
  The maximum number of signatures to return.
</ParamField>

<ParamField body="until" type="string">
  Search until this transaction signature.
</ParamField>

**Result**

<ResponseField name="result" type="array<RpcConfirmedTransactionStatusWithSignature>">
  getSignaturesForAddress - Returns signatures for an address

  <Expandable title="properties" defaultOpen>
    <ResponseField name="blockTime" type="integer" />

    <ResponseField name="confirmationStatus" type="object">
      <Expandable title="properties">
        <ResponseField name="status" type="string">
          Confirmation level
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="err" type="object">
      <Expandable title="properties">
        <ResponseField name="errorType" type="string">
          Error type
        </ResponseField>

        <ResponseField name="message" type="string">
          Error message
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="memo" type="string" />

    <ResponseField name="signature" type="string" />

    <ResponseField name="slot" type="integer" />
  </Expandable>
</ResponseField>

```bash Request
curl http://127.0.0.1:8899 -s -X POST \
  -H "Content-Type: application/json" \
  -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getSignaturesForAddress",
    "params": [
      "GmaDrppBC7P5ARKV8g3djiwP89vz1jLK23V2GBjuAEGB",
      {
        "limit": 10
      }
    ]
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "signature": "3Vgn9jbnyRU48EHSbD47wXLDNV17vzcArFdmZAiN2NjGLpgvsRtkdgR8h5FnHj4ghWDD6nkxq78kPra2c5Gghijo",
      "slot": 457254529,
      "err": null,
      "memo": null,
      "blockTime": 1792070970,
      "confirmationStatus": "confirmed"
    },
    {
      "signature": "2ehp9L1aBU26dWPQcSMozMSoqRyV3ZCftPXCmCGqMovrhvUDUZg3CgkBa7uF1Qx5m6V8JVQfmeF1w8U5jP4ZzYBX",
      "slot": 452390469,
      "err": null,
      "memo": null,
      "blockTime": 1790885300,
      "confirmationStatus": "finalized",
      "transactionIndex": 505
    },
    {
      "signature": "5dMz76Ag6DxstK4HFgqdtr8QzeRKNTa8wCKnQjHabsUrwtAuB4KDEhSftNsWb2pEwQjGUnJbibi1UhNCjR7TSRVC",
      "slot": 452390460,
      "err": null,
      "memo": null,
      "blockTime": 1790885298,
      "confirmationStatus": "finalized",
      "transactionIndex": 1102
    },
    {
      "signature": "5HJBktju7kb3UMTk7RVUhXnWPniTVkFVy2NDbzv3vYTXnddEJSivfp2Bmmu4FKfSN6CPViL58rS5FKU7sfXwet7X",
      "slot": 452390452,
      "err": null,
      "memo": null,
      "blockTime": 1790885296,
      "confirmationStatus": "finalized",
      "transactionIndex": 1364
    },
    {
      "signature": "2ziVQyk5LS8RdidaCuFg9T7rgsevcpwCuZP9Ksfjw3sXq35jHd3VVPPHP3Zwvy6QJkHPG218fBKmH82kY99ZUNsA",
      "slot": 452390243,
      "err": null,
      "memo": null,
      "blockTime": 1790885239,
      "confirmationStatus": "finalized",
      "transactionIndex": 950
    },
    {
      "signature": "4Cptq3QBdAKud5d6tQSQToPxNs7CjrRDmaR7XUjL7mPUmXja53nXBwGNZ7myL7xXXMYVRSc8GVbQgqb9B9PDyXsy",
      "slot": 452390236,
      "err": null,
      "memo": null,
      "blockTime": 1790885237,
      "confirmationStatus": "finalized",
      "transactionIndex": 1108
    },
    {
      "signature": "31n9N8U3EXPAq4yJm2BcibAbB8r5eUEa7pPAKaN6s934QYvfUj6VbJGgkU3k19b41FSCPv5cJ6jFiJjQv2fwiF8y",
      "slot": 452390228,
      "err": null,
      "memo": null,
      "blockTime": 1790885235,
      "confirmationStatus": "finalized",
      "transactionIndex": 298
    },
    {
      "signature": "iSYGPaKvJDLwEkEv2PirSSDDUQtqJ9Q2zBJnvveBXpTdgv3nShXmhrNG437hSPeiHn3diAL1voPTr6mvPDp1i4X",
      "slot": 448531189,
      "err": {
        "InstructionError": [
          5,
          "InvalidArgument"
        ]
      },
      "memo": null,
      "blockTime": 1789853888,
      "confirmationStatus": "finalized",
      "transactionIndex": 849
    },
    {
      "signature": "5CjpjN19su21GWjfKbZtuesTe1zND4Dp734QntqGnBjq8NGAKDEMx2rfwQkTLz71bLrgZdcCf7tWg9822Pxd1Uxg",
      "slot": 448531189,
      "err": null,
      "memo": null,
      "blockTime": 1789853888,
      "confirmationStatus": "finalized",
      "transactionIndex": 152
    },
    {
      "signature": "5WQLZ8G7djeNDKCaUmv5ehY25q7ccLXF8RoH3mKgBm2XtaSHRH4Wsy7PCXDW9sokH1sVJocpJaaQfRZW4rg55Rxx",
      "slot": 441056478,
      "err": null,
      "memo": null,
      "blockTime": 1787451110,
      "confirmationStatus": "finalized",
      "transactionIndex": 373
    }
  ]
}
```

## getFeeForMessage

Returns the fee for a given message.

**Parameters**

<ParamField body="message" type="string" required>
  The message to calculate the fee for, as a base-64 encoded string.
</ParamField>

<ParamField body="config" type="object">
  Configuration object for the query.

  <Expandable title="properties" defaultOpen>
    <ParamField body="commitment" type="&#x22;processed&#x22; | &#x22;confirmed&#x22; | &#x22;finalized&#x22;">
      The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
    </ParamField>

    <ParamField body="minContextSlot" type="integer">
      The minimum context slot for the context.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="integer" />

```bash Request
curl http://127.0.0.1:8899 -s -X POST \
  -H "Content-Type: application/json" \
  -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getFeeForMessage",
    "params": [
      "gAEAAQPqSmxj4pxSCr71UHsTLsX5lUd2rr6+e5JCHuppFEbSLGirRnf/sfKJTdCmFTwjHUXsQ2rlOuYBSdvhXzLkuHA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhoWdOMgKlyFIGEFpF+C/j8oVfkZPmMz9D/qd+Efb3gECAgABDAIAAABAQg8AAAAAAAA=",
      {
        "commitment": "confirmed"
      }
    ]
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 457254786,
      "apiVersion": "4.2.1"
    },
    "value": 5000
  }
}
```

## getStakeMinimumDelegation

Returns the stake minimum delegation.

**Parameters**

<ParamField body="config" type="object">
  Configuration object for the query.

  <Expandable title="properties" defaultOpen>
    <ParamField body="commitment" type="&#x22;processed&#x22; | &#x22;confirmed&#x22; | &#x22;finalized&#x22;">
      The commitment describes how finalized a block is at that point in time. Options are 'processed', 'confirmed', or 'finalized'
    </ParamField>

    <ParamField body="minContextSlot" type="integer">
      The minimum context slot for the context.
    </ParamField>
  </Expandable>
</ParamField>

**Result**

<ResponseField name="context" type="object">
  <Expandable title="properties" defaultOpen>
    <ResponseField name="apiVersion" type="string">
      The API version
    </ResponseField>

    <ResponseField name="slot" type="integer">
      The current slot
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="value" type="integer" />

```bash Request
curl http://127.0.0.1:8899 -s -X POST \
  -H "Content-Type: application/json" \
  -d '
  {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getStakeMinimumDelegation",
    "params": [
      {
        "commitment": "confirmed"
      }
    ]
  }
'
```

```json Response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 457254786,
      "apiVersion": "4.2.1"
    },
    "value": 0
  }
}
```
