Docs

addAdmin

Adds admin permissions for a specified address.

Example

import { addAdmin } from "thirdweb/extensions/erc4337";
const transaction = addAdmin({
contract,
account,
adminAddress: "0x...",
});
await sendTransaction({ transaction, account });

Parameters

Returns

The transaction object to be sent.