@metamask/interactive-ui-example-snap

2.0.0 • Public • Published

@metamask/interactive-ui-example-snap

This snap demonstrates how to use interactive UI to build reactive custom UI interfaces across all the available APIs.

Snap usage

onRpcRequest

This snap exposes an onRpcRequest handler, which supports the following JSON-RPC methods:

  • dialog: Create a snap_dialog with an interactive interface. This demonstrates that a snap can show an interactive snap_dialog that the user can interact with.

onTransaction

This snap exposes an onTransaction handler, which is called when a transaction
is sent by the user. It shows a user interface with details about the transaction.

onHomePage

The snap exposes an onHomePage handler, which shows a user interface.

For more information, you can refer to the end-to-end tests.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    590
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    590
  • 1.0.2
    1
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i @metamask/interactive-ui-example-snap

Weekly Downloads

593

Version

2.0.0

License

(MIT-0 OR Apache-2.0)

Unpacked Size

70.2 kB

Total Files

7

Last publish

Collaborators

  • mcmire
  • nicholasellul
  • lgbot
  • naugtur
  • ritave
  • danfinlay
  • kumavis
  • rekmarks
  • metamaskbot
  • gudahtt
  • sethkfman