Docs

revokeRole

Revokes a role from a target account.

Example

import { revokeRole } from "thirdweb/extensions/permissions";
const result = await revokeRole({
contract,
role: "admin",
targetAccountAddress: "0x1234567890123456789012345678901234567890",
});

Parameters

Returns

A transaction that revokes the role when sent.