To run this project, install it locally using npm:
Set the following arguments:
- -p 'private keys'
- -w ' 'The time to wait for a new provide' (optional)
- -m ' 'The time to wait to gather market data' (optional)
$ npm install
$ node index.js -p <pk> -w <wait> -m <waitMarket>
To run this project, install it locally using npm:
Set the following arguments:
- -f 'private key'
- -w ' 'The time to wait for a new provide' (optional)
- -m ' 'The time to wait to gather market data' (optional)
$ npm install
$ node index.js -p <pk> -w <wait> -m <waitMarket>
You need to have docker and docker-compose previously installed:
Create a .env file with key-value pairs as follow:
- PRIVATE_KEY=<private_key>
- WAIT_TIME=<wait_time>
- WAIT_MARKET=<wait_market>
$docker-compose up
You need to have geth (go-ethereum) previously installed to import account from private key and generate keystore-file.
Steps:
- Create a file with the private key in hex such as 0x126740...
- Use the geth console to import account and set passphrase:
$ geth account import ./key.prv
- This will create a keystore file with the privateKey encrypted in the Ethereum data directory (default: ~/.ethereum/keystore)
Next, to run this project, install it locally using npm: Set the following arguments:
- -a 'address of private key to decrypt keystoreFile'
- -k ' key passphrase to decrypt keystoreFile'
- -w ' 'The time to wait for a new provide' (optional)
- -m ' 'The time to wait to gather market data' (optional)
$ npm install
$ node index.js -a <address> -k <key> -w <wait> -m <waitMarket>