Git Product home page Git Product logo

fetch-and-compile-server's Introduction

Eth Tx Project Info Server

A simple node.js server for retrieving truffle-style ProjectInfo for a given Ethereum contract.

  • Fetches contract data from etherscan (if verified)
  • Can easily be extended to support Sourcify later (for decentralization)
  • Handles fetching solidity compilers, and caches them locally
  • Operates deterministically, so can be parallelized and placed behind a load balancer for serving at scale.

Can be used to represent complex tx parameters, even nested structs.

Usage

yarn to install dependencies.

Make sure your system has Docker installed.

Copy the sample.env file to .env, and fill in an infura URL, etherscan key, and desired port to serve on, to use as a server.

To host as a server, run yarn start.

The server accepts requests at /tx, with query parameters from, to, and data (per ethereum transaction fields).

To improve performance by pre-fetching solidity compilers, you can run yarn obtain.

Testing

yarn test

fetch-and-compile-server's People

Contributors

danfinlay avatar gnidan avatar

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.