New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/api-specs

Package Overview
Dependencies
Maintainers
11
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/api-specs

API Playground: https://metamask.github.io/api-playground/api-documentation API Reference Docs: https://docs.metamask.io/wallet/reference/json-rpc-api/

0.10.8
Source
npm
Version published
Weekly downloads
2.5K
89.37%
Maintainers
11
Weekly downloads
 
Created
Source

MetaMask API Specs

API Playground: https://metamask.github.io/api-playground/api-documentation API Reference Docs: https://docs.metamask.io/wallet/reference/json-rpc-api/

Latest build: https://metamask.github.io/api-specs/latest/openrpc.json

JSON-RPC API provided by MetaMask.

MetaMask dapp developers lack a formal RPC specification. This attempts to document which methods MetaMask supports in a way that's versionable, human-readable and machine-readable. It will improve the accuracy of documentation, API, and clients.

MetaMasks effectiveness as an enterprise-grade application platform depends on its ability to provide a reliable and predictable developer experience.

Contributing

Edit the openrpc.yaml file.

You can then run yarn run build to generate the output file again.

To test the result, you can paste the resulting file from dist/build/openrpc.json into the OpenRPC playground and view the result.

Build Process

  • filter out methods that are not supported/implemented by metamask
  • merge wallet methods with execution api methods
  • output to build

Deploy

  • On release uploads to npm at @metamask/api-specs
  • On release uploads to github pages at https://metamask.github.io/api-specs/latest/metamask-openrpc.json

FAQs

Package last updated on 30 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts