Skip to content

Commit

Permalink
add platform.getBlockByHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavinia Talpas authored and Lavinia Talpas committed Aug 14, 2023
1 parent 2f502af commit b5ed208
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Avalanche.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -10560,6 +10560,35 @@
},
"response": []
},
{
"name": "getBlockByHeight",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"jsonrpc\":\"2.0\",\n \"id\" :1,\n \"method\" :\"platform.getBlockByHeight\",\n \"params\" :{\n \"height\": 7768381,\n \"encoding\": \"json\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{baseURL}}/ext/bc/P",
"host": [
"{{baseURL}}"
],
"path": [
"ext",
"bc",
"P"
]
},
"description": "Get a block by its ID. [More info](https://docs.avax.network/apis/avalanchego/apis/p-chain#platformgetblock)"
},
"response": []
},
{
"name": "getBlockchains - DEPRECATED",
"request": {
Expand Down

0 comments on commit b5ed208

Please sign in to comment.