https://github.com/pokt-network/json-rpc-pocket
json-rpc-engine middleware for Pocket Network
https://github.com/pokt-network/json-rpc-pocket
infrastructure json-rpc-engine metamask nifty pocket pocket-network pokt pokt-network
Last synced: 3 months ago
JSON representation
json-rpc-engine middleware for Pocket Network
- Host: GitHub
- URL: https://github.com/pokt-network/json-rpc-pocket
- Owner: pokt-network
- License: mit
- Created: 2019-06-24T18:59:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:14:20.000Z (over 2 years ago)
- Last Synced: 2025-03-12T10:16:08.351Z (3 months ago)
- Topics: infrastructure, json-rpc-engine, metamask, nifty, pocket, pocket-network, pokt, pokt-network
- Language: JavaScript
- Size: 2.19 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Overview
[`json-rpc-engine`](https://github.com/MetaMask/json-rpc-engine) Middleware using Pocket Network to communicate with JSON RPC blockchain endpoints, mainly used in the [Metamask browser extension project.](https://github.com/MetaMask/metamask-extension)
Before you can start using the library, you have to get a Developer ID by registering for MVP. [To learn how to register please click here.](https://pocket-network.readme.io/docs/how-to-participate#section-for-developers)
Requirements
You should have at least have a basic knowledge of blockchain technology and know your way around Javascript. You will also need to install the [NPM tool.](https://www.npmjs.com/get-npm)
Installation
The `json-rpc-pocket` package is hosted in [NPM](https://npmjs.com), see below how to install it.
`npm install --save json-rpc-pocket`
Usage
In order to instatiate the middleware all you need is a `Developer ID` like in the example below:
```javascript
const createPocketMiddleware = require('json-rpc-pocket')
const pocketMiddleware = createPocketMiddleware(devID)
```Contact Us
We have created a Discord server where you can meet with the Pocket team and the rest of the community. [Click here to join!](https://discord.gg/sarhfXP)