This repository contains the OpenRPC specification for MetaMask's Wallet JSON-RPC API. You can view the specs in the following formats:
OpenRPC is way to specify JSON-RPC APIs that is versionable, human-readable, and machine-readable. It improves the accuracy of documentation, APIs, and clients.
You can contribute to the API specs using the following steps.
Note: These steps are for updating the API specs. To make a significant change to the API itself, please submit a MetaMask Improvement Proposal (MIP).
openrpc.yaml
file.
See the OpenRPC docs for more information on how to format the specs.yarn install
if you haven't previously set up the repository.yarn run build
to re-generate the output file: dist/build/openrpc.json
.For information about publishing changes to the interactive API reference in the MetaMask developer docs, see the docs contribution guidelines.
When you build the project, the following happens:
openrpc.yaml
are loaded from the local file system.src/build/openrpc.json
src/build/multichain-openrpc.json
dist
folder and the src/build
contents are deleted.On release, the specs are published to npm at @metamask/api-specs
and to
GitHub Pages.
For information about publishing to the interactive API reference in the MetaMask developer docs, see the docs contribution guidelines.