POST
/
zks_getRawBlockTransactions
curl --request POST \
  --url https://api.mainnet.abs.xyz/zks_getRawBlockTransactions \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "zks_getRawBlockTransactions",
  "params": [
    7469801
  ]
}'
{
  "jsonrpc": "2.0",
  "result": [
    {
      "common_data": {
        "L2": {
          "nonce": 117,
          "fee": {
            "gas_limit": "0xbadbc",
            "max_fee_per_gas": "0x202fbf0",
            "max_priority_fee_per_gas": "0x0",
            "gas_per_pubdata_limit": "0xc350"
          },
          "initiatorAddress": "0xe7734c4a8201af41db64da90eddb4c19bbf64710",
          "signature": [
            203,
            118,
            119,
            63,
            1,
            54,
            91,
            252,
            188,
            23,
            120,
            51,
            4,
            28
          ],
          "transactionType": "EIP1559Transaction",
          "input": {
            "hash": "0x970c9480960818b05832f7e5b76a0c46956003c34942e005672d7ddc537aaa59",
            "data": [
              2,
              249,
              1,
              111,
              1305,
              187,
              2,
              170,
              21,
              166,
              251,
              255
            ]
          },
          "paymasterParams": {
            "paymaster": "0x0000000000000000000000000000000000000000",
            "paymasterInput": []
          }
        }
      },
      "execute": {
        "contractAddress": "0x5155704bb41fde152ad3e1ae402e8e8b9ba335d3",
        "calldata": "0fa0x5155704bb41fde152ad3e1ae402e8e8b9ba335d3",
        "value": "0x0",
        "factoryDeps": null
      },
      "received_timestamp_ms": 1711649348872,
      "raw_bytes": "0x02f9016f8201447580840202fbf"
    }
  ],
  "id": 1
}

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:zks_getRawBlockTransactions
required

The RPC method to be invoked

id
integer
default:1
required

Request identifier

params
any[]
required

Parameters for retrieving raw block transactions

Response

200 - application/json
Returns an array of raw transaction objects

The response is of type any.