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_path
is patus-wallet file addresswallet_path
is address wallet file for example default path is/home/{user}/pactus/wallets/default_wallet
amount
a certain amount that is shared between the validatorswallet_address
sender address wallet have coinvalidators
is 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
--config
config file path default is./cfg.json
--password
is optional for wallet password--server
is for custom node rpc address--total
is a flag that ignore amount it config and it will stake whole of account balance