Hello,
Am I correct that it’s currently not possible to filter for all generic events, without specifing the generic itself?
use-case: I would like to read all 0x2::c oin::CurrencyCreated events without having to pass in the , so that I can index cointypes off-chain more efficiently.
{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getEvents",
"params": {
"query": {
"MoveEvent": "0x2::coin::CurrencyCreated"
},
"descending_order": false
}
}
returns an emtpy list (because I did not specify T) where as
{
"jsonrpc": "2.0",
"id": 1,
"method": "sui_getEvents",
"params": {
"query": {
"MoveEvent": "0x2::coin::CurrencyCreated<0xe02749a56fc4b05daf0fb1c700e6450ea03ef757::btc::BTC>"
},
"descending_order": false
}
}
returns one event.
Best,
Daniel