Handle owners
You can easily add, remove or get all your wallet owners.
You can easily get/add/remove all the owners of your smart wallet.
The getEnrichedOwners method allows you to get more infos regarding your passkey owners (device information, creationDate...).
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