Skip to main content

CLI

Eryx supports multiple CLI parameters that you can use to your advantage.

ParameterDescriptionAccepts
--buy-onlyEnables manual buy mode. This will only buy the token and then exit.-
--sell-onlyEnables manual sell mode. This will only sell the token and then exit.-
--inputOverwrites the input parameter in the config.contract address
--outputOverwrites the output parameter in the config.contract address
--configUsed to specify a different config path (used for multi configs setup).string
--force-approveForces the approve transaction for the input/output. (used for debugging)-
--simulateSimulate your current config as a real transaction.-

Transaction

ParameterDescriptionAccepts
--wrappedUses the wrapped version of the bnb/eth token. (available for all blockchains)-
--block-offsetWaits an amount of blocks before sending out the buy transaction.number
--spamSends an x amount of transactions at the same time. (spam buy)number
--amount_inUsed to specify the amount you wish to spend with your INPUT token.number
--amount_outUsed to specify the amount you wish to buy from your OUTPUT token.number
--min_liqUsed to specify the minimum liquidity before the bot starts to buy.number

Tax

ParameterDescriptionAccepts
--verify-taxChecks wether the taxes for buying / selling does not exceed the limits configured.-
--max-buy-taxSets the max allowed buy tax.number
--max-sell-taxSets the max allowed sell tax.number

Gas

ParameterDescriptionAccepts
--gas-priceSets the gas price.number
--gas-limitSets the gas limit.number

Slippage

ParameterDescriptionAccepts
--buy-slippageSets the buy slippage.number
--sell-slippageSets the sell slippage.number

Autosell

ParameterDescriptionAccepts
--sell-with-multiplierEnables the sell with multiplier autosell mode.-
--sell-multiplierSets the multiplier to sell at for the sell with multiplier mode.number
--sell-with-delayEnables the sell with delay autosell mode.-
--sell-delaySets the delay to sell with for the sell with delay mode.number
--sell-on-lossEnables the sell on loss autosell mode.-
--sl-minimum-multiplierSets the minimum multiplier for the sell on loss mode to start.number
--sl-percentageSets the percentage of the maximum impact on your multiplier.number

Usage

To use a CLI parameter, simply add the parameter at the end of the startup command.

node index.js --buy-only

If you want to use multiple parameters, add them after each other. The order does not matter.

node index.js --buy-only --spam=3