Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
get a list of blockchains in P-Chain
curl -X POST --data '{
"jsonrpc":"2.0",
"id" :1,
"method" :"platform.getBlockchains",
"params" :{}
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/P | jq '.result.blockchains[-1]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment