Retrieve Protocol Activity

Changed on

Return the historical activity of an protocol or specific packages without the need to scan the entire blockchain.

get/sui/protocol/activities

Request

  • Base URL
    https://api.blockvision.org/v2
  • URL
    https://api.blockvision.org/v2/sui/protocol/activities
  • Auth
    API key in header x-api-key

Query parameters

protocolstring

DeFi protocol (eg "cetus" or "navi").

packageIdsstring

packages

cursorstring

next page cursor

Response

200

codeinteger
messagestring

Example response

{
  "code": 200,
  "message": "OK",
  "result": {
    "data": [
      {
        "digest": "9sYD1d7K2ofdJrVrDmUfUFHGK6t9yGvZTAvtjfo8RdK3",
        "timestampMs": "1698716706860",
        "type": "Send",
        "coinChanges": [
          {
            "amount": "-2000000000",
            "coinAddress": "0x2::sui::SUI",
            "symbol": "SUI",
            "decimal": 9,
            "logo": "https://imagedelivery.net/cBNDGgkrsEA-b_ixIp9SkQ/sui.svg/public"
          }
        ],
        "interactAddresses": [
          {
            "address": "0x521ea9d56cffeaba95f62d9aa49184cfb21dd2d2375bc8d979c070cfa676a1ae",
            "type": "account"
          }
        ],
        "gasFee": "-0.00020836",
        "status": "success",
        "sender": "0xf7086d2e2bc77946a09e532639a4ef6f1abcb4bf31797e2456a7aec38bd485a3"
      }
    ],
    "nextPageCursor": "9gp3CEy1QZLVcJPSEdHMUR7t9ofKvdiZ3fCAmHw8PYwM"
  }
}

Changes