⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

system_properties

Description

Returns chain-specific properties clients need for address encoding and unit conversions.

Parameters

This method does not require any parameters.

Returns

FieldTypeDescription
ss58FormatnumberSS58 address prefix (5 for Astar)
tokenSymbolstringNative token symbol (ASTR)
tokenDecimalsnumber or arrayNumber of decimal places (18)

Request Example

{
"jsonrpc": "2.0",
"method": "system_properties",
"params": [],
"id": 1
}

Response Example

{
"jsonrpc": "2.0",
"result": {
"ss58Format": 5,
"tokenDecimals": 18,
"tokenSymbol": "ASTR"
},
"id": 1
}

Code Examples

cURL

curl https://api-astar.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "system_properties",
"params": [],
"id": 1
}'

JavaScript

const api = await ApiPromise.create({ provider: new WsProvider('wss://api-astar.n.dwellir.com/YOUR_API_KEY') });
const properties = await api.rpc.system.properties();
console.log(properties.toHuman());

Python

from substrateinterface import SubstrateInterface

substrate = SubstrateInterface(
url="wss://api-astar.n.dwellir.com/YOUR_API_KEY",
ss58_format=5,
type_registry_preset="substrate-node-template"
)
print(substrate.properties)