cURL
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
JSON-RPC request
"2.0"
"platform.getStakingAssetID"
Method parameters
Show child attributes
1
Successful response
Method result
Was this page helpful?