Skip to main content
  • Snap

snap_cancelBackgroundEvent

Description

Cancel a background event created by snap_scheduleBackgroundEvent.

Parameters

id

stringrequired

The ID of the background event to cancel.

Example

const id = snap.request({
method: "snap_scheduleBackgroundEvent",
params: {
// ...
},
});

// Later, when you want to cancel the background event:
snap.request({
method: "snap_cancelBackgroundEvent",
params: { id },
});