Skip to main content
Transaction data for the useSwap hook, when the account is a Smart Account.

Properties

PropertyTypeDescription
account`0x${string}`The taker address.
networkEvmSwapsNetworkThe network.
fromTokenstringThe fromToken address.
toTokenstringThe toToken address.
fromAmountstringAmount of fromToken sold, in atomic units.
toAmountstringExpected output from the quote, in atomic units.
minToAmountstringMinimum guaranteed output, in atomic units.
fees| null | SwapFeesFees as quoted at execute time, or null.
totalNetworkFeenull | stringThe estimated total network cost of the swap. On chains where there is no L1 data cost, it is calculated as gas * gasPrice. On chains where there is an L1 data cost, it is calculated as gas * gasPrice + L1 data cost.
type"evm-smart"Always “evm-smart”.
userOpHash`0x${string}`The user operation hash.
receipts?UserOperationReceipt[]The user operation receipts for the Smart Account transaction.
userOperation?EvmUserOperationThe user operation result for the Smart Account transaction.
transactionHash?`0x${string}`The hash of the transaction that included this particular user operation.