Appearance
Metadata
state_getMetadata on the live node is the source of truth for pallet names, call indices, storage prefixes, and signed extensions. Repository files PALLET_REFERENCE.md and PALLET_NAMES.md lag the chain (headers still cite spec 208 / 103). Do not copy those indices into a client.
bash
curl -s https://rpc2.testnet.empooriochain.com \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"state_getRuntimeVersion","params":[]}'Live (2026-11-20): specName empoorio-chain, specVersion 255, transactionVersion 12, metadata v14.
Indices are SCALE variants
The pallet index is the variant of RuntimeCall. Inserting a pallet in the middle of construct_runtime! renumbers everything after it and breaks already-signed extrinsics. Retired indices stay as holes. They are never reused.
Holes (runtime source, still true at spec 255): 13, 16, 33, 34, 35, 64, 89, 90, 100, 125, 128, 130, 132, 133, 138.
How to resolve a call
- Fetch metadata.
- Find the pallet by name (
Balances,Faucet,PqcKeys), not by a number you memorised. - Find the call by name (
transfer_keep_alive,claim). - Encode
call_index = (pallet_index, call_index)as twou8s afterextra.
Signed extensions in metadata
Clients must honour the order in metadata. First extra is CheckPqcPolicy. See Extrinsics.
A bump of specVersion alone does not change the envelope. A bump of transactionVersion does. After a tx bump, rebuild the signed-extension list from metadata; do not keep a cached extra layout.
Storage keys
twox128("PalletName") || twox128("ItemName"). Pallet name is the construct_runtime! identifier (EvmChainId, not EVMChainId). twox128 digest from many Python libraries is big-endian; the chain wants little-endian. A wrong endianness returns empty storage with no error — you conclude the item is missing.
Example: twox128("EvmChainId") ++ twox128("ChainId") holds chain ID 2026 as little-endian u64 (0xea07000000000000).
What metadata will not tell you
- Whether a pallet has a liquid market or a consumer app.
- The SS58 bug on the node binary (RPC, not runtime).
- That
rpc.testnetdoes not serve the chain.
