Git Product home page Git Product logo

foundry-rpc-js's Introduction

Foundry RPC JS Build Status

Foundry RPC JS is a JavaScript library that calls RPC to a Foundry node.

How to install

If you are using NPM, use the command below:

npm install foundry-rpc --save

If you prefer Yarn, use the command below:

yarn add foundry-rpc

Example

const RPC = require("foundry-rpc").default;

async function main() {
  const rpc = new RPC("http://localhost:8080");

  const blockNumber = await rpc.chain.getBestBlockNumber();
  console.log(`Current best block number: ${blockNumber}`);
}

main().catch(console.error);

RPC list

You can find the RPC list in this link.

foundry-rpc-js's People

Contributors

hoongee avatar junha1 avatar kseo avatar majecty avatar msntcs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

foundry-rpc-js's Issues

Reflect changes in foundry-rpc-js on its e2e tests

foundry-rpc-js was created from codechian-rpc-js, and has newly added functions and changed types. However, the changes were not reflected on the e2e tests, so it's not working. We need to reflect the changes onto e2e tests in foundry-rpc-js.

Change Block type

Based on new changes in block header in foundry. We need to change Block type in foundry-rpc-js.

Add the e2e tests to the Travis CI

Each time, after checking if Foundry works well, we've determined that the foundry-rpc-js works well too. We are using an inefficient method, as in the following case.

  1. Change some logic on foundry-rpc-js
  2. Push it onto the individual github repository
  3. Modify dependencies of pacakage.json in the foundry
  4. Run the e2e tests of the foundry.
  5. If the tests work well, we judge that the changes of foundry-rpc-js work well too.

After the PR #21 is done, to enable the test to operate automatically, we should add the tests in foundry-rpc-js to he Travis CI.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.