# @metamask/api-specs

> This repository contains the OpenRPC specification for MetaMask's Wallet JSON-RPC API. You can view the specs in the following formats:

Latest version **0.15.0** (published 2026-06-10) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @metamask/api-specs
pnpm add @metamask/api-specs
yarn add @metamask/api-specs
bun add @metamask/api-specs
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.15.0 |
| Published | 2026-06-10 |
| First published | 2021-04-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | ^18.20 \|\| ^20.17 \|\| >=22 |
| Dependencies | 0 |
| Unpacked size | 319 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 41 |
| Maintainers | kumavis, metamaskbot, gudahtt, mrten, mcmire, naugtur |

## Links

- npm: https://www.npmjs.com/package/@metamask/api-specs
- Repository: https://github.com/MetaMask/api-specs
- Homepage: https://metamask.github.io/api-specs/
- Issues: https://github.com/MetaMask/api-specs/issues
- npm.io page: https://npm.io/package/@metamask/api-specs

## Recent versions

- 0.15.0 (latest) — 2026-06-10
- 0.14.0 — 2025-05-06
- 0.13.0 — 2025-04-03
- 0.12.0 — 2025-03-19
- 0.11.0 — 2025-03-03
- 0.10.17 — 2025-02-24
- 0.10.16 — 2025-02-18
- 0.10.15 — 2025-02-07
- 0.10.14 — 2025-02-06
- 0.10.13 — 2024-11-13
- 0.10.12 — 2024-10-02
- 0.10.11 — 2024-09-18
- 0.10.10 — 2024-09-06
- 0.10.9 — 2024-09-04
- 0.10.8 — 2024-08-30
- … 15 more at https://npm.io/package/@metamask/api-specs/versions

## README

# MetaMask Wallet API specification

This repository contains the OpenRPC specification for MetaMask's Wallet JSON-RPC API.
You can view the specs in the following formats:

- [MetaMask developer docs interactive API reference](https://docs.metamask.io/wallet/reference/json-rpc-api/)
- [OpenRPC playground](https://metamask.github.io/api-playground/api-documentation)
- [Latest build](https://metamask.github.io/api-specs/latest/openrpc.json)

[OpenRPC](https://open-rpc.org/) is way to specify JSON-RPC APIs that is versionable,
human-readable, and machine-readable.
It improves the accuracy of documentation, APIs, and clients.

## Contribute

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)](https://github.com/MetaMask/metamask-improvement-proposals/tree/main).

1. Edit the API specs in the `openrpc.yaml` file.
   See the [OpenRPC](https://open-rpc.org/) docs for more information on how to format the specs.
2. Run `yarn install` if you haven't previously set up the repository.
3. Run `yarn run build` to re-generate the output file: `dist/build/openrpc.json`.
4. To view the result, paste that file's contents into the
   [OpenRPC playground](https://playground.open-rpc.org/).

For information about publishing changes to the interactive API reference in the MetaMask developer
docs, see the
[docs contribution guidelines](https://github.com/MetaMask/metamask-docs/blob/main/CONTRIBUTING.md#update-the-interactive-api-reference).

## Build process

When you build the project, the following happens:

1. The MetaMask-specific API specs `openrpc.yaml` are loaded from the local file system.
2. The [Ethereum Execution API specs](https://github.com/ethereum/execution-apis) are
   fetched from a remote URL and methods not supported/implemented by MetaMask are filtered out.
3. The local MetaMask specs are merged with the Ethereum specs.
4. Each Ethereum method is tagged with the "Ethereum API" tag.
5. The merged and filtered specs are written out to temporary files:
	 - `src/build/openrpc.json`
	 - `src/build/multichain-openrpc.json`
6. These files are output to the `dist` folder and the `src/build` contents are deleted.

## Publishing process

On release, the specs are published to npm at `@metamask/api-specs` and to
[GitHub Pages](https://metamask.github.io/api-specs/latest/metamask-openrpc.json).

For information about publishing to the interactive API reference in the MetaMask developer docs,
see the
[docs contribution guidelines](https://github.com/MetaMask/metamask-docs/blob/main/CONTRIBUTING.md#update-the-interactive-api-reference).

---
_Source: https://npm.io/package/@metamask/api-specs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
