{"repo":"MetaMask/rpc-errors","free":true,"listed":false,"github":"https://github.com/MetaMask/rpc-errors","clone":"git clone https://github.com/MetaMask/rpc-errors.git","description":"Ethereum RPC Errors","language":"TypeScript","stars":172,"topics":["ethereum","json-rpc","utility","errors"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"@metamask/rpc-errors JSON-RPC errors, including for Ethereum JSON RPC and Ethereum Provider, and making unknown errors compliant with either spec. Installation yarn add @metamask/rpc-errors or npm install @metamask/rpc-errors Usage Supported Errors - Generic JSON RPC 2.0 errors - Per JSON RPC 2.0 spec - Ethereum JSON RPC - Per EIP-1474 - Ethereum Provider errors - Per EIP-1193 - Does not yet support CloseEvent errors or status codes. API Parsing Unknown Errors Other Exports Contributing Setup - Install Node.js version 18 - If you are using nvm (recommended) running nvm use will automatically choose the right node version for you. - Install Yarn v3 - Run yarn install to install dependencies and run any required post-install scripts Testing and Linting Run yarn test to run the tests once. To run tests on file changes, run yarn test:watch . Run yarn lint to run the linter, or run yarn lint:fix to run the linter and fix any automatically fixable issues. Release & Publishing The project follows the same release process as the other libraries in the MetaMask organization. The GitHub Actions action-create-release-pr and action-publish-release are used to automate the release process; see those repositories for more information about how they work. 1. Choose a release version. - The release version should be chosen according to SemVer. Analyze the changes to see whether they include any breaking changes, new features, or deprecations, then choose the appropriate SemVer version. See t","default_branch":null,"files":null,"tree":[],"storefront":"/r/MetaMask","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MetaMask/rpc-errors/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}