Skip to content

Validator calls reference

uprendis edited this page Mar 25, 2021 · 1 revision

Validator calls

Create validator

Create a new validator

Current minimum stake is sfcc.minSelfStake()

pubkey is a public key used to authenticate future validator's consensus messages. pubkey cannot be changed after the call

The call creates a self-delegation with the specified amount. Validator uses the same calls as other delegators. Visit delegation calls, reward calls, lockup calls for additional details

sfcc.createValidator("0xPubkey", {from:"0xAddress", value: web3.toWei("amount", "ftm")})

Checks

  • Self-stake amount is greater or equal to sfcc.minSelfStake()
  • This address wasn't used for other validator
  • pubkey is not empty
Clone this wiki locally