encodeEvent

A wallet-to-dApp event as a JSON-RPC notification. The event name is the notification's method, and its payload is params.