Sui · Example Payload

Events

BlockchainMoveWeb3CryptocurrencySmart Contracts

Events is an example object payload from Sui, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

sui_getEventssuix_queryEvents

Example Payload

Raw ↑
{
  "sui_getEvents": {
    "method": "sui_getEvents",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "sui_getEvents",
      "params": [
        "11a72GCQ5hGNpWGh2QhQkkusTEGS6EDqifJqxr7nSYX"
      ]
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "data": [
          {
            "id": {
              "txDigest": "11a72GCQ5hGNpWGh2QhQkkusTEGS6EDqifJqxr7nSYX",
              "eventSeq": "0"
            },
            "packageId": "0xc54ab30a3d9adc07c1429c4d6bbecaf9457c9af77a91f631760853934d383634",
            "transactionModule": "test_module",
            "sender": "0xbcf7c32655009a61f1de0eae420a2e4ae1bb772ab2dd5d5a7dfa949c0ef06908",
            "type": "0x0000000000000000000000000000000000000000000000000000000000000009::test::TestEvent",
            "parsedJson": {
              "test": "example value"
            },
            "bcsEncoding": "base64",
            "bcs": ""
          }
        ],
        "nextCursor": {
          "txDigest": "11a72GCQ5hGNpWGh2QhQkkusTEGS6EDqifJqxr7nSYX",
          "eventSeq": "5"
        },
        "hasNextPage": false
      }
    }
  },
  "suix_queryEvents": {
    "method": "suix_queryEvents",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "suix_queryEvents",
      "params": [
        {
          "MoveModule": {
            "package": "0xa395759ca37c6e1ffc179184e98a6f9a2da5d78f6e34b0e5044ed52a6bc0a1bc",
            "module": "test"
          }
        },
        {
          "txDigest": "Eg3ynETJfTfPKyvJzq3VLG6MngURYHPMjjUJ3Xt1t7tf",
          "eventSeq": "1"
        },
        100,
        false
      ]
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "data": [
          {
            "id": {
              "txDigest": "FFwCMgC7FHBLEwfL9JeSeR2EhMAZMykUPVW1kE3HgTMe",
              "eventSeq": "1"
            },
            "packageId": "0xb2fd632992b01aa25900867288b63d6255ff8223c12b0fd985c49d5777a0d65a",
            "transactionModule": "test",
            "sender": "0xcceee09f44d558691334ec0aff47af033f57162a2f33056e2585e2c46863ac02",
            "type": "0x3::test::Test<0x3::test::Test>",
            "parsedJson": "some_value",
            "bcsEncoding": "base64",
            "bcs": ""
          },
          {
            "id": {
              "txDigest": "FUMhRSj76es8MYeaRYeaBnppk56cuEehKwL2CiU82U7B",
              "eventSeq": "1"
            },
            "packageId": "0xb2fd632992b01aa25900867288b63d6255ff8223c12b0fd985c49d5777a0d65a",
            "transactionModule": "test",
            "sender": "0x84bd999f9ff7a1804872957fafa528628a24386298faa98850887f64da841b87",
            "type": "0x3::test::Test<0x3::test::Test>",
            "parsedJson": "some_value",
            "bcsEncoding": "base64",
            "bcs": ""
          },
          {
            "id": {
              "txDigest": "CkEYWW2zxTCGBLvUcTARhyX92fu2uc7cnCUXfCiqAypp",
              "eventSeq": "1"
            },
            "packageId": "0xb2fd632992b01aa25900867288b63d6255ff8223c12b0fd985c49d5777a0d65a",
            "transactionModule": "test",
            "sender": "0x279efd098d59a66a3d9adc87cce81fe9ec69dc8105b2b60140589ec8be44c29f",
            "type": "0x3::test::Test<0x3::test::Test>",
            "parsedJson": "some_value",
            "bcsEncoding": "base64",
            "bcs": ""
          },
          {
            "id": {
              "txDigest": "Eg3ynETJfTfPKyvJzq3VLG6MngURYHPMjjUJ3Xt1t7tf",
              "eventSeq": "1"
            },
            "packageId": "0xb2fd632992b01aa25900867288b63d6255ff8223c12b0fd985c49d5777a0d65a",
            "transactionModule": "test",
            "sender": "0x289be027d2a94f744b4c59fda7b528f9c59f430eaba84b8bee9b43a30f9cc83f",
            "type": "0x3::test::Test<0x3::test::Test>",
            "parsedJson": "some_value",
            "bcsEncoding": "base64",
            "bcs": ""
          }
        ],
        "nextCursor": {
          "txDigest": "Eg3ynETJfTfPKyvJzq3VLG6MngURYHPMjjUJ3Xt1t7tf",
          "eventSeq": "1"
        },
        "hasNextPage": false
      }
    }
  }
}