pimlicolabs / permissionless.js

TypeScript utilities built on viem for ERC-4337: Account Abstraction

Home Page:https://docs.pimlico.io/permissionless

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Set timeout & polling interval when sending transactions from a SmartAccountClient

KONFeature opened this issue · comments

It could be nice to have the options to specify the polling interval & timeout when calling .sendTransaction(...) and .sendTransactions(...) method via SmartAccountClient

Something like that:

smartAccountClient.sendTransactions({
    transactions,
    polling: {
        intervalInMs: 4_000,
        timeoutInMs: 120_000
    }
})

Btw, having a single entry point for single & batched could be awesome, like supporting in the .sendTransactions(...) method an array or a single tx

Hey we recommend using sendUserOperation if you want to control the polling intervals. We can't modify the action sendTransaction or sendTransactions.