The client instance to use for the operation.
Parameters for the exact input single swap operation.
A promise that resolves to the transaction hash of the executed swap.
const txHash = await client.exactInputSingle({
tokenIn: '0xfff9976782d46cc05630d1f6ebab18b2324d6b14', // WETH
amountIn: '1', // 1 WETH
tokenOut: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238', // USDC
account: '0xYourAccountAddress', // Your account address
chain: ETH_SEPOLIA, // Ethereum Sepolia
});
// => '0xTransactionHash'
Executes an exact input single swap on Uniswap V3.