validate

An entrypoint for bakers validation. If baker is not registered and valid, he will be registered.

Call parameters

FieldTypeDescription

baker

key_hash

An address of a baker

Usage

const bakerRegistryAddress = "KT1...";
const baker = "tz1...";
const bakerRegistry = await tezos.contract.at(bakerRegistryAddress);
const operation = await bakerRegistry.methods.validate(baker).send();

await operation.confirmation();

Errors

Operation fails in time of baker registration when the key_hash parameter is not a registered delegate (standard Tezos error).

Last updated