solana-labs / solana-web3.js

Solana JavaScript SDK
https://solana-labs.github.io/solana-web3.js
MIT License
2.1k stars 845 forks source link

[GraphQL]: Add support for sysvar account parsing #2622

Closed buffalojoec closed 4 months ago

buffalojoec commented 4 months ago

Motivation

The Solana account decoder supports parsing sysvar accounts, which means the RPC's jsonParsed encoding supports parsing of sysvar accounts. However, the GraphQL client doesn't!

Details

Simply follow the jsonParsed payload structures laid out in the account decoder here to roll custom Account types in the GraphQL schema.

You can see the existing examples for SPL Token accounts, etc. here.

github-actions[bot] commented 4 months ago

Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.