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"or
object
type
"inApp"or
object
type
"inApp"content
JSXElementtitle
stringfooterLink
objecthref
stringtext
stringCommon properties
message
stringReturns
null
The result returned by the snap_notify method.
This method does not return anything.