How to export DEX swap history for crypto taxes with token transfers

Export each wallet’s transaction history and ERC-20 token transfers separately for every chain you used, then match each swap’s outgoing and incoming tokens by transaction hash. A DEX has no account statement, so the public record for your wallet on each chain is the source for reconstructing trades.

With a centralized exchange, the account statement records your trades; with a DEX, the wallet address and chain record them. A Fraxswap swap can therefore require pairing transfers that appear in separate explorer records before tax software can treat them as one trade.

What to have ready and how to export each swap

Gather every wallet address you used and list the chains where you swapped: Ethereum, Arbitrum and Fraxtal each have a separate explorer. Missing one address or chain can leave a purchase unmatched, which can make the cost basis—the recorded acquisition cost—of later disposals incomplete.

  1. Open each address on each chain’s explorer. Use Etherscan for Ethereum, Arbiscan for Arbitrum and Fraxscan for Fraxtal. The address page should show that wallet’s activity on the selected chain.
  2. Download the transactions CSV for the tax year. Choose the relevant date range in the explorer’s CSV export. This file records transaction-level details, including the hash and gas fee, but a DEX swap can appear as a router call with 0 ETH.
  3. Download the ERC-20 token transfers CSV for the same address, chain and dates. This second file matters: the transaction list can show the router call while omitting the tokens received. The transfer file shows the token movements, so you can identify what left your wallet and what came in.
  4. Import both files into tax software or a spreadsheet. Add the addresses as read-only in Koinly or CoinTracker if you want the software to read wallet activity across supported chains. Compare its detected swaps against the explorer exports, especially where a transfer is missing or unmatched.
  5. Match transfers by transaction hash and record each swap as one trade. In a Fraxswap trade, the wallet’s outgoing token goes to the pair and the incoming token comes from it; the transaction also records the network gas fee. Treat the paired token movements as one trade, rather than two unrelated transfers. The task is complete when every swap hash has an outgoing token, incoming token and gas fee.

The tax reason to pair both sides is that a swap can count as a disposal. For US federal tax, IRS Notice 2014-21, Q&A 6, says exchanging virtual currency for other property can produce gain or loss; HMRC’s Cryptoassets Manual, CRYPTO22100, treats exchanging one type of token for another as a disposal for individuals’ Capital Gains Tax. These rules explain why a complete swap record needs both the token given up and the token received.

Related questions

Are DEX gas fees deductible for crypto taxes?

Keep the gas amount, asset, date and transaction hash with the swap record. Tax treatment depends on your jurisdiction and circumstances; HMRC’s Cryptoassets Manual, CRYPTO22280, says a fee paid in tokens must also be considered a disposal in its own right.

How do I report liquidity pool deposits and withdrawals?

Keep pool deposits and withdrawals separate from ordinary swaps. Record the tokens sent into or received from the pool and the transaction hashes, then have tax software or an accountant classify the pool activity under your local rules.

  • Export transactions and ERC-20 token transfers for every wallet on every chain.
  • Use the token transfer CSV to find both sides of a swap.
  • Match by hash and retain the gas details.

Comments

Popular posts from this blog

Why Is My Bridge Transfer Still Pending?

acrossbridge: Why destination calls can reject a bridge fill

How to Set Slippage on a Syncswap Swap