logs

Get logs for a specific account, which can point to either account indexes (main account, sub-account, public pools) or L1 addresses. This endpoint uses different rate limits than the others: 100 requests/60s; 300 requests/5m; 500 requests/10m.

Query Params

NameTypeDescription
limitint64optional, number of logs to return, 1 to 100
offsetint64optional, pagination

Example Response

{
      "tx_type":"L2UpdateLeverage",
      "hash":"189068ebc6b5c7e5efda96f92842a2fafd280990692e56899a98de8c4a12a38c",
      "time":"2025-11-20T11:56:44.999846Z",
      "pubdata":{
         "l2_update_leverage_pubdata":{
            "account_index":[INTEGER],
            "market_index":0,
            "initial_margin_fraction":200,
            "margin_mode":0
         }
      },
      "pubdata_type":"L2UpdateLeverage",
      "status":"executed"
   }
   {
      "tx_type":"L2Transfer",
      "hash":"189068ebc6b5c7e5efda96f92842a2fafd280990692e56899a98de8c4a12a38c",
      "time":"2025-11-19T10:54:45.817347Z",
      "pubdata":{
         "l2_transfer_pubdata":{
            "from_account_index":[INTEGER],
            "to_account_index":[INTEGER],
            "usdc_amount":"5.000000"
         }
      },
      "pubdata_type":"L2Transfer",
      "status":"executed"
   }
  {
      "tx_type":"L2CreateOrder",
      "hash":"189068ebc6b5c7e5efda96f92842a2fafd280990692e56899a98de8c4a12a38c",
      "time":"2025-11-17T21:10:44.834923Z",
      "pubdata":{
         "trade_pubdata_with_funding":{
            "trade_type":0,
            "market_index":99,
            "is_taker_ask":1,
            "maker_fee":20,
            "taker_fee":200,
            "taker_account_index":[INTEGER],
            "maker_account_index":[INTEGER],
            "fee_account_index":"0",
            "price":"0.12345",
            "size":"1.0",
            "funding_rate_prefix_sum":577399884349754
         }
      },
      "pubdata_type":"TradeWithFunding",
      "status":"executed"
   }