Last active
May 13, 2021 12:50
-
-
Save yuyasugano/7b0866ebdc5e6235cdb4489c770d8289 to your computer and use it in GitHub Desktop.
get a list of blockchains in P-Chain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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