Skip to main content

CLI

Information

Only the creator of the contract can execute commands, so make sure that you use that wallet as the first wallet specified in the config.

The Eryx Contract Bot supports multiple CLI parameters that you can use for certain actions.

Whitelist

The bot only allows transactions from whitelisted wallets, therefore you must manage the whitelist yourself using the commands listed below.

Adding to the whitelist

node index.js --whitelist --accounts=0xwallet1, 0xwallet2

This command adds the wallets 0xwallet1 and 0xwallet2 to the whitelist.

Removing from the whitelist

node index.js --whitelist --accounts=0xwallet1, 0xwallet2 --rm

This command removes the wallets 0xwallet1 and 0xwallet2 from the whitelist.

Variable Control

You can alter some variables stored inside your contract using the command below.

Updating the contract variables

node index.js --set-variables

After the transaction confirms, the contract will use the specified variables.

Withdraw

To withdraw the funds that are stored in your contract, use the command below.

Withdraw funds

node index.js --withdraw --to=0xblabla --amount=0.1

This will withdraw 0.1 ETH/BNB to the wallet address specified in --to.