-
Notifications
You must be signed in to change notification settings - Fork 300
feat(wrw): added api key for full node txn #6581
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
Conversation
kamleshmugdiya
left a comment
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.
commit lint is failing
txn COIN-4967 Add API key support to Sol module for recovery and node requests. This enables users to provide their own Alchemy API keys when making Solana node requests to improve rate limits and reliability. The apiKey parameter is optional and falls back to standard node URLs when not provided. TICKET: COIN-4967
kamleshmugdiya
left a comment
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.
LGTM
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.
Pull Request Overview
This PR adds API key support to the Solana (SOL) module to enable users to provide their own Alchemy API keys for improved rate limits and reliability when making node requests. The implementation maintains backward compatibility by making the API key parameter optional.
- Added
solAlchemyNodeUrlconfiguration to environment settings for both mainnet and testnet - Updated SOL recovery methods to accept and use optional API key parameter
- Added test coverage for the new API key functionality
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| modules/sdk-core/src/bitgo/environments.ts | Adds Alchemy node URL configurations for mainnet and testnet environments |
| modules/sdk-coin-sol/src/sol.ts | Implements API key support in node request methods and recovery options |
| modules/sdk-coin-sol/test/unit/sol.ts | Adds unit tests for API key functionality and improves type safety |
| // destination address where token should be sent before closing the ATA address | ||
| recoveryDestinationAtaAddress?: string; | ||
| programId?: string; // programId of the token | ||
| apiKey?: string; // API key for node requests |
Copilot
AI
Jul 30, 2025
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.
[nitpick] The comment should be more descriptive. Consider: '// Optional Alchemy API key for enhanced rate limits and reliability'
| apiKey?: string; // API key for node requests | |
| apiKey?: string; // Optional Alchemy API key for enhanced rate limits and reliability |
| secretKey: string; | ||
| }; | ||
| tokenContractAddress?: string; | ||
| apiKey?: string; // API key for node requests |
Copilot
AI
Jul 30, 2025
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.
[nitpick] The comment should be more descriptive and consistent with the interface above. Consider: '// Optional Alchemy API key for enhanced rate limits and reliability'
| apiKey?: string; // API key for node requests | |
| apiKey?: string; // Optional Alchemy API key for enhanced rate limits and reliability |
sampras-saha
left a comment
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.
LGTM
COIN-4967 Add API key support to Sol module for recovery and node requests. This enables users to provide their own Alchemy API keys when making Solana node requests to improve rate limits and reliability. The apiKey parameter is optional and falls back to standard node URLs when not provided.
TICKET: COIN-4967