Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt

Use this file to discover all available pages before exploring further.

Transaction data for the useSwap hook, when the account is an EOA.

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-eoa"Always “evm-eoa”.
transactionHash`0x${string}`The submitted transaction hash.
receipt?TransactionReceiptThe transaction receipt for the EOA transaction.