🐉 Soldexer is in Open Beta!
curl --request POST \
--url https://portal.sqd.dev/datasets/solana-mainnet/stream \
--header 'Content-Type: application/json' \
--data '
{
"fromBlock": 317617480,
"type": "solana",
"toBlock": 317617482,
"parentBlockHash": "<string>",
"includeAllBlocks": true,
"fields": {
"instruction": {
"data": true
},
"block": {
"number": true
}
},
"instructions": [
{
"programId": [
"dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
]
}
],
"transactions": [
{
"feePayer": [
"<string>"
],
"mentionsAccount": [
"<string>"
],
"instructions": true,
"balances": true,
"tokenBalances": true,
"logs": true
}
],
"balances": [
{
"account": [
"<string>"
],
"transaction": true,
"transactionInstructions": true
}
],
"tokenBalances": [
{
"account": [
"<string>"
],
"preProgramId": [
"<string>"
],
"postProgramId": [
"<string>"
],
"preMint": [
"<string>"
],
"postMint": [
"<string>"
],
"preOwner": [
"<string>"
],
"postOwner": [
"<string>"
],
"transaction": true,
"transactionInstructions": true
}
],
"rewards": [
{
"pubkey": [
"<string>"
]
}
],
"logs": [
{
"programId": [
"<string>"
],
"kind": [],
"instruction": true,
"transaction": true
}
]
}
'[
{
"header": {
"number": 123,
"height": 123,
"parentSlot": 123,
"hash": "<string>"
},
"instructions": [
{
"transactionIndex": 123,
"instructionAddress": [
123
],
"programId": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"d1": "<string>",
"d2": "<string>",
"d4": "<string>",
"d8": "<string>",
"error": "<string>",
"computeUnitsConsumed": 123,
"isCommitted": true,
"hasDroppedLogMessages": true
}
],
"transactions": [
{
"transactionIndex": 123,
"version": 123,
"accountKeys": [
123
],
"addressTableLookups": [
{
"accountKey": "<string>",
"readonlyIndexes": [
123
],
"writableIndexes": [
123
]
}
],
"numReadonlySignedAccounts": 123,
"numReadonlyUnsignedAccounts": 123,
"numRequiredSignatures": 123,
"recentBlockhash": "<string>",
"signatures": [
"<string>"
],
"err": {},
"fee": 123,
"computeUnitsConsumed": 123,
"loadedAddresses": {
"readonly": [
"<string>"
],
"writable": [
"<string>"
]
},
"feePayer": "<string>",
"hasDroppedLogMessages": true
}
],
"balances": [
{
"transactionIndex": 123,
"account": "<string>",
"pre": 123,
"post": 123
}
],
"tokenBalances": [
{
"transactionIndex": 123,
"account": "<string>",
"preMint": "<string>",
"postMint": "<string>",
"preDecimals": 123,
"postDecimals": 123,
"preProgramId": "<string>",
"postProgramId": "<string>",
"preOwner": "<string>",
"postOwner": "<string>",
"preAmount": 123,
"postAmount": 123
}
],
"rewards": [
{
"pubKey": "<string>",
"lamports": 123,
"postBalance": 123,
"rewardType": "<string>",
"commission": 123
}
],
"logs": [
{
"transactionIndex": 123,
"logIndex": 123,
"instructionAddress": [
123
],
"programId": "<string>",
"message": "<string>"
}
]
}
]Streams a list of blocks matching the provided data query, potentially including real-time data. Required request headers: Content-Type: application/json; optional request headers: Accept-Encoding: gzip Content-Encoding: gzip
curl --request POST \
--url https://portal.sqd.dev/datasets/solana-mainnet/stream \
--header 'Content-Type: application/json' \
--data '
{
"fromBlock": 317617480,
"type": "solana",
"toBlock": 317617482,
"parentBlockHash": "<string>",
"includeAllBlocks": true,
"fields": {
"instruction": {
"data": true
},
"block": {
"number": true
}
},
"instructions": [
{
"programId": [
"dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
]
}
],
"transactions": [
{
"feePayer": [
"<string>"
],
"mentionsAccount": [
"<string>"
],
"instructions": true,
"balances": true,
"tokenBalances": true,
"logs": true
}
],
"balances": [
{
"account": [
"<string>"
],
"transaction": true,
"transactionInstructions": true
}
],
"tokenBalances": [
{
"account": [
"<string>"
],
"preProgramId": [
"<string>"
],
"postProgramId": [
"<string>"
],
"preMint": [
"<string>"
],
"postMint": [
"<string>"
],
"preOwner": [
"<string>"
],
"postOwner": [
"<string>"
],
"transaction": true,
"transactionInstructions": true
}
],
"rewards": [
{
"pubkey": [
"<string>"
]
}
],
"logs": [
{
"programId": [
"<string>"
],
"kind": [],
"instruction": true,
"transaction": true
}
]
}
'[
{
"header": {
"number": 123,
"height": 123,
"parentSlot": 123,
"hash": "<string>"
},
"instructions": [
{
"transactionIndex": 123,
"instructionAddress": [
123
],
"programId": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"d1": "<string>",
"d2": "<string>",
"d4": "<string>",
"d8": "<string>",
"error": "<string>",
"computeUnitsConsumed": 123,
"isCommitted": true,
"hasDroppedLogMessages": true
}
],
"transactions": [
{
"transactionIndex": 123,
"version": 123,
"accountKeys": [
123
],
"addressTableLookups": [
{
"accountKey": "<string>",
"readonlyIndexes": [
123
],
"writableIndexes": [
123
]
}
],
"numReadonlySignedAccounts": 123,
"numReadonlyUnsignedAccounts": 123,
"numRequiredSignatures": 123,
"recentBlockhash": "<string>",
"signatures": [
"<string>"
],
"err": {},
"fee": 123,
"computeUnitsConsumed": 123,
"loadedAddresses": {
"readonly": [
"<string>"
],
"writable": [
"<string>"
]
},
"feePayer": "<string>",
"hasDroppedLogMessages": true
}
],
"balances": [
{
"transactionIndex": 123,
"account": "<string>",
"pre": 123,
"post": 123
}
],
"tokenBalances": [
{
"transactionIndex": 123,
"account": "<string>",
"preMint": "<string>",
"postMint": "<string>",
"preDecimals": 123,
"postDecimals": 123,
"preProgramId": "<string>",
"postProgramId": "<string>",
"preOwner": "<string>",
"postOwner": "<string>",
"preAmount": 123,
"postAmount": 123
}
],
"rewards": [
{
"pubKey": "<string>",
"lamports": 123,
"postBalance": 123,
"rewardType": "<string>",
"commission": 123
}
],
"logs": [
{
"transactionIndex": 123,
"logIndex": 123,
"instructionAddress": [
123
],
"programId": "<string>",
"message": "<string>"
}
]
}
]Documentation Index
Fetch the complete documentation index at: https://docs.soldexer.dev/llms.txt
Use this file to discover all available pages before exploring further.
Data query to filter and retrieve blocks
The number of the first block to fetch. If unsure how far into the past this can go consult /metadata
solana The number of the last block to fetch (inclusive)
Expected hash of the parent of the first requested block
If true, includes blocks with no matching data
Field selector. See the HTTP 200 response description for details on fields that aren't self-explanatory
Show child attributes
Instruction data requests. Selects instructions found anywhere in the call tree, not just the top level ones. d1-d8 filter by the starting bytes of the data (in 0x-prefixed hex format); a0-a15 filter by account at the corresponding position in the accounts array; mentionsAccount filters by account mentions anywhere in the list
Show child attributes
Transaction data requests
Show child attributes
Requests for SOL balance updates
Show child attributes
Requests for token balance updates
Show child attributes
Reward data requests
Show child attributes
Logs data requests. Read https://docs.soldexer.dev/api-reference/data-notes/logs-truncation before attempting to use logs
Show child attributes
A stream of blocks in JSON lines format, optionally gzipped. Can only be empty if the data query has a bounded range and all blocks in the range have been skipped. May include X-Sqd-Finalized-Head-Number and X-Sqd-Finalized-Head-Hash headers, indicating the latest finalized block that's on the same chain as the returned blocks
Show child attributes
Show child attributes
Show child attributes
Records of SOL balance updates done per transaction and account. Combines pre- and post-balance records, making one record per account
Show child attributes
Records of token balance updates done per transaction and token account. Uses data from https://solana.com/docs/rpc/json-structures#token-balances but combines pre- and post-balance records, making one record per token account
Show child attributes
Show child attributes
Read https://docs.soldexer.dev/api-reference/data-notes/logs-truncation before attempting to use logs
Show child attributes
Was this page helpful?