Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 846 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 846 Bytes

Express Ethereum example API

Getting Started

# Install dependencies
npm install

# Start production server:
PORT=8080 npm start

Endpoints

  1. GET - http://localhost:8080/api/createWallet
  2. GET - http://localhost:8080/api/getBalance/<eth_address>
  3. POST - http://localhost:8080/api/transaction body =>
  {
    "amount": <eth_amount>,
    "privateKey": <account private key>,
    "destination": <destination account public key>
  }