addAdmin

Adds admin permissions for a specified address.

Example

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

Parameters

The options for the addAdmin function.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

The transaction object to be sent.