/commit

Get Commit. If the height field is set to a non-default value, upon success, the Cache-Control header will be set with the default maximum age.

Parameters:

height - int, height to return. If no height is provided, it will fetch information regarding the latest block.

Example:

// Request
curl -X GET -H 'Content-Type: application/json'  https://froopyland.blockpi.network/rpc/v1/<your-api-key>/commit?height=14183822

// Result
{
   "jsonrpc": "2.0",
    "result": {
        "canonical": false,
        "signed_header": {
            "commit": {
                "block_id": {
                    "hash": "AA6EFB382D2E429C7C0A9F1CC06193B681BDA896B0454414DC64A58A54F92F26",
                    "parts": {
                        "hash": "62E109119CC3A5CB57330342AA74B0BDB51082ACC8123670BB79E85E92964412",
                        "total": 1
                    }
                },
                "height": "1651535",
                "round": 0,
                "signatures": [
                    {
                        "block_id_flag": 1,
                        "signature": null,
                        "timestamp": "0001-01-01T00:00:00Z",
                        "validator_address": ""
                    },
                    {
                        "block_id_flag": 1,
                        "signature": null,
                        "timestamp": "0001-01-01T00:00:00Z",
                        "validator_address": ""
                    },
                    {
                        "block_id_flag": 2,
                        "signature": "gm8/jCVBzmwZg+6AmfSjDZjgKWRG0K1ELk1+PBG2KvZ6vZH0+dPPSbM/v3rjXv2RDpJYAdX11xZyMe3JBpGsAw==",
                        "timestamp": "2023-12-11T12:08:46.673979642Z",
                        "validator_address": "7E14D18EDF119A6CAD8B9195BA625A0F0305E17E"
                    },
                    ......
}                    

Last updated