is_banned_baker

This on-chain view checks baker is banned on this Bucket contract or not.

Call parameters

FieldTypeDescription

baker

key_hash

Baker to check

Return type

nat

Usage

const bucketAddress = "KT1...";
const baker = "tz1...";
const viewCaller = "tz1...";
const bucket = await tezos.contract.at(bucketAddress);
const isBannedBaker = await bucket.contract.contractViews.is_banned_baker(baker).executeView({ viewCaller: viewCaller });

Errors

A view doesn't throw any errors.

Last updated