launchParams.json

Instruction for filling of launchParams.json

Param
Description
Example
"ACTION_PARAMS": object

"group" is a group of logically combined actions "action" is a concrete action Whole list you can see here.

"ACTION_PARAMS": {
   "group": "Common", 
   "action": "CheckBalances",
},
"SHUFFLE_ACCOUNTS": boolean

Shuffling of accounts

"SHUFFLE_ACCOUNTS": true,
"UNTIL_SUCCESS":boolean

Execute script until success

"UNTIL_SUCCESS": false,
"TAKE_STATE":boolean
"STATE_NAME":string

Save result of execution in states folder. If TRUE next executions will consider success accounts from state. Name of the state file states/${STATE_NAME}, if TAKE_STATE: true

"TAKE_STATE": true,
"STATE_NAME": "plasmaDeposit", 
"JOB_ACCOUNTS":obj[]

Array of accounts for script. In "file" you have to write name of the file in your accounts folder. "start" to "end" are for selecting number of accounts in range. Names of accounts must be numbers. "include" is for selecting concrete accounts. "exclude" is for excluding concrete accounts.

"JOB_ACCOUNTS": [
   {
     "file": "accs",
     "start": 1,
     "end": 10,
     "include": [],
     "exclude": [2,5,6,7],
   },
],

In this example script will execute for 1,3,4,8,9,10

"DELAY_BETWEEN_ACCS_IN_S":[number,number]

Delay between accounts in range of seconds. If right number is 0, there is no delay between accounts.

"DELAY_BETWEEN_ACCS_IN_S": [2,10],
"NUMBER_OF_THREADS":number

Number of accounts running in parallel

"NUMBER_OF_THREADS": 1,
"NUMBER_OF_EXECUTIONS":number

How many times all accounts must complete the action

"NUMBER_OF_EXECUTIONS": 1,
"CHAIN_ID":string

Id of network in which script will work. Whole list you can see here.

"CHAIN_ID": 1,
"WAIT_GAS_PRICE":number

Script will wait for gas price in selected network. If 0, no waiting.

"WAIT_GAS_PRICE": 0,
"DELAY_AFTER_ERROR_IN_S":number

Delay after account if error

"DELAY_AFTER_ERROR_IN_S": 1,
"PROXY":boolean
"ROTATE_PROXY":boolean

Use proxy and rotate if mobile. Proxy is getting from account.proxy

"PROXY": false,
"ROTATE_PROXY": false,
"USE_ENCRYPTION": true, 
"ENCRYPTION": {
   "ACCOUNTS_ENCRYPTED_PATH": "secrets/accounts/encrypted", 
   "ACCOUNTS_DECRYPTED_PATH": "secrets/accounts/decrypted", 
   "SECRET_STORAGE_ENCRYPTED_PATH": "secrets/secretStorage/encrypted/secretStorage.jsonc", 
   "SECRET_STORAGE_DECRYPTED_PATH": "secrets/secretStorage/decrypted/secretStorage.jsonc", 
},

Use encrypted data or decrypted. By default you have decrypted data (USE_ECNRYPTION: false): accounts in ACCOUNTS_DECRYPTED_PATH and secretStorage in SECRET_STORAGE_DECRYPTED_PATH. If you encrypted your data (instruction here) USE_ECNRYPTION: true and script gets data from ACCOUNTS_ENCRYPTED_PATH and SECRET_STORAGE_ENCRYPTED_PATH

"USE_ENCRYPTION": true, 
"ENCRYPTION": {
   "ACCOUNTS_ENCRYPTED_PATH": "secrets/accounts/encrypted", 
   "ACCOUNTS_DECRYPTED_PATH": "secrets/accounts/decrypted", 
   "SECRET_STORAGE_ENCRYPTED_PATH": "secrets/secretStorage/encrypted/secretStorage.jsonc", 
   "SECRET_STORAGE_DECRYPTED_PATH": "secrets/secretStorage/decrypted/secretStorage.jsonc", 
},
"LICENSE": string,

If you are a premium user, you have to fill it to have access to premium functions.

"LICENSE": "",

Here is the default launchParams.json.

{
	"ACTION_PARAMS": {
		"group": "Common",
		"action": "CheckBalances",
	},
	"SHUFFLE_ACCOUNTS": true,
	"UNTIL_SUCCESS": false,
	"TAKE_STATE": true,
	"STATE_NAME": "testScript", 
	"JOB_ACCOUNTS": [
		{
			"file": "accs",
			"start": 1, 
			"end": 3, 
			"include": [], 
			"exclude": [], 
		},
	],
	"DELAY_BETWEEN_ACCS_IN_S": [0, 10],

	"NUMBER_OF_THREADS": 1,
	"NUMBER_OF_EXECUTIONS": 1,
	"CHAIN_ID": 1,

	"WAIT_GAS_PRICE": 0,
	"DELAY_AFTER_ERROR_IN_S": 5,
	"PROXY": false,
	"ROTATE_PROXY": false,
	"USE_ENCRYPTION": false,
	"ENCRYPTION": {
		"ACCOUNTS_ENCRYPTED_PATH": "secrets/accounts/encrypted", 
		"ACCOUNTS_DECRYPTED_PATH": "secrets/accounts/decrypted", 
		"SECRET_STORAGE_ENCRYPTED_PATH": "secrets/secretStorage/encrypted/secretStorage.jsonc", 
		"SECRET_STORAGE_DECRYPTED_PATH": "secrets/secretStorage/decrypted/secretStorage.jsonc", 
	},
	"LICENSE": "",
}

Last updated