Docs

chainSpec_v1_properties - Bittensor RPC Method

Get chain properties (SS58 prefix, token symbol, decimals) from the chain specification on Bittensor using the new JSON-RPC v2 spec.

Returns the chain properties as defined in the chain specification. These properties describe the network's address format, native token, and other static configuration. For Bittensor mainnet, this returns the SS58 prefix (42), the native token symbol (TAO), and the token decimals (9).

Parameters

None.

Response

FieldTypeDescription
resultobjectA JSON object with chain-defined properties.

Typical response fields for Bittensor:

PropertyTypeExampleDescription
ss58Formatnumber42The SS58 address prefix used for encoding Bittensor addresses.
tokenSymbolstring"TAO"The native token symbol.
tokenDecimalsnumber9Number of decimal places for the native token. 1 TAO = 10^9 rao.

Code Examples

Use Cases

  • Address formatting -- Use the ss58Format value to correctly encode and decode Bittensor SS58 addresses in your application.
  • Balance display -- Use tokenDecimals and tokenSymbol to convert raw balance values (in rao) to human-readable TAO amounts.
  • Client configuration -- Initialize wallet libraries and UIs with the correct token metadata without hardcoding values.
  • Multi-chain support -- Dynamically configure your application for different Substrate chains by reading properties at startup.

Notes

  • This method is part of the new JSON-RPC v2 chainSpec namespace.
  • The returned properties are static and never change for a given chain, so they can be cached.
  • This is the v2 equivalent of the legacy system_properties method.