Comment on page
is_banned_baker
This on-chain view checks baker is banned on this Bucket contract or not.
Field | Type | Description |
---|---|---|
baker | key_hash | Baker to check |
nat
🌮 Taquito
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 });
A view doesn't throw any errors.
Last modified 1yr ago