Handle owners
You can easily add, remove or get all your wallet owners.
Add owners
const smartAccountClient = createSmartAccountClient({
account: smartAccount,
chain: arbitrumSepolia,
bundlerTransport: http(bundlerUrl),
paymaster: paymasterClient,
userOperation: {
estimateFeesPerGas: async () => {
return await paymasterClient.getUserOperationGasPrice();
},
}
})
const txHash = await smartAccountClient.addOwner({ownerToAdd: ADDRESS_TO_ADD});
Remove owners
Get owners
Last updated