Retrieve all transactions sent by or to a specific address to track wallet activity, exchange flows, or program interactions.
Use Case
Transaction queries help you:
- Track incoming transactions to wallets or exchanges
- Monitor program interactions
- Analyze transaction patterns
- Build transaction history feeds
Code Example
curl --compressed -X POST 'https://portal.sqd.dev/datasets/solana-mainnet/stream' \
-H 'Content-Type: application/json' \
-d '{
"type": "solana",
"fromBlock": 280000000,
"toBlock": 280000003,
"fields": {
"block": {
"number": true,
"timestamp": true
},
"transaction": {
"signatures": true,
"feePayer": true,
"err": true
}
},
"transactions": [{}]
}'
Try it yourself with the interactive query interface below:
Key Parameters
| Parameter | Description |
|---|
feePayer | Filter transactions by fee payer address |
signatures | Transaction signatures (base58-encoded) |
err | Transaction error (null if successful) |
Expected Output
{
"header": {
"number": 259985000,
"timestamp": 1697544779
},
"transactions": [
{
"signatures": ["5j7s8K9L..."],
"feePayer": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"err": null
}
]
}
Monitor Outgoing Transactions
Track transactions from a specific wallet:
curl --compressed -X POST 'https://portal.sqd.dev/datasets/solana-mainnet/stream' \
-H 'Content-Type: application/json' \
-d '{
"type": "solana",
"fromBlock": 280000000,
"toBlock": 280000003,
"fields": {
"transaction": {
"signatures": true,
"feePayer": true
}
},
"transactions": [{}]
}'
- Filter by fee payer: Reduces results to transactions from specific wallets
- Request minimal fields: Omit unnecessary fields to improve performance
- Check error status: Filter failed transactions in post-processing if needed
- Use slot ranges: Process data in manageable batches