From 5ed825dd06a1e3df951df444d2abbb6578899272 Mon Sep 17 00:00:00 2001 From: Bharat Jain Date: Tue, 21 Jul 2026 15:44:14 +0530 Subject: [PATCH 1/3] Add Supra Namespace --- supra/README.md | 34 ++++++++++++++++++++ supra/caip2.md | 85 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 supra/README.md create mode 100644 supra/caip2.md diff --git a/supra/README.md b/supra/README.md new file mode 100644 index 00000000..833e4bbb --- /dev/null +++ b/supra/README.md @@ -0,0 +1,34 @@ +--- +namespace-identifier: supra +title: Supra Ecosystem +author: Bharat Jain +discussions-to: https://github.com/ChainAgnostic/namespaces/pull/PENDING +status: Draft +type: Informational +created: 2026-07-21 +updated: 2026-07-21 +--- + +# Namespace for Supra chains + +## Introduction + +Blockchains in the "supra" namespace are identified by their numeric `chain_id`; +each network is maintained by a set of validators with its own REST RPC +endpoints. Supra is a Layer 1 blockchain built on Move, with vertically +integrated services — native price oracles, distributed verifiable randomness +(dVRF), and on-chain automation. + +## Syntax + +The namespace "supra" refers to the Supra open-source blockchain platform. + +## References + +- [Supra Docs](https://docs.supra.com/) +- [Supra GitHub](https://github.com/Entropy-Foundation) +- [Supra Network](https://supra.com/) + +## Copyright + +Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). diff --git a/supra/caip2.md b/supra/caip2.md new file mode 100644 index 00000000..1459034a --- /dev/null +++ b/supra/caip2.md @@ -0,0 +1,85 @@ +--- +namespace-identifier: supra-caip2 +title: Supra Namespace - Chains +author: Bharat Jain +discussions-to: https://github.com/ChainAgnostic/namespaces/pull/PENDING +status: Draft +type: Standard +created: 2026-07-21 +updated: 2026-07-21 +requires: CAIP-2 +--- + +# CAIP-2 + +*For context, see the [CAIP-2][] specification.* + +## Rationale + +In CAIP-2 a general blockchain identification scheme is defined. This is the +implementation of CAIP-2 for Supra. Blockchains in the "supra" namespace are +identified by their numeric `chain_id`, assigned at genesis. Each network is +maintained by a set of validators with its own REST RPC endpoints. These chain +IDs require no transformations to be used as conformant CAIP-2 references. + +## Syntax + +The namespace "supra" refers to the Supra open-source blockchain platform. + +### Reference Definition + +The definition for this namespace will use the `chain_id` as an identifier +for different Supra chains. The chain ID is a positive integer assigned at +genesis: + +| Network | Chain ID | +|---------|----------| +| Mainnet | 8 | +| Testnet | 6 | + +### Resolution Method + +To resolve a blockchain reference for the Supra namespace, make an HTTP GET +request to the REST RPC of a fullnode, for example: + +```bash +curl https://rpc-mainnet.supra.com/rpc/v3/transactions/chain_id +``` + +```jsonc +// Response +8 +``` + +The response is the `chain_id` as an integer that can be used directly as the +CAIP-2 reference. + +### Backwards Compatibility + +Not applicable + +## Test Cases + +This is a list of manually composed examples + +```bash +# Supra Mainnet +supra:8 + +# Supra Testnet +supra:6 + +``` + +## References + +- [REST RPC][] - REST RPC reference in Supra official documentation +- [Networks][] - Supra network information and endpoints + +[CAIP-2]: https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-2.md +[REST RPC]: https://docs.supra.com/network/move/rest-api +[Networks]: https://docs.supra.com/network/network-information + +## Copyright + +Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). From 90b6fd3dbb72cce21eb3be91cc14a14acd4dda60 Mon Sep 17 00:00:00 2001 From: Bharat Jain Date: Tue, 21 Jul 2026 15:51:41 +0530 Subject: [PATCH 2/3] Updated PR link --- supra/README.md | 2 +- supra/caip2.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/supra/README.md b/supra/README.md index 833e4bbb..cb2db9c1 100644 --- a/supra/README.md +++ b/supra/README.md @@ -2,7 +2,7 @@ namespace-identifier: supra title: Supra Ecosystem author: Bharat Jain -discussions-to: https://github.com/ChainAgnostic/namespaces/pull/PENDING +discussions-to: https://github.com/ChainAgnostic/namespaces/pull/192 status: Draft type: Informational created: 2026-07-21 diff --git a/supra/caip2.md b/supra/caip2.md index 1459034a..1af55b69 100644 --- a/supra/caip2.md +++ b/supra/caip2.md @@ -2,7 +2,7 @@ namespace-identifier: supra-caip2 title: Supra Namespace - Chains author: Bharat Jain -discussions-to: https://github.com/ChainAgnostic/namespaces/pull/PENDING +discussions-to: https://github.com/ChainAgnostic/namespaces/pull/192 status: Draft type: Standard created: 2026-07-21 From 05acf2f42d1f9ae04ba150499746c302e2165e73 Mon Sep 17 00:00:00 2001 From: Bharat Jain Date: Thu, 24 Sep 2026 17:26:05 +0530 Subject: [PATCH 3/3] Apply batched suggestions from code review Co-authored-by: Bumblefudge --- supra/README.md | 3 ++- supra/caip2.md | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/supra/README.md b/supra/README.md index cb2db9c1..b8a06f87 100644 --- a/supra/README.md +++ b/supra/README.md @@ -1,7 +1,8 @@ --- namespace-identifier: supra title: Supra Ecosystem -author: Bharat Jain +author: Bharat Jain (@supra-bharatjain) + discussions-to: https://github.com/ChainAgnostic/namespaces/pull/192 status: Draft type: Informational diff --git a/supra/caip2.md b/supra/caip2.md index 1af55b69..7be7ba6c 100644 --- a/supra/caip2.md +++ b/supra/caip2.md @@ -1,7 +1,7 @@ --- namespace-identifier: supra-caip2 title: Supra Namespace - Chains -author: Bharat Jain +author: Bharat Jain (@supra-bharatjain) discussions-to: https://github.com/ChainAgnostic/namespaces/pull/192 status: Draft type: Standard @@ -40,7 +40,8 @@ genesis: ### Resolution Method To resolve a blockchain reference for the Supra namespace, make an HTTP GET -request to the REST RPC of a fullnode, for example: +request to path `/rpc/v3/transactions/chain_id` on the REST RPC of any of a +given [Networks]' fullnodes, for example, for Mainnet: ```bash curl https://rpc-mainnet.supra.com/rpc/v3/transactions/chain_id