{"_id":"ethjs-schema","_rev":"4605751","name":"ethjs-schema","description":"A complete Ethereum RPC specification as a JSON object export.","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"silentcicero","email":""}],"time":{"modified":"2026-04-10T17:37:14.000Z","created":"2016-12-07T03:42:37.269Z","0.2.1":"2018-04-10T16:51:58.297Z","0.2.0":"2018-01-14T22:18:12.582Z","0.1.9":"2017-10-30T23:47:29.163Z","0.1.6":"2017-10-30T22:19:23.461Z","0.1.5":"2017-03-16T22:43:17.841Z","0.1.4":"2016-12-11T18:32:39.043Z","0.1.3":"2016-12-10T20:31:51.246Z","0.1.2":"2016-12-10T20:21:29.604Z","0.1.0":"2016-12-07T03:42:37.269Z"},"users":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"versions":{"0.2.1":{"name":"ethjs-schema","version":"0.2.1","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"75e3068a35b013583d388271672e4ea4a215bdc8","_id":"ethjs-schema@0.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"47e138920421453617069034684642e26bb310f4","size":5383,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.2.1.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethjs-schema_0.2.1_1523379118229_0.5399638939515126"},"_hasShrinkwrap":false,"publish_time":1523379118297,"_cnpm_publish_time":1523379118297,"_cnpmcore_publish_time":"2021-12-16T20:59:15.489Z"},"0.2.0":{"name":"ethjs-schema","version":"0.2.0","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"b98b6e47ba8a5833ff6fbd0bc639841e62c303ca","_id":"ethjs-schema@0.2.0","_shasum":"07b46d4f55b792a846c90a79f330d31d112cca38","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"07b46d4f55b792a846c90a79f330d31d112cca38","size":5355,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.2.0.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethjs-schema-0.2.0.tgz_1515968292439_0.2478465128224343"},"directories":{},"publish_time":1515968292582,"_hasShrinkwrap":false,"_cnpm_publish_time":1515968292582,"_cnpmcore_publish_time":"2021-12-16T20:59:15.717Z"},"0.1.9":{"name":"ethjs-schema","version":"0.1.9","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"b98b6e47ba8a5833ff6fbd0bc639841e62c303ca","_id":"ethjs-schema@0.1.9","_shasum":"858c2a5da706ae04812b4ce8b1eb4b4921e33092","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"858c2a5da706ae04812b4ce8b1eb4b4921e33092","size":5346,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.1.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.1.9.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethjs-schema-0.1.9.tgz_1509407247725_0.16814701561816037"},"directories":{},"publish_time":1509407249163,"_hasShrinkwrap":false,"_cnpm_publish_time":1509407249163,"_cnpmcore_publish_time":"2021-12-16T20:59:16.044Z"},"0.1.6":{"name":"ethjs-schema","version":"0.1.6","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"999d25e648a3d0c9960bc33f9a491c103bad7853","_id":"ethjs-schema@0.1.6","_shasum":"092c0e682ff073cf22e397602f2636bc7ec73549","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"092c0e682ff073cf22e397602f2636bc7ec73549","size":5359,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.1.6.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ethjs-schema-0.1.6.tgz_1509401962536_0.7742372129578143"},"directories":{},"publish_time":1509401963461,"_hasShrinkwrap":false,"_cnpm_publish_time":1509401963461,"_cnpmcore_publish_time":"2021-12-16T20:59:16.328Z"},"0.1.5":{"name":"ethjs-schema","version":"0.1.5","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"818ed3f2a8cca1e9a445d26cd67ef3f05405e94f","_id":"ethjs-schema@0.1.5","_shasum":"59740e3b3977bcdbb9b11bc3068201e8aceabb0d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"59740e3b3977bcdbb9b11bc3068201e8aceabb0d","size":5325,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.1.5.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/ethjs-schema-0.1.5.tgz_1489704197198_0.4637630495708436"},"directories":{},"publish_time":1489704197841,"_hasShrinkwrap":false,"_cnpm_publish_time":1489704197841,"_cnpmcore_publish_time":"2021-12-16T20:59:16.545Z"},"0.1.4":{"name":"ethjs-schema","version":"0.1.4","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"7bc79f69ab5a29d081b4559f8ffb15e636f059c2","_id":"ethjs-schema@0.1.4","_shasum":"0323a16333b1ace9a8f1d696a6ee63448fdd455f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"0323a16333b1ace9a8f1d696a6ee63448fdd455f","size":5264,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.1.4.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/ethjs-schema-0.1.4.tgz_1481481157061_0.20063496008515358"},"directories":{},"publish_time":1481481159043,"_hasShrinkwrap":false,"_cnpm_publish_time":1481481159043,"_cnpmcore_publish_time":"2021-12-16T20:59:16.746Z"},"0.1.3":{"name":"ethjs-schema","version":"0.1.3","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"faa90ddd91eb8d1ef745982ade61013d2c502a56","_id":"ethjs-schema@0.1.3","_shasum":"bf9d41523fe7bd73580328234bec763b7b8dc75e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"bf9d41523fe7bd73580328234bec763b7b8dc75e","size":5229,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.1.3.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/ethjs-schema-0.1.3.tgz_1481401909274_0.28944856859743595"},"directories":{},"publish_time":1481401911246,"_hasShrinkwrap":false,"_cnpm_publish_time":1481401911246,"_cnpmcore_publish_time":"2021-12-16T20:59:17.002Z"},"0.1.2":{"name":"ethjs-schema","version":"0.1.2","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"dbceed1a24863252323787f27fb448000185329e","_id":"ethjs-schema@0.1.2","_shasum":"7e43547fc181f44b87507aa0597536a3e2fa3572","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"7e43547fc181f44b87507aa0597536a3e2fa3572","size":5236,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.1.2.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ethjs-schema-0.1.2.tgz_1481401289373_0.12384727061726153"},"directories":{},"publish_time":1481401289604,"_hasShrinkwrap":false,"_cnpm_publish_time":1481401289604,"_cnpmcore_publish_time":"2021-12-16T20:59:17.175Z"},"0.1.0":{"name":"ethjs-schema","version":"0.1.0","description":"A complete Ethereum RPC specification as a JSON object export.","main":"src/schema.json","browser":"dist/ethjs-schema.json","files":["dist","src"],"scripts":{},"repository":{"type":"git","url":"git+ssh://git@github.com/ethjs/ethjs-schema.git"},"keywords":["ethereum","json","rpc","specification","complete"],"authors":["Nick Dodson <nick.dodson@consensys.net>"],"license":"MIT","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"homepage":"https://github.com/ethjs/ethjs-schema#readme","gitHead":"dbceed1a24863252323787f27fb448000185329e","_id":"ethjs-schema@0.1.0","_shasum":"a34bc224df5971f6d2d95352d922f78255eacc2a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"silentcicero","email":"thenickdodson@gmail.com"},"dist":{"shasum":"a34bc224df5971f6d2d95352d922f78255eacc2a","size":4284,"noattachment":false,"key":"/ethjs-schema/-/ethjs-schema-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ethjs-schema/download/ethjs-schema-0.1.0.tgz"},"maintainers":[{"name":"silentcicero","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ethjs-schema-0.1.0.tgz_1481082155202_0.317271560896188"},"directories":{},"publish_time":1481082157269,"_hasShrinkwrap":false,"_cnpm_publish_time":1481082157269,"_cnpmcore_publish_time":"2021-12-16T20:59:17.571Z"}},"readme":"## ethjs-schema\n\n<div>\n  <!-- Dependency Status -->\n  <a href=\"https://david-dm.org/ethjs/ethjs-schema\">\n    <img src=\"https://david-dm.org/ethjs/ethjs-schema.svg\"\n    alt=\"Dependency Status\" />\n  </a>\n\n  <!-- devDependency Status -->\n  <a href=\"https://david-dm.org/ethjs/ethjs-schema#info=devDependencies\">\n    <img src=\"https://david-dm.org/ethjs/ethjs-schema/dev-status.svg\" alt=\"devDependency Status\" />\n  </a>\n\n  <!-- NPM Version -->\n  <a href=\"https://www.npmjs.org/package/ethjs-schema\">\n    <img src=\"http://img.shields.io/npm/v/ethjs-schema.svg\"\n    alt=\"NPM version\" />\n  </a>\n\n  <!-- Javascript Style -->\n  <a href=\"http://airbnb.io/javascript/\">\n    <img src=\"https://img.shields.io/badge/code%20style-airbnb-brightgreen.svg\" alt=\"js-airbnb-style\" />\n  </a>\n</div>\n\n<br />\n\nThe complete Ethereum RPC specification as a JSON object export.\n\n## Install\n\n```\nnpm install --save ethjs-schema\n```\n\n## Usage\n\n```js\nconst schema = require('ethjs-schema');\n\nconsole.log(schema.tags);\n\n// result ['latest', 'earliest', ...]\n```\n\n## About\n\nThis is a pure JSON export of the Ethereum RPC specification. This can be, and is being used to generate the `ethjs-query` object. This object specification is not standardized, it is the leanest data structure implementation I could come up with for the Ethereum RPC spec.\n\nThe entire spec is contained in the [schema.json](src/schema.json) file.\n\n## Specification Details\n\n### Method Specification:\n\n  ```\n  methods: {\n    <method name : [ input(s), output(s), minimum required outputs, 'latest' tag default position (if any) ] >,\n  }\n  ```\n\n  example:\n\n  ```\n  {\n    methods: {\n      \"eth_getBalance\": [[\"D20\", \"Q|T\"], \"Q\", 1, 2],\n      ...\n    },\n    ...\n  }\n  ```\n\n### Primitives:\n\n  - \"D\" : bytes data\n  - \"D20\" : bytes data, length 20\n  - \"D32\" : bytes data, length 32\n  - \"B\" : boolean true or false\n  - \"S\" : string data\n  - \"Array|DATA\" : either an array of DATA or a single bytes DATA\n  - \"Q\" : a number quantity\n  - \"QP\" : a number quantity (with frontal padding for single digit numbers)\n  - \"Q|T\" : a number quantity or a tag (e.g. 'latest', 'earliest' ...)\n\nNote, post version 0.1.1 value primitives have been compressed.\n\n### Tags:\n\n  ```\n  {\n    \"tags\": [\"latest\", \"earliest\", \"pending\"],\n  }\n  ```\n\n### Complex Data Structures (.objects):\n\nThe `__required` property is added to specify which properties of the object must be fulfilled in order to be a valid object structure (ready for payload transmission).\n\n  - \"EthSyncing\"\n  - \"SendTransaction\"\n  - \"EstimateTransaction\"\n  - \"CallTransaction\"\n  - \"Block\"\n  - \"Transaction\"\n  - \"Receipt\"\n  - \"Filter\"\n  - \"FilterChange\"\n  - \"SHHPost\"\n  - 'SHHFilter'\n  - \"SHHFilterChange\"\n  - \"SHHMessage\"\n\n  example:\n\n  ```\n  {\n    \"objects\": {\n      \"SendTransaction\": {\n        \"__required\": [\"from\", \"data\"],\n        \"from\": \"D20\",\n        \"to\": \"D20\",\n        \"gas\": \"Q\",\n        \"gasPrice\": \"Q\",\n        \"value\": \"Q\",\n        \"data\": \"D\",\n        \"nonce\": \"Q\"\n      },\n      ...\n    }\n    ...\n  }\n  ```\n\n## Contributing\n\nPlease help better the ecosystem by submitting issues and pull requests to default. We need all the help we can get to build the absolute best linting standards and utilities. We follow the AirBNB linting standard and the unix philosophy.\n\n## Guides\n\nPlease see the Ethereum RPC specification hosted on their github:\n\nhttps://github.com/ethereum/wiki/wiki/JSON-RPC\n\n## Help out\n\nThere is always a lot of work to do, and will have many rules to maintain. So please help out in any way that you can:\n\n- Create, enhance, and debug ethjs rules (see our guide to [\"Working on rules\"](./github/CONTRIBUTING.md)).\n- Improve documentation.\n- Chime in on any open issue or pull request.\n- Open new issues about your ideas for making `ethjs-schema` better, and pull requests to show us how your idea works.\n- Add new tests to *absolutely anything*.\n- Spread the word.\n\nPlease consult our [Code of Conduct](CODE_OF_CONDUCT.md) docs before helping out.\n\nWe communicate via [issues](https://github.com/ethjs/ethjs-schema/issues) and [pull requests](https://github.com/ethjs/ethjs-schema/pulls).\n\n## Important documents\n\n- [Changelog](CHANGELOG.md)\n- [Code of Conduct](CODE_OF_CONDUCT.md)\n- [License](https://raw.githubusercontent.com/ethjs/ethjs-schema/master/LICENSE)\n\n## Licence\n\nThis project is licensed under the MIT license, Copyright (c) 2016 Nick Dodson. For more information see LICENSE.md.\n\n```\nThe MIT License\n\nCopyright (c) 2016 Nick Dodson. nickdodson.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","_attachments":{},"homepage":"https://github.com/ethjs/ethjs-schema#readme","bugs":{"url":"https://github.com/ethjs/ethjs-schema/issues"},"license":"MIT"}