Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt

Use this file to discover all available pages before exploring further.

Solana on Portal is available from genesis and uses slots, not blocks. V2 archives (legacy) are available starting from block 269,828,500 (block, not slot).
PropertyValue
Network IDsolana-mainnet
Real-timeYes

Endpoint

Quick start

curl --compressed -X POST \
  'https://portal.sqd.dev/datasets/solana-mainnet/stream' \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "solana",
    "fromBlock": 0,
    "toBlock": 100,
    "fields": {
      "block": { "number": true, "timestamp": true },
      "instruction": { "programId": true, "data": true }
    },
    "instructions": [{}]
  }'
For full SDK examples:

Pipes SDK Quickstart

Streaming pipeline indexer

Squid SDK Quickstart

GraphQL API indexer

Schema

FieldTypeDescription
indexintegerTransaction index in block
signaturestringTransaction signature
account_keysarrayAccount keys involved
recent_blockhashstringRecent blockhash used
feeintegerTransaction fee
successbooleanWhether transaction succeeded
errorobjectError information if failed
FieldTypeDescription
indexintegerInstruction index
transaction_indexintegerParent transaction index
program_idstringProgram ID
accountsarrayAccounts involved
datastringInstruction data
inner_instructionsarrayInner instructions
FieldTypeDescription
accountstringAccount address
prebigintBalance before transaction
postbigintBalance after transaction
FieldTypeDescription
accountstringToken account
mintstringToken mint address
ownerstringOwner address
pre_amountbigintBalance before transaction
post_amountbigintBalance after transaction
decimalsintegerToken decimals
FieldTypeDescription
pubkeystringRecipient account
lamportsbigintReward amount in lamports
reward_typestringType of reward
commissionintegerCommission percentage
FieldTypeDescription
transaction_indexintegerParent transaction index
instruction_addressarrayInstruction path
program_idstringProgram that emitted the log
kindstringLog kind
messagestringLog message

Reference

API Reference

Field definitions and query syntax

Portal Migration

Migrate from v2 archives to Portal