Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pnp-eth

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pnp-eth

An Ethereum Plugin for the Pocket Node app.

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by900%
Maintainers
1
Weekly downloads
 
Created
Source

pnp-eth

An Ethereum Plugin for the Pocket Node app.

Install Plugin

To install the plugin, first install Pocket Node and then run the following command:

pocket-node install pnp-eth

Configuration

To configure your plugin run the following command:

pocket-node configure ETH /path/to/file.json

The following object describes the format of the JSON file you need to use to configure this plugin.

Notes:

  • Each key in the configuration object must be a valid subnetwork ID (1 for mainnet, 4 for rinkeby and so on).
  • The eth_node attribute must be a HTTP or HTTPS url.
  • The default value for eth_node is http://127.0.0.1:8545 and for eth_network_id is 5777
{
  "5777": {
    "eth_node": "http://127.0.0.1:8545",
    "eth_network_id": "5777"
  },
  "4": {
    "eth_node": "http://127.0.0.1:8546",
    "eth_network_id": "4"
  }
}

Submitting requests to a Pocket Node using this plugin

Before diving into the specifications on how to submit requests to the Ethereum network with this plugin, please review the Pocket Node Client Developer documentation found here.

Submitting transactions

Transactions must be signed with the account private key and submitted in the serialized_tx param of the /transactions endpoint. The tx_metadata param can be left blank.

Executing queries

To execute a query, please specify an object like the following as your query param in the request to the /queries endpoint of the Node:

Notes:

  • The rpc_method found below comes from the Ethereum JSON RPC Specification, please refer to it in order to craft your requests.
  • The rpc_method will accept any RPC method, except sendTransaction and sendRawTransaction
{
  rpc_method: 'eth_getBalance',
  rpc_params: [<array with params>]
}

FAQs

Package last updated on 20 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc