POSTGet Transactions In Slot

Data APIhttps://web3.nodit.io/v1/solana/mainnet/blockchain/getTransactionsInSlot

Retrieves the list of transactions included in a specific slot.

Path Parameters
chainstring (enum)required

Parameter to specify the target chain for the query.

networkstring (enum)required

Parameter to specify the network of the target chain. Supported networks may vary depending on the chain.

Request Body
slotstringrequired

Parameter specifying the slot to query. You can enter one of the following formats:

  • slot height: Enter the slot number as a decimal string.
  • slot tag: Use "earliest" or "latest" to specify the first slot or the latest slot.
pageinteger

The page parameter specifies the data page to query. It accepts values up to 100; for pages exceeding 100, use the cursor pagination method.

The page and cursor parameters cannot be used together. If both page and cursor are empty, cursor pagination is used.

rppinteger

rpp stands for results per page and specifies the page size. You can specify a number greater than 0 and up to 100.

cursorstring

The cursor parameter supports pagination and data navigation between pages. Provide the cursor value from the previous page in the next request to load the next page of data.

The page and cursor parameters cannot be used together. If both page and cursor are empty, cursor pagination is used.

withCountboolean

Parameter specifying whether to include the count field in the response. The count field indicates the total number of requested data items. When set to true, the count field is included and response speed may be slower.

withBalanceChangesboolean

Parameter specifying whether to include the balanceChanges field in the response.

  • balanceChanges is a field that contains the balance changes of the Native token (SOL) and Token.
  • Setting this parameter to true may slow down the response.
withInstructionsboolean

Parameter specifying whether to include the instructions field in the response.

  • instructions is a field that contains the list of instructions in the transaction.
  • When this parameter is set to true, instructions are included in the response.
  • instructions are not provided for failed transactions (status "failed").
Responses
pageinteger

Field representing the page number specified in the page parameter. This field is only included in the response when a value greater than 0 is specified for the page parameter.

rppinteger

Field representing the number of results per page specified in the rpp parameter.

cursorstring

A field for cursor pagination. This value must be provided in the next request to load the next page of data.

countinteger

Field representing the total count of requested data. This field is only included in the response when true is set for the withCount parameter.

slotHeightintegerrequired

A field representing the slot number in which the transaction is included. On Solana, a slot corresponds to the block unit of other chains.

Example: 235157119

blockHeightintegerrequired

A field representing the block height to which the slot is mapped.

Example: 214567890

blockTimestampintegerrequired

A field representing the time the block (slot) was created, as a Unix timestamp (seconds).

Example: 1746479684

transactionIndexintegerrequired

A field representing the order of the transaction within the same slot.

Example: 7

signaturestringrequired

A field representing the representative signature of the transaction. It is usually the first signature and is Base58-encoded.

Example: 5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg

signaturesstring[]required

A field representing the list of all signatures included in the transaction. There may be two or more in a multisig or versioned transaction.

Example: 5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg

instructionsobject[]

A field representing the list of instructions included in the transaction. This field is only included in the response when the withInstructions parameter is set to true.

Instructions are not provided for failed transactions (status "failed").

instructionIndexintegerrequired

Field indicating the index of the instruction within the transaction. (0-based)

Example: 0

subInstructionIndexinteger

Field indicating the index of an inner (sub) instruction generated by CPI or similar.

Example: 0

executionIndexintegerrequired

Field indicating the order in which the instruction was executed within the transaction.

Example: 0

programIdstringrequired

Field indicating the ID of the program that executed the instruction. Base58-encoded.

Example: 11111111111111111111111111111111

accountsstring[]required

Field indicating the list of public keys of the accounts used by the instruction. Each public key is Base58-encoded.

Example: DsTrM688cmzj7jkC8Nw6B7ngYhCqDqqMGtgHQhKCBYm,VdhaA49Uy2Vb8h4RzxcsfdnjNPbbvNTBCowUU32k6Wi

datastringrequired

Field indicating the instruction data. Base58-encoded.

Example: 3Bxs4HjPduGCo42T

stackHeightinteger

Field indicating the stack depth of the instruction.

Example: 1

logMessagesstring[]required

A field representing the list of log messages left by programs during transaction execution.

Example: Program 11111111111111111111111111111111 invoke [1],Program 11111111111111111111111111111111 success

requiredSignaturesintegerrequired

A field representing the number of accounts that must sign the transaction. (numRequiredSignatures)

Example: 1

readonlySignedAccountsintegerrequired

A field representing the number of readonly accounts among the signing accounts. (numReadonlySignedAccounts)

Example: 0

readonlyUnsignedAccountsintegerrequired

A field representing the number of readonly accounts among the non-signing accounts. (numReadonlyUnsignedAccounts)

Example: 3

computeUnitsConsumedinteger

A field representing the Compute Units (CU) actually consumed by the transaction.

Example: 6842

costUnitsinteger

A field representing the cost units of the transaction processing cost.

Example: 6842

feeintegerrequired

A field representing the transaction fee in lamports. It may be charged regardless of success or failure.

Example: 5000

recentBlockHashstringrequired

A field representing the recent blockhash referenced by the transaction. It is used for replay prevention and validity verification.

Example: mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B

versionstringrequired

A field representing the version of the transaction. It has one of the values "legacy", "0", or "1".

Example: legacy

transactionConfigobject

A field representing the compute budget configuration set on the transaction. It is provided only for SIMD-0385 v1 transactions and is not included in the response for legacy and v0 transactions. Each sub-field can be null, and null and 0 have different meanings. If the transaction does not set the corresponding item, null is returned.

priorityFeestring

A field representing the total priority fee set on the transaction, in lamports. It has a value within the u64 range and is returned as a string to avoid loss of precision. SetComputeUnitPrice on legacy and v0 transactions is denominated in micro-lamports per compute unit, so its unit differs from this field. In addition, the compute unit price of legacy and v0 transactions is not a transaction field and can only be obtained by decoding the instruction data.

Example: 100000

computeUnitLimitinteger

A field representing the compute unit limit set on the transaction. It has a value within the u32 range.

Example: 200000

loadedAccountsDataSizeLimitinteger

A field representing the total size limit of the account data loaded by the transaction, in bytes. It has a value within the u32 range.

Example: 65536

heapSizeinteger

A field representing the size of the heap memory used for dynamic allocation while the program runs inside the VM, in bytes. It has a value within the u32 range and is a multiple of 1KiB between 32KiB and 256KiB.

Example: 32768

signersstring[]required

A field representing the list of account addresses that signed the transaction.

Example: 9vNYXEehFV8V1jxzjH7Sv3BBtsYZ92HPKYP1stgNGHJE

statusstringrequired

A field representing the processing status of the transaction. "success" is returned when processed normally, and "failed" is returned when it fails.

Example: success

errorMessagestring

A field representing the error summary string when the transaction fails. It is a human-readable conversion of the Solana TransactionError.

Example: custom program error: 0x1

balanceChangesobject[]

A field representing the details of SOL and SPL token balance changes that occurred in the transaction. This field is only included in the response when the withBalanceChanges parameter is set to true.

programIdstringrequired

A field representing the address of the program that caused the balance change. (e.g. System Program)

Example: 11111111111111111111111111111111

ownerAddressstringrequired

A field representing the address of the account (owner) where the balance change occurred.

Example: 9vNYXEehFV8V1jxzjH7Sv3BBtsYZ92HPKYP1stgNGHJE

tokenAccountstringrequired

A field representing the address of the SPL token account where the balance change occurred. For a SOL balance change, an empty string ("") is returned.

Example: 7YttLkHDoNj9wyDur5pM1ejNaAvT9X4e3n9mQqZp8y8o

mintAddressstringrequired

A field representing the MintAddress of the SPL token subject to the balance change. For a SOL balance change, "So11111111111111111111111111111111111111111" is returned.

Example: So11111111111111111111111111111111111111112

changeValuestringrequired

A field representing the amount of the balance change. A negative value indicates an outflow, and a positive value indicates an inflow. For SOL, it is expressed in lamports.

Example: -5000

previousBalancestringrequired

A field representing the balance immediately before the change. For SOL, it is expressed in lamports.

Example: 1000000000

finalBalancestringrequired

A field representing the balance immediately after the change. For SOL, it is expressed in lamports.

Example: 999995000

decimalsintegerrequired

A field representing the number of decimal places of the token. For SOL, it is 9.

Example: 6

X-API-KEY
RequestCU150
cURL
curl -X POST "https://web3.nodit.io/v1/solana/mainnet/blockchain/getTransactionsInSlot" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "slot": "latest",
    "withCount": false,
    "withBalanceChanges": false,
    "withInstructions": false
  }'
Response
Example · 200
{
  "page": 0,
  "rpp": 0,
  "cursor": "string",
  "count": 0,
  "items": [
    {
      "slotHeight": 235157119,
      "blockHeight": 214567890,
      "blockTimestamp": 1746479684,
      "transactionIndex": 7,
      "signature": "5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg",
      "signatures": [
        "5XXN7L7cMGYTvckcaNeTXxhJgxeT1JTa9auwa2yXCFR1NXzwXrXNAWx4SaAw48S5186VzvXiXVEsWJu1WFR5AAmg"
      ],
      "instructions": [
        {}
      ],
      "logMessages": [
        "Program 11111111111111111111111111111111 invoke [1]",
        "Program 11111111111111111111111111111111 success"
      ],
      "requiredSignatures": 1,
      "readonlySignedAccounts": 0,
      "readonlyUnsignedAccounts": 3,
      "computeUnitsConsumed": 6842,
      "costUnits": 6842,
      "fee": 5000,
      "recentBlockHash": "mfcyqEXB3DnHXki6KjjmZck6YjmZLvpAByy2fj4nh6B",
      "version": "legacy",
      "transactionConfig": {
        "priorityFee": "100000",
        "computeUnitLimit": 200000,
        "loadedAccountsDataSizeLimit": 65536,
        "heapSize": 32768
      },
      "signers": [
        "9vNYXEehFV8V1jxzjH7Sv3BBtsYZ92HPKYP1stgNGHJE"
      ],
      "status": "success",
      "errorMessage": "custom program error: 0x1",
      "balanceChanges": [
        {}
      ]
    }
  ]
}