An open API service indexing awesome lists of open source software.

https://github.com/mineme0812/bch-batch-transaction-generator

Bitcoin cash batch transactions generator with big sizes for stress testing on BCH network!
https://github.com/mineme0812/bch-batch-transaction-generator

bch bch-pool bitcoin-cash cryptocurrency generating-transactions nodejs stress-testing tps typescript wallets

Last synced: 3 months ago
JSON representation

Bitcoin cash batch transactions generator with big sizes for stress testing on BCH network!

Awesome Lists containing this project

README

        

![TypeScript](https://img.shields.io/badge/-typescript@v32-brightgreen)
![Node.js](https://img.shields.io/badge/-nodejs-blue)

# BCH Transaction generator

## Quick start

This project is intended to be used with the latest Active LTS release of [Node.js][nodejs]. To start, just install and run with following commands:

```sh
npm install
node build/src/start.js
```

## Available arguments

+ `receiveAddr` - receive cash address. default: `bchtest:qqahjy0x9zus2qypf0tfd7mykpvxqtc6rqfft0sgjy`

You can set parameter with env var or command line arguments.
e.g. `node build/src/start.js --receiveAddr=xxxx`

## Description

### TPS
Due to limit of [Bitbox API](https://developer.bitcoin.com/bitbox/), maximum TPS is 1.
We can't generate more than 60 transactions per a minute.

### Wallets

This script is generating transactions from 3 wallets pre-stored in [`wallets/wallets.json`](./wallets/wallets.json)

Every wallet has approx 0.1 tBCH. Its enough to run the scripts for a while since every operation send between 500~1000 satoshis randomly.

You can generate your own wallet by following command

```sh
node build/src/_generate-wallet.ts
```

But becareful, it will overwrite existing wallets file, eventually will lose all tBCHs.

### Reports

Every generated transaction ids will be stored in `/reports` directory