Skip to content

AD2014/seta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stupid Ethereum Transactions APIs

WHAT

This is a stupid interface for make ethereum transaction.

Another way to say: etherscan webservices wrapped in a microservice API REST.

HOW

endpoint description
/ home (testing purpose)
/v1/transactions perform transactions
/v1/balances retrieve ETHER_ADDRESS_FROM and ETHER_ADDRESS_TO wallet's balance

CONFIG

ENV to be set:

var name description
NODE_ENV production/development, on development will make tx on ropsten network
NODE_PORT the service port (default 9000)
NODE_IP the expressjs server IP (default 0.0.0.0)
ETHER_ADDRESS_FROM the ethereum wallet FROM address
ETHER_ADDRESS_FROM_PK the wallet private key (for tx sign)
ETHER_ADDRESS_TO the ethereum wallet TO address
ETHERSCAN_TOKEN the etherscan token (don't you have one?)

USAGE

prepare the stuff:

# Clone the repo
git clone https://github.com/AD2014/seta.git
cd seta

# Configure env-file
cp config-sample.env config.env
vim config.env # edit with your values

then you can use the:

  • docker way
# BUILD
docker build -t ad2014/seta .

# RUN
docker run --env-file ./config.env -p 8080:9000 -d ad2014/seta

# TEST
curl -X GET localhost:8080/
  • development way
# Launch local service
export $(cat config.env | xargs) && node index.js

# TEST
curl -X GET localhost:9000/

Releases

No releases published

Packages

No packages published