Skip to content

Add Supra Namespace#192

Open
supra-bharatjain wants to merge 2 commits into
ChainAgnostic:mainfrom
Entropy-Foundation:main
Open

Add Supra Namespace#192
supra-bharatjain wants to merge 2 commits into
ChainAgnostic:mainfrom
Entropy-Foundation:main

Conversation

@supra-bharatjain

Copy link
Copy Markdown

Add Supra namespace

This PR introduces the Supra namespace to the ChainAgnostic namespaces registry.

Added Files

  • supra/README.md - Namespace profile for the Supra ecosystem
  • supra/caip2.md - CAIP-2 chain identification specification for Supra

Summary

Supra is a Layer 1 blockchain built on Move, with vertically integrated services — native price oracles, distributed verifiable randomness (dVRF), and on-chain automation. This PR establishes the supra namespace for identifying Supra-based chains.

Chain Identification (CAIP-2)

Chains in the Supra namespace are identified by their numeric chain_id, which is assigned at genesis and requires no transformation to be used as a CAIP-2 reference.

Network Chain ID CAIP-2 Identifier
Mainnet 8 supra:8
Testnet 6 supra:6

Resolution

To resolve a blockchain reference for the Supra namespace, make an HTTP GET
request to the REST RPC of a fullnode, for example:

// Mainnet - 8
curl https://rpc-mainnet.supra.com/rpc/v3/transactions/chain_id
// Testnet - 6
curl https://rpc-testnet.supra.com/rpc/v3/transactions/chain_id

The response is the chain_id as an integer that can be used directly as the
CAIP-2 reference.

References

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