Drift

Fastest and easiest way to query Drift v2 on-chain data.

Drift Protocol is a decentralized exchange offering low slippage, fees, and price impact. It features a robust, efficient platform that incentivizes market makers and liquidity providers. When developing applications on Drift Protocol, you might need to fetch on-chain data. Drift's Solana SDK provides access to this information. However, SuperIndexers offer a faster and more efficient alternative to traditional RPC calls used by the SDK.

Going through our getting started section will help you understand few basics first.

Getting Started

TLDR: In order to start querying protocols, follow these steps:

  • Get an API key if you don't have one.

  • Head to any GraphQL client of your choice, for example Hasura.

  • Enter the GraphQL endpoint for your preferred network

    • Mainnet: https://programs.shyft.to/v0/graphql/?api_key={api-key}&network=mainnet-beta

    • Devnet: https://programs.shyft.to/v0/graphql/?api_key={api-key}&network=devnet

  • Start filtering, sorting and querying data.

The schema name for Drift v2 is drift_{AccountName}.

Last updated