async onAsync()
Last updated
Was this helpful?
Last updated
Was this helpful?
Registers the listener function as callback of the selected RPC event.
Type
async onAsync(eventName, listener): void
Parameters
eventName
String
Event to listen. Depeding on the provider chain one of or an .
listener
()=>any
Callback function.
Return Type
void
Example
TypeScript