Currently, our whole infrasture is constituted by mainly 1 frontend service, 2 backend service.
The core backend service received data from frontend(mobile app and web app) via API then saved in MySQL transaction information and sent transaction to Aura Network.
The sync service keep track all transaction has broadcasted by Aura Network. If this app is crashed and restarted, program would get current latest block synced in database for each address and latest block in Aura network, then use REST API (Cosmjs) to get all transaction which not synced yet.
Multisignature backend aims to keep track transactions from frontend to Aura Network.
Transactions can also be sent to the service to allow offchain collecting of signatures or informing the owners about a transaction that is pending to be sent to the blockchain.
When collecting of signatures enough to threshold, transactions able to sent to Aura Network.
Click here to see the design architecture.
git clone https://github.com/aura-nw/multisig-api
cd multisig-api
cp .env.example .env
4. Install dependencies. (Make sure nodejs is installed: https://nodejs.org/en/)
npm i
Multisignature backend use MySQL and Nodejs. Make sure installed them.
# development
$ npm run start
# watch mode
$ npm run start:dev