JSPM

@metamask/preferences-example-snap

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27482
  • Score
    100M100P100Q157402F
  • License (MIT-0 OR Apache-2.0)

MetaMask example Snap demonstrating the use of `snap_getPreferences`

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@metamask/preferences-example-snap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @metamask/preferences-example-snap

    This Snap demonstrates how to use snap_getPreferences to get the users preferences from the client.

    Snap usage

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

    • getPreferences - Return the preferences from the client.