Git Product home page Git Product logo

ethers-server's Introduction

ethers-server

Exposes an Ethereum node (via RPC or IPC) via WebSockets for efficient communications using the ethers-web3 package.

Features

  • Light-weight WebSockets (so no polling is requried)
  • Secure (wss://) or insecure (ws://) connections supported

Installing

npm install ethers-server

Command Line Interface

/Users/ethers> node server.js --help

Command Line Interface - ethers.io/0.0.1

Usage:
    node server.js [--help] [--version] [--debug] [--pid-file PATH]
                [--port PORT] [--rpc URL] [--contract-config PATH]
                [--certificate CERT --private-key KEY
                   [ --intermediate-certificate CERT ] ... ]

        --help               show this help screen
        --version            show the software version
        --debug              enable debug options
        --pid-file PATH      path to store PID file

Service Options
        --rpc URL            url to ethereum rpc service
        --contract-config PATH
                             config JSON for contract storage

HTTP Options
        --port PORT          port to bind the server to (default: 5000)

HTTPS Options
        --certificate CERT   SSL certificate (PEM format)
        --private-key KEY    SSL private key (PEM format)
        --intermediate-certificate CERT
                             SSL intermediate certificate(s) (PEM format)

Notes:

  • You can specify as many --intermediate-certificate options as you require.
  • The --rpc URL options can accept either an IPC URL (e.g. ipc:/User/ethers/Library/Ethereum/geth.ipc) or HTTP URL (e.g. http://localhost:8545).

License

The ethers library is released under the MIT License.

The web3 library is available under the LGPL-3.0 license. This should not affect you unless you modify the source of the embedded web3, in which case those (and only those) changes are swept into the LGPL-3.0 license.

ethers-server's People

Contributors

ricmoo 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.