Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.36 KB

README.md

File metadata and controls

65 lines (40 loc) · 1.36 KB

contracts-api

Node.js CI

Summary

The goal of this API was to bring modularity to the existing codebase and improve scalability between contracts, @kimanikelly/core-contracts, and future projects by returning the addresses, ABI, and Bytecode of the Smart Contracts.

Heroku Hosted API

https://smart-contracts-api-node.herokuapp.com/

Installation

https://github.com/kimanikelly/contracts-api.git

Install Dependencies

npm i

Testing

Open one terminal and run the command

npm start

to start the local Express server on port 3001.

Open another terminal and run the command

npm test

to begin the unit tests for http://localhost:3001/token and http://localhost:3001/ttBank .

Endpoints

Returns the Address, ABI, and Bytecode of Token.sol as a JSON

/token

Returns the Address, ABI, and Bytecode of TTBank.sol as a JSON

/ttBank

Examples