Skip to content

fix: add Lava RPC node to default Free RPC Nodes #1335

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

Closed
wants to merge 1 commit into from

Conversation

gap-editor
Copy link

Motivation and Resolution

This PR adds Lava RPC node (https://www.lavanet.xyz/) as one of the default RPC providers for both Mainnet and Sepolia networks. This addition increases the reliability and availability of RPC nodes for StarkNet.js users by providing an additional fallback option.

Resolves #1331

RPC version (if applicable)

Using default RPC version (v0_7) consistent with other providers

Usage related changes

  • Added Lava RPC node (https://starknet.lava.build/rpc/v0_7) to the default RPC nodes list for both SN_MAIN and SN_SEPOLIA networks
  • Users will automatically get access to Lava RPC node when using default provider configuration
  • No breaking changes - existing code will continue to work as before

Development related changes

  • Updated constants.ts to include new RPC endpoint
  • No changes to testing infrastructure required as existing provider tests will automatically cover the new endpoint

Checklist:

  • Performed a self-review of the code
  • Rebased to the last commit of the target branch
  • Linked the issues which this PR resolves (Add Lava RPC node to default Free RPC Nodes #1331)
  • Documented the changes in code
  • No test updates needed as existing tests cover provider functionality
  • All tests are passing

@tabaktoni
Copy link
Member

Good, can you rebase this on the Beta branch, so it can enter new version.

@@ -106,3 +109,6 @@ export const SYSTEM_MESSAGES = {
legacyTxWarningMessage:
'You are using a deprecated transaction version (V0,V1,V2)!\nUpdate to the latest V3 transactions!',
};

// Provider will automatically select one of the available nodes, including Lava
const provider = new RpcProvider();
Copy link
Member

Choose a reason for hiding this comment

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

what is this ?

@tabaktoni
Copy link
Member

Buged adaptation and also false url

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.

Add Lava RPC node to default Free RPC Nodes
2 participants