Skip to content

Conversation

@sachinBitgo
Copy link
Contributor

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

Copy link
Contributor

@kamleshmugdiya kamleshmugdiya left a 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
Copy link
Contributor

@kamleshmugdiya kamleshmugdiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sampras-saha sampras-saha requested a review from Copilot July 30, 2025 05:58
Copy link

Copilot AI left a 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 solAlchemyNodeUrl configuration 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
Copy link

Copilot AI Jul 30, 2025

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'

Suggested change
apiKey?: string; // API key for node requests
apiKey?: string; // Optional Alchemy API key for enhanced rate limits and reliability

Copilot uses AI. Check for mistakes.
secretKey: string;
};
tokenContractAddress?: string;
apiKey?: string; // API key for node requests
Copy link

Copilot AI Jul 30, 2025

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'

Suggested change
apiKey?: string; // API key for node requests
apiKey?: string; // Optional Alchemy API key for enhanced rate limits and reliability

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@sampras-saha sampras-saha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sachinBitgo sachinBitgo merged commit ef5a0f3 into master Jul 30, 2025
12 checks passed
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.

4 participants