system_properties
Returns chain properties including token symbol and decimals on Asset Hub.
Use Cases#
- Token formatting - Get decimals and symbol for native stablecoin transfers (USDC, USDT), DOT staking and governance, and cross-chain asset management via XCM
- UI configuration - Configure wallets and dApps
- Address formatting - Get SS58 prefix
Parameters#
This method accepts no parameters.
Request#
{
"jsonrpc": "2.0",
"method": "system_properties",
"params": [],
"id": 1
}
Code Examples#
- cURL
- JavaScript
curl https://api-asset-hub-polkadot.n.dwellir.com/<YOUR_API_KEY>/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "system_properties",
"params": [],
"id": 1
}'
import { ApiPromise, WsProvider } from '@polkadot/api';
const provider = new WsProvider('wss://api-asset-hub-polkadot.n.dwellir.com/YOUR_API_KEY');
const api = await ApiPromise.create({ provider });
const props = await api.rpc.system.properties();
console.log('Token symbol:', props.tokenSymbol.toString());
console.log('Token decimals:', props.tokenDecimals.toString());
console.log('SS58 prefix:', props.ss58Format.toString());
await api.disconnect();
Related Methods#
system_chain- Get chain namestate_getMetadata- Get runtime metadata