All Projects → ethjs → ethjs-rpc

ethjs / ethjs-rpc

Licence: MIT License
A super simple module for making low level queries to the Ethereum RPC layer.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ethjs-rpc

sqrs
🚌SQRS is a JavaScript library for implementing CQRS pattern.
Stars: ✭ 23 (+64.29%)
Mutual labels:  query
rpc
自己编写的rpc调用框架,配置简单,使用更简单,如果您感觉有用请点赞,纯个人手写
Stars: ✭ 29 (+107.14%)
Mutual labels:  rpc
linqjs
use linq and lambda in javascript on es6, can use linq function in an Object or an Array or a String value | 一个方便对数组、字典、树形数据进行操作、筛选等操作的工具库
Stars: ✭ 17 (+21.43%)
Mutual labels:  query
filecoin-client
Golang的轻量级filecoin客户端,支持离线签名,基本满足钱包交易所充值提现逻辑
Stars: ✭ 50 (+257.14%)
Mutual labels:  rpc
TIL
Today I Learned
Stars: ✭ 43 (+207.14%)
Mutual labels:  query
seeed-ambd-firmware
This RTL8720DN firmware export a RPC server interface through hardware SPI/UART port to MCU.
Stars: ✭ 20 (+42.86%)
Mutual labels:  rpc
go-hpc
HTTP RPC codec for Gorilla RPC v2.
Stars: ✭ 29 (+107.14%)
Mutual labels:  rpc
fastener
Functional Zipper for manipulating JSON
Stars: ✭ 54 (+285.71%)
Mutual labels:  query
jellex
TUI to filter JSON and JSON Lines data with Python syntax
Stars: ✭ 41 (+192.86%)
Mutual labels:  query
Query-Tool
The QueryTool is a library that allows easier and faster connections with Postgres databases. Whit it, you can make insertions, selections, updates and deletions in the database in a simple and effective way.
Stars: ✭ 28 (+100%)
Mutual labels:  query
active-persistence
Active Persistence is a implementation of Active Record Query Interface for JPA that makes it easy and fun.
Stars: ✭ 14 (+0%)
Mutual labels:  query
mctools
Minecraft Connection Tools - Python implementations of common Minecraft protocols.
Stars: ✭ 27 (+92.86%)
Mutual labels:  query
nerve-rpc
Nim RPC framework
Stars: ✭ 32 (+128.57%)
Mutual labels:  rpc
go-query
⚡ Blazingly fast query engine
Stars: ✭ 16 (+14.29%)
Mutual labels:  query
Minecraft-Server-Status
✅一个用于显示服务器在线信息及其他内容的网站
Stars: ✭ 22 (+57.14%)
Mutual labels:  query
flame-explain
A PostgreSQL EXPLAIN ANALYZE visualizer with advanced quirk correction algorithms.
Stars: ✭ 30 (+114.29%)
Mutual labels:  query
simpleRPC
Simple RPC implementation for Arduino.
Stars: ✭ 28 (+100%)
Mutual labels:  rpc
URLQueryItemEncoder
A Swift Encoder for encoding any Encodable value into an array of URLQueryItem.
Stars: ✭ 60 (+328.57%)
Mutual labels:  query
searchable
Pattern-matching search and reusable queries in laravel.
Stars: ✭ 28 (+100%)
Mutual labels:  query
netty-learning
bio, nio到 netty各种使用案例, 包含基础使用案例,各api使用方法,零拷贝,websocket,群聊,私聊,编码,解码,自定义协议,protobuf等使用案例,rpc服务器,客户端等等学习
Stars: ✭ 49 (+250%)
Mutual labels:  rpc

ethjs-rpc


A super simple module for querying the Ethereum RPC layer without formatting.

This module was influenced by: eth-query.

Install

npm install --save ethjs-rpc

Usage

const HttpProvider = require('ethjs-provider-http');
const EthRPC = require('ethjs-rpc');
const eth = new EthRPC(new HttpProvider('http://localhost:8545'));

// accounts
eth.sendAsync({ method: 'eth_accounts' }, (err, accounts1) => {
  // null ['0x...', '0x....']
});

// gasPrice
eth.sendAsync({ method: 'eth_gasPrice' }, (err, gasPrice) => {
  // null '0xe83922'
});

// getBalance
eth.sendAsync({
  method: 'eth_getBalance',
  params: ['0x5c517fffeacc03caaa8f0aa5722168b9ab3fb7a1', 'latest'],
}, (err, gasPrice) => {
  // null '0x5483de922'
});

About

This simple module allows you to query the Ethereum RPC layer at a very low level. You must specify your data payload method and params, if any. The module will handle payload RPC ids.

Contributing

Please help better the ecosystem by submitting issues and pull requests to ethjs-rpc. 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.

Guides

You'll find more detailed information on using ethjs-rpc and tailoring it to your needs in our guides:

  • User guide - Usage, configuration, FAQ and complementary tools.
  • Developer guide - Contributing to ethjs-rpc and writing your own code and coverage.

Help out

There 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:

  • Create, enhance, and debug ethjs rules (see our guide to "Working on rules").
  • Improve documentation.
  • Chime in on any open issue or pull request.
  • Open new issues about your ideas for making ethjs-rpc better, and pull requests to show us how your idea works.
  • Add new tests to absolutely anything.
  • Create or contribute to ecosystem tools, like modules for encoding or contracts.
  • Spread the word.

Please consult our Code of Conduct docs before helping out.

We communicate via issues and pull requests.

Important documents

Licence

This project is licensed under the MIT license, Copyright (c) 2016 Nick Dodson. For more information see LICENSE.md.

The MIT License

Copyright (c) 2016 Nick Dodson. nickdodson.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].