State: Working but need to fix batch sending issue.
Javascript client for Substrate.
Note: Ignore all other substrate-transaction-XXX projects ! Only the JS version of the client works fine.
- polkadot-api
- TODO
#first create car and factories identities
./bin/genAccounts.js 5000 10 #5000 cars and 10 factories
#init the identities in the blockchain
./bin/ws/init_v2.js
#this will add factory and cars public keys in the smart contract
#to start a benchmark give the total transaction limit and transaction per second
./bin/ws/send_v2.js 10000 100
#this will send 10k transactions at a 100tx/sec rate
- main scripts:
- send_v2.js
- init_v2.js
- sub process scripts:
- sender.js
- init_sender.js
Note: Ignore all other files !!!
docker run --rm -it --name polkadot-ui -e WS_URL=ws://substrate-ws.unice.cust.tasfrance.com -p 80:80 jacogr/polkadot-js-apps:latest