Revokes a role from a target account.
import { revokeRole } from "thirdweb/extensions/permissions";import { sendTransaction } from "thirdweb"; const transaction = revokeRole({ contract, role: "admin", targetAccountAddress: "0x1234567890123456789012345678901234567890",}); await sendTransaction({ transaction, account });
function revokeRole( options: BaseTransactionOptions<RevokeRoleParams>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for revoking the role.
let options: BaseTransactionOptions<RevokeRoleParams>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A transaction that revokes the role when sent.