Sr add messages

Get smart rollup add messages

Returns a list of smart rollup add messages operations.

GEThttps://xtz-index.nownodes.io/v1/operations/sr_add_messages
Query parameters
Response
Body
type*string
typenullable string

Type of the operation, sr_add_messages

idinteger (int64)

Unique ID of the operation, stored in the TzKT indexer database
[sortable]

levelinteger (int32)

The height of the block from the genesis block, in which the operation was included

timestampstring (date-time)

Datetime of the block, in which the operation was included (ISO 8601, e.g. 2020-02-20T02:40:57Z)

hashnullable string

Hash of the operation

sendernullable one of

Information about the account who has sent the operation

counterinteger (int32)

An account nonce which is used to prevent operation replay

gasLimitinteger (int32)

A cap on the amount of gas a given operation can consume

gasUsedinteger (int32)

Amount of gas, consumed by the operation

storageLimitinteger (int32)

A cap on the amount of storage a given operation can consume

bakerFeeinteger (int64)

Fee to the baker, produced block, in which the operation was included (micro tez)

statusnullable string

Operation status (applied - an operation applied by the node and successfully added to the blockchain, failed - an operation which failed with some particular error (not enough balance, gas limit, etc), backtracked - an operation which was successful but reverted due to one of the following operations in the same operation group was failed, skipped - all operations after the failed one in an operation group)

messagesCountinteger (int32)

Number of messages added to the smart rollup inbox

errorsnullable array of object

List of errors provided by the node, injected the operation to the blockchain. null if there is no errors

quotenullable one of

Injected historical quote at the time of operation

Request
const response = await fetch('https://xtz-index.nownodes.io/v1/operations/sr_add_messages', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "type": "text",
    "id": 0,
    "level": 0,
    "timestamp": "2025-01-30T21:35:28.660Z",
    "hash": "text",
    "sender": {
      "alias": "text",
      "address": "text"
    },
    "counter": 0,
    "gasLimit": 0,
    "gasUsed": 0,
    "storageLimit": 0,
    "bakerFee": 0,
    "status": "text",
    "messagesCount": 0,
    "errors": [
      {
        "type": "text"
      }
    ],
    "quote": {
      "btc": 0,
      "eur": 0,
      "usd": 0,
      "cny": 0,
      "jpy": 0,
      "krw": 0,
      "eth": 0,
      "gbp": 0
    }
  }
]