Skip to content

xops/inspector-snaps-transport

Repository files navigation

Inspector Snaps Transport

This adds Metamask Snaps support to the OpenRPC inspector.

Install Instructions

  1. Go to http://inspector.open-rpc.org
  2. Click HTTP transport dropdown
  3. Select + Add Transport
  4. Add plugin name: Snaps
  5. Add plugin url: https://xops.github.io/inspector-snaps-transport
  6. Select POSTMESSAGE as the transport type
  7. Click Add Transport

add_transport

  1. use your snap id as the url: wallet_plugin_http://localhost:8081/package.json

image

  1. if your snap supports the rpc.discover method you can get features like auto completion for the request:

image

Contributing

How to contribute, build and release are outlined in CONTRIBUTING.md, BUILDING.md and RELEASING.md respectively. Commits in this repository follow the CONVENTIONAL_COMMITS.md specification.