platform.getHeight RPC Method
To use the platform.getHeight method on the P-Chain, ensure that the end of your URL includes ext/bc/P.
Parameters
This method does not accept any parameters
Returns
height
integer
Loading...
Request
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "platform.getHeight",6"params": {},7"id": 18}'
1curl -X POST "https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/C/rpc/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "platform.getHeight",6"params": {},7"id": 18}'
Response
1{2"jsonrpc": "2.0",3"result": {4"height": "1773310"5},6"id": 17}
1{2"jsonrpc": "2.0",3"result": {4"height": "1773310"5},6"id": 17}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free