Skip to content
Permalink
Browse files

add readme

  • Loading branch information...
thanhson1085 committed Jun 13, 2019
1 parent 4fa71c4 commit a76f66dc36d21aef9e360a8c7afc11a9a4bfda0b
Showing with 22 additions and 1 deletion.
  1. +21 −0 README.md
  2. +1 −1 commands/sendTomo.js
@@ -0,0 +1,21 @@
## Installation
```
npm install
```

Update config file:
```
cp ./config/default.json ./config/local.json
// edit local.json file
```

## Run

Make a lot TXs to send TOMO:
```
node cmd.js sendTomo -n 10 your_private_key
```

- `-n`: number of TXs
- `your_private_key`: the wallet, make sure you have some TOMO in the wallet to make TXs

@@ -6,7 +6,7 @@ let sleep = (time) => new Promise((resolve) => setTimeout(resolve, time))
var nonce = 0

async function run (pkey, number) {
const account = web3Rpc.eth.accounts.privateKeyToAccount(pkey)
const account = web3Rpc.eth.accounts.privateKeyToAccount('0x' + pkey)
let coinbase = account.address
web3Rpc.eth.accounts.wallet.add(account)
web3Rpc.eth.defaultAccount = coinbase

0 comments on commit a76f66d

Please sign in to comment.
You can’t perform that action at this time.