curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getStakingAssetID' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getStakingAssetID",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"assetID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
},
"id": 1
}GetStakingAssetID returns the assetID of the token used to stake on the provided subnet
curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getStakingAssetID' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getStakingAssetID",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"assetID": "2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM"
},
"id": 1
}JSON-RPC request
Was this page helpful?