Docs

renounceRole

Lets the target account renounce the role. (The target account must be the sender of the transaction.)

Example

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

Parameters

Returns

A transaction that revokes the role when sent.