Complete validator exit, end to end. Only accepted by the network
once the unstake timelock has elapsed
(unstake_available_at <= currentBlock).
Optionalopts: ProgrammaticTxOptionsFee ceiling / confirmation strategy / wait behaviour.
Stake toward validator registration, or top up an existing stake, end to end.
import { denomination } from "@kynesyslabs/demosdk"
// register + auto-broadcast within the 5 DEM fee cap:
await demos.run.validator.stake(
denomination.demToOs(1000).toString(),
"https://my-validator.example",
)
// build + confirm only, broadcast later yourself:
const r = await demos.run.validator.stake(
"1000000000",
"https://my-validator.example",
{ confirm: "manual" },
)
await demos.broadcast(r.validityData)
Stake amount as a non-negative bigint-encoded string (OS).
Validator's public endpoint (required on first stake; used to reach the node).
Optionalopts: ProgrammaticTxOptionsFee ceiling / confirmation strategy / wait behaviour.
Arm the unstake lock, end to end. Starts the timelock after which exit becomes accepted by the network.
Optionalopts: ProgrammaticTxOptionsFee ceiling / confirmation strategy / wait behaviour.
Validator staking lifecycle as one-call programmatic transactions.
Collapses the classic
build → confirm → broadcastflow for the validatorstake,unstakeandexitoperations into a single call that auto-broadcasts within the configured fee ceiling.