Stream | Checkpoints

Subscribing

Once the Checkpoint is subscribed, the following response will be streamed.

Request:

{
  "id": 1,
  "method": "SUBSCRIBE",
  "stream": 
      {
          "name": "CHECKPOINTS",
          "full": true // used to flag whether detailed transactions is required or not
      }
}

Payload Response:

//payload
# Event stream pushed

{
  "subscription": "3427890921212938834",
  "stream": "CHECKPOINTS",
  "result": {
      "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "number": "1500",
      "parent_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "receipts_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "state_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "timestamp": "1739760890",
      "transactions_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "size": 1,
      "transactions": [
        {
            "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",

          "checkpoint_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
          "checkpoint_number": "10",
          "transaction_index": "10",

          "transaction_type": "TokenCreate",
          "data": {
              "decimals": 8,
              "master_authority": "0x0000000000000000000000000000000000000000000000000000000000000000",
              "symbol": "USDX"
          },

          "chain_id": "21210",
          "from": "0x0000000000000000000000000000000000000000000000000000000000000000",
          "fee": "10",
          "nonce": "10",

          "signature": {
            "r": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "s": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "v": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "y_parity": true
          },
        }
      ]
    }
}

Non-Full Mode Subscription

Request:

{
  "id": 1,
  "method": "SUBSCRIBE",
  "stream": 
      {
          "name": "CHECKPOINTS",
          "full": false // used to flag whether detailed transactions is required or not
      }
}

Payload Response:

//payload
# Event stream pushed

{
  "subscription": "3427890921212938834",
  "stream": "CHECKPOINTS",
  "result": {
      "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "number": "1500",
      "parent_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "receipts_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "state_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "timestamp": "1739760890",
      "transactions_root": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "size": 1
    }
}

Last updated