Native Staking

Easiest way to query stakes account data.

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

pageGetting Started

TLDR: Understanding Native Stake program's schema is essential to figure out what fields are stored and how you can efficiently query them. To see the schema and start querying, 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

  • Scroll down to Stake_Program_accountName to see the schema.

Last updated