Checks if the target account has the role.
import { hasRole } from "thirdweb/extensions/permissions"; const result = await hasRole({ contract, role: "admin", targetAccountAddress: "0x1234567890123456789012345678901234567890",});
function hasRole( options: BaseTransactionOptions<HasRoleParams>,): Promise<boolean>;
The options for checking the role.
let options: BaseTransactionOptions<HasRoleParams>;
let returnType: Promise<boolean>;
A boolean that is true if the target account has the role.