-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added settings page, account selection menu styling, #243
Conversation
3d4f210
to
5117d24
Compare
…detail page, added openfunds csv/json links (disabled) as preview
…a stored in local storage
e308f5b
to
1bb7ff1
Compare
const API_CONFIG = { | ||
url: 'https://rpc.helius.xyz/', // Correct Helius RPC endpoint | ||
apiKey: process.env.NEXT_PUBLIC_HELIUS_API_KEY || '', // Use environment variable | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need the separate the url and the api key
We currently use 1 env variable for the RPC endpoint NEXT_PUBLIC_SOLANA_RPC
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved it directly to the fetch, not sure what you mean with the second point. this must be a helius key
jsonrpc: '2.0', | ||
id: '1', | ||
method: 'getTokenAccounts', | ||
params: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should work if we don't have too many holders of a share class.
When a mint has lots of holders, the result from the rpc call is paginated, see limit
and page
params:
https://docs.helius.dev/compression-and-das-api/digital-asset-standard-das-api/get-token-accounts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it goes all the way to 1000, figured that gives us enough time to find a proper solution
No description provided.