sui_getEvents

Read API

Return transaction events.

Parameters

KeyRequiredTypeDetail
transaction_digestStringthe event query criteria.
"params": [
  "GXBU5NkWX3HKbSA7D2aNS2HVndzvHzWy4iRL9R7Uf56E"
]

Result

Vec<SuiEvent> : <[Event]> - return the events the transaction in the request emits.

Example

Request

curl <your-endpoint> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sui_getEvents",
  "params": [
    "GXBU5NkWX3HKbSA7D2aNS2HVndzvHzWy4iRL9R7Uf56E"
  ]
}
'

Response

{
    "jsonrpc": "2.0",
    "result": [
        {
            "id": {
                "txDigest": "GXBU5NkWX3HKbSA7D2aNS2HVndzvHzWy4iRL9R7Uf56E",
                "eventSeq": "0"
            },
            "packageId": "0x80d114c5d474eabc2eb2fcd1a0903f1eb5b5096a8dc4184d72453f7a9be728e4",
            "transactionModule": "router",
            "sender": "0x4209f1995057b4add39b5688d7593a03d0ead3ac4b180f0e7f40f87f411876dd",
            "type": "0x80d114c5d474eabc2eb2fcd1a0903f1eb5b5096a8dc4184d72453f7a9be728e4::pool::ClaimEvent",
            "parsedJson": {
                "claim_amount": "80000000000",
                "pool_id": "0x8b3b1b25d0769ec4165c9d7cf6090375be6066c3b4b35cb472c7eb8f05b07a9c",
                "raise_amount": "0",
                "sale_amount": "2000000000000"
            },
            "bcs": "4mhB1uXKYuW5AWHTmPXSx3npYMfT7vVZCmG7yVAbfP4BzDbEMH5rMwLAuDKQumXsLYLaxDyQ6ii63"
        }
    ],
    "id": 1
}
Language
Click Try It! to start a request and see the response here!