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