Adds admin permissions for a specified address.
import { addAdmin } from "thirdweb/extensions/erc4337";import { sendTransaction } from "thirdweb"; const transaction = addAdmin({ contract, account, adminAddress: "0x...",}); await sendTransaction({ transaction, account });
function addAdmin( options: BaseTransactionOptions<AddAdminOptions>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the addAdmin function.
let options: BaseTransactionOptions<AddAdminOptions>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
The transaction object to be sent.