Documentation Index Fetch the complete documentation index at: https://docs.chainstream.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This page covers query examples for blockchain infrastructure Cubes — the foundational data about blocks, transactions, smart contract events, and internal traces.
Blocks
Latest Blocks (Solana)
query {
Solana {
Blocks ( limit : { count : 10 }, orderBy : { descending : Block_Time }) {
Block {
Time
Slot
Height
Hash
ParentSlot
TxCount
}
}
}
}
Latest Blocks (Ethereum)
query {
EVM ( network : eth ) {
Blocks ( limit : { count : 10 }, orderBy : { descending : Block_Time }) {
Block {
Time
Number
Hash
GasUsed
GasLimit
BaseFee
TxCount
Coinbase
}
}
}
}
Transactions
Recent Transactions by Address (Solana)
query {
Solana {
Transactions (
signer : { is : "WALLET_ADDRESS" }
limit : { count : 20 }
orderBy : { descending : Block_Time }
) {
Block { Time Slot }
Transaction {
Signature
Fee
FeePayer
Result { Success }
}
}
}
}
Recent Transactions by Address (EVM)
query {
EVM ( network : eth ) {
Transactions (
fromAddress : { is : "0xWALLET_ADDRESS" }
limit : { count : 20 }
orderBy : { descending : Block_Time }
) {
Block { Time Number }
Transaction {
Hash
From
To
Value
Gas
GasPrice
}
}
}
}
Events (EVM Only)
Filter Events by Contract and Topic
query {
EVM ( network : eth ) {
Events (
contractAddress : { is : "0xCONTRACT_ADDRESS" }
limit : { count : 20 }
orderBy : { descending : Block_Time }
) {
Block { Time Number }
Transaction { Hash }
Log {
SmartContract
Index
Signature { Name Signature }
Data
}
}
}
}
Filter by Event Signature (Topic0)
query {
EVM ( network : eth ) {
Events (
topic0 : { is : "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef" }
limit : { count : 10 }
orderBy : { descending : Block_Time }
) {
Block { Time }
Transaction { Hash }
Log { SmartContract Index Data }
}
}
}
Calls / Traces (EVM Only)
Internal Calls to a Contract
query {
EVM ( network : eth ) {
Calls (
toAddress : { is : "0xCONTRACT_ADDRESS" }
limit : { count : 20 }
orderBy : { descending : Block_Time }
) {
Block { Time Number }
Transaction { Hash }
Call {
From
To
Opcode
Value
Gas
GasUsed
Signature { Name }
}
}
}
}
Instructions (Solana Only)
Recent Instructions for a Program
query {
Solana {
Instructions (
programId : { is : "PROGRAM_ADDRESS" }
limit : { count : 20 }
orderBy : { descending : Block_Time }
) {
Block { Time Slot }
Transaction { Signature }
Instruction {
Index
Depth
Program { Address Name Method }
Accounts
}
}
}
}
Rewards (Solana Only)
Staking Rewards for a Validator
query {
Solana {
Rewards (
address : { is : "VALIDATOR_ADDRESS" }
limit : { count : 50 }
orderBy : { descending : Block_Time }
) {
Block { Time Slot }
Reward {
Address
Amount
AmountInUSD
PostBalance
RewardType
Commission
}
}
}
}
Miner Rewards (EVM Only)
Block Reward Breakdown
query {
EVM ( network : eth ) {
MinerRewards (
limit : { count : 20 }
orderBy : { descending : Block_Time }
) {
Block { Time Number }
Reward {
Miner
TotalReward
TotalRewardInUSD
StaticReward
DynamicReward
TxFees
BurntFees
}
}
}
}
Data Cubes Detailed field structures for all Cubes including Blocks, Transactions, Events, and Calls.
Chain Groups Understand which Cubes are available for EVM vs Solana.