ConsensusCreate

DeleteValidatorTransaction

Returns a serialized `delete_validator` transaction. The transaction fee will be paid from the validator deposit that is being returned. Note in order for this transaction to be accepted fee + value should be equal to the validator deposit, which is not a fixed value: Failed delete validator transactions can diminish the validator deposit

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

Parameters

PropType / Default
validatorWallet
string
recipient
string
fee
number
value
number
validityStartHeight
number

Returns

PropType / Default
returnValue
string

On this page