Open quan612 opened 3 weeks ago
You can estimate using estimateUserOperationGas
bundlerClient.estimateUserOperationGas({
userOperation: {
...(await smartAccountClient.prepareUserOperationRequest({
userOperation: {
callData: await smartAccount.encodeCallData([
{
to: zeroAddress,
value: 0n,
data: "0x"
},
{
to: zeroAddress,
value: 0n,
data: "0x"
}
])
}
}))
}
})
Hi,
I am new to
pimlico
andpermissionless
I have a working code when we need to bulk transfer out some NFTs from a smart account into a destination wallet, using
sendTransactions()
https://docs.pimlico.io/permissionless/reference/smart-account-actions/sendTransactions
Wondering how to estimate the gas for these bulk transfers?
working code:
then
I saw this https://docs.pimlico.io/permissionless/reference/bundler-actions/estimateUserOperationGas but feel like its for single transaction
permissionless: 0.1.44 entry_point: v07
code that setup smartAccountClient: