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

feat: CIP-30 extension to capture network magic #960

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nathanbogale
Copy link

Description

This PR introduces a new CIP that extends CIP-0030 to allow dApps to determine the specific network magic number of the connected Cardano network. While the existing getNetworkId() function only distinguishes between mainnet (1) and testnet (0), this extension enables dApps to identify specific test networks (preview, preprod, etc.) through their magic numbers.

Key features:

  • Adds getNetworkMagic() function under cipXXXX namespace
  • Maintains full backwards compatibility with CIP-0030
  • Reuses existing error handling patterns
  • Simple, focused solution for network identification

This extension will help dApps better configure themselves based on the specific test network they're connected to, improving the development and testing experience in the Cardano ecosystem.

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.

1 participant