1.0.0 • Published 4 months ago

dms-store-purchase-server v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Rollup Server

A server that receives transactions and then stores it in a blockchain

Installation

git clone https://github.com/bosagora/rollup-server.git
cd rollup-server
npm install
cp env/.env.sample env/.env

Run

Running on mainnet

npm run start:mainnet

Running on testnet

npm run start:testnet

Testing

npx hardhat compile
npx hardhat test

Run Test Client for Testing

$ cp env/.env.client.sample env/.env.client
$ npm run start:client

API User's Guide

The following endpoints are provided:

  • /tx/record - Endpoint entering the transaction
  • /tx/sequence - Endpoint requesting the sequence of the last transaction received

Refer to the API User's Guide for more information