Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhson1085 committed Jun 13, 2019
1 parent 4fa71c4 commit a76f66d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions README.md
@@ -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

2 changes: 1 addition & 1 deletion commands/sendTomo.js
Expand Up @@ -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
Expand Down

0 comments on commit a76f66d

Please sign in to comment.