Skip to main content
Hook that executes a token swap and waits for on-chain confirmation. For EOA accounts, waits for a transaction receipt. For smart accounts, polls the user operation until it completes.

Returns

UseSwapReturnType UseSwapReturnType

Example