Skip to main content
  • Snap
  • Restricted

snap_notify

Description

Display a notification in MetaMask or natively in the OS. Snaps can trigger a short (up to 80 characters) notification message for actionable or time sensitive information. inApp notifications can also include an optional expanded view. The expanded view has a title, content, and optional footer link shown when a user clicks on the notification.

Parameters

union

The request parameters for the snap_notify method.

Options

object

type

"native"
required

or

object

type

"inApp"
required

or

object

type

"inApp"
required

content

JSXElement
required

title

string
required

footerLink

object

href

string
required

text

string
required

Common properties

message

string
required

Returns

null

The result returned by the snap_notify method.

This method does not return anything.