Queries
Below are some sample queries you can use to gather information from the Phuture contracts.
You can build your own queries using a GraphQL Explorer and enter your endpoint to limit the data to exactly what you need.
{
userIndexHistories(
first: 10
orderBy: timestamp
where: { balance_gt: "10" }
) {
balance
timestamp
id
}
}
query MyQuery {
dailyIndexStats(first: 10) {
apy
basePrice
date
id
uniqueHolders
}
}
{
chainLinkAggs {
description
answer
updatedAt
nextAgg {
description
answer
updatedAt
}
}
}
{
indexes {
symbol
basePrice
basePriceETH
marketCap
uniqueHolders
assets {
asset {
symbol
basePrice
}
}
}
}
{
indexes {
symbol
basePrice
basePriceETH
assets {
shares
asset {
symbol
decimals
basePrice
vTokens {
deposited
assetReserve
totalAmount
platformTotalSupply
}
}
}
}
}
{
transactions(first: 5) {
id
blockNumber
timestamp
value
}
assets(first: 5) {
id
isWhitelisted
decimals
symbol
}
}
Last modified 7mo ago