Example

import { Relay, Events } from "@chainpatrol/sdk";

Relay.send(Events.ContinueAtOwnRisk, { domain: "example.com" });

Parameters

The send() method accepts two parameters:

type
EventType
required

The type property specifies what type of event you want to send.

data
object
required

The data property is an object that contains the event data.