Skip to content
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

Merged
merged 22 commits into from
Oct 14, 2024

Conversation

fabiofederici
Copy link
Member

No description provided.

const API_CONFIG = {
url: 'https://rpc.helius.xyz/', // Correct Helius RPC endpoint
apiKey: process.env.NEXT_PUBLIC_HELIUS_API_KEY || '', // Use environment variable
};
Copy link
Contributor

@yurushao yurushao Oct 14, 2024

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.

Copy link
Member Author

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: {
Copy link
Contributor

@yurushao yurushao Oct 14, 2024

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

Copy link
Member Author

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

@fabiofederici fabiofederici merged commit 5e00093 into main Oct 14, 2024
2 checks passed
@fabiofederici fabiofederici deleted the fabio-gui-oct2 branch October 14, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants