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.