Pactus bond tools for multiple stake by config, you can stake many validators in same time with specific configuration.
- Note: this approach is one to many (1 account address and many validators address)
- create config file
cfg.json
{
"pactus_wallet_exec_path": "/home/user/pactus/pactus-wallet",
"wallet_path": "/home/user/pactus/wallets/default_wallet",
"amount": 2.2,
"wallet_address": "",
"validators": [
{
"address": "",
"pub": ""
}
]
}pactus_wallet_exec_pathis patus-wallet file addresswallet_pathis address wallet file for example default path is/home/{user}/pactus/wallets/default_walletamounta certain amount that is shared between the validatorswallet_addresssender address wallet have coinvalidatorsis list of validators for stake note: if your address is first time for validator need set public key inpub
- run tools with
./staker -config ./cfg.json -password foobar
--configconfig file path default is./cfg.json--passwordis optional for wallet password--serveris for custom node rpc address--totalis a flag that ignore amount it config and it will stake whole of account balance