The fast & powerful blockchain data API.
Build apps that issue sophisticated queries against the Solana & Ethereum blockchains. Get real-time updates when new blocks are mined. BeQue makes slicing and dicing blockchain data a breeze.
Build apps that issue sophisticated queries against the Solana & Ethereum blockchains. Get real-time updates when new blocks are mined. BeQue makes slicing and dicing blockchain data a breeze.
Ask questions about one or a thousand accounts. Get real-time updates. Quickly make sense of NFTs, DeFi services, and more.
Whet your appetite with these example uses of BeQue. We use our TypeScript SDK here, but you can (of course) also make direct HTTP requests from the language of your choice.
import { Trade } from "@beque/nft";
// Ask BeQue to find the top 100 NFT trades this week
const nfts = await Trade.query()
.where("date", ">=", ONE_WEEK_AGO)
.orderBy("-usdAmount")
.limit(100);
// We have data!
for (const nft of nfts) {
console.log(`${nft.name} purchased for ${nft.usdAmount}`);
// off-chain metadata is available, too...
console.log(` image is at: ${nft.imageUrl}`);
}
import { Trade } from "@beque/nft";
import { Webhook } from "@beque/push";
// Look for $1M trades or better
const bigTradeQuery = Trade.query()
.where("usdAmount", ">=", 1_000_000);
// Listen to this query. BeQue will call our Webhook HTTP endpoint
// when new blocks are mined and our query has relevant new results.
const listener = await Webhook.listen(bigTradeQuery);
import { Account, Transaction } from "@beque/base-sol";
// Ask BeQue to sum the transactions from address1 to address2
const account1 = new Account(ADDRESS_1);
const account2 = new Account(ADDRESS_2);
const total = await Transaction.query()
.where("from", account1)
.where("to", account2)
.sum("sol");
// We have data!
console.log(`${total} sent from ${ADDRESS_1} to ${ADDRESS_2}`);
import { Trade } from "@beque/defi";
// Ask BeQue to sum all trades for Uniswap in the last day
const total = await Trade.query()
.where("date", ">=", ONE_DAY_AGO)
.where("exchange", "Uniswap")
.sum("usdAmount");
// We have data!
console.log(`${total} traded in the last day`);
Where to next?
Request an API key
today, and peruse our
developer documentation.
Have questions?
Send us an email. We can’t wait to hear
from you!