ConsensusCreate

DeactivateValidatorTransaction

Returns a serialized `deactivate_validator` transaction. You need to provide the address of a basic account (the sender wallet) to pay the transaction fee.

const res = await fetch("http://127.0.0.1:8648", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
  jsonrpc: "2.0",
  method: "createDeactivateValidatorTransaction",
  params: ["senderWallet", "validatorAddress", "signingSecretKey", 0, 0],
  id: 1
})
});
const data = await res.json();

Parameters

PropType / Default
senderWallet
string
validatorAddress
string
signingSecretKey
string
fee
number
validityStartHeight
number

Returns

PropType / Default
returnValue
string

On this page