This document is about the details of the Polkadot namespace and reference for CAIP-2.
In CAIP-2 a general blockchain identification scheme is defined. This is the implementation of CAIP-2 for Polkadot chains.
See CAIP-2.
The namespace is called "polkadot" to refer to Polkadot-like chains.
The definition for this namespace will use the genesis-hash as an identifier for different Polkadot chains. The format is a 32 character prefix of the block hash (lower case hex).
To resolve a blockchain reference for the Polkadot namespace, make a JSON-RPC request to the blockchain node with method chain_getBlockHash, for example:
The response will return as a value for the result a hash for the block with height 0 that should be sliced to its first 16 bytes (32 characters for base 16) to be CAIP-13 compatible.
The rationale behind the use of block hash from the genesis block stems from its usage in the Polkadot architecture in network and consensus.
Not applicable
This is a list of manually composed examples
Not applicable
Copyright and related rights waived via CC0.