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
| Field | Type | Description |
|---|---|---|
result | object | A JSON object with chain-defined properties. |
Typical response fields for Bittensor:
| Property | Type | Example | Description |
|---|---|---|---|
ss58Format | number | 42 | The SS58 address prefix used for encoding Bittensor addresses. |
tokenSymbol | string | "TAO" | The native token symbol. |
tokenDecimals | number | 9 | Number of decimal places for the native token. 1 TAO = 10^9 rao. |
Code Examples
Use Cases
- Address formatting -- Use the
ss58Formatvalue to correctly encode and decode Bittensor SS58 addresses in your application. - Balance display -- Use
tokenDecimalsandtokenSymbolto 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
chainSpecnamespace. - 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_propertiesmethod.
Related Methods
chainSpec_v1_genesisHash-- Get the genesis hash from the chain specsystem_properties-- Legacy method returning the same informationsystem_chain-- Get the human-readable chain name