DEV Community

Gogu
Gogu

Posted on

Swap Receipts: Match Cross-Chain Swaps to Your Tracker

If you have swapped coins and your tracker shows a loss, match each receipt to the asset movement before editing anything. A receipt is a record of one transaction on one blockchain, not a complete summary of a cross-chain swap.

A receipt proves a transaction, not the whole swap

Start with the transaction hash, a unique code for finding that transaction on its blockchain. Check the wallet address, network, date, and whether the transaction succeeded. The Ethereum JSON-RPC specification explains that a transaction receipt can include its status, gas used, and event logs—records of actions such as token transfers.

Those details help confirm what happened, but they may not show a neat “you swapped X for Y” summary. The fee is usually paid in that network’s native coin, so record it separately from the amount swapped. A successful receipt also does not prove that every later step on another chain is complete.

Match each chain’s records to one swap

For a cross-chain swap, look for the outgoing asset on the first chain and the incoming asset on the destination chain. A tracker may show these as two separate movements. Compare the wallet addresses, amounts, and timing, then group the matching entries as one swap where your tracker allows it.

For example, say you send 0.01 BTC and later receive 0.25 ETH. Before, your tracker may list a BTC send and an ETH deposit, making your balance history look like a sale and a separate gift. After you match them, record the BTC as the asset given up, the ETH as the asset received, and any network fees as their own costs.

When researching thor swap, the thor swap service is a cross-chain service that moves and swaps crypto across chains in one flow; that context helps explain why the records can appear on different networks. Keep each chain’s transaction hash with the matched entries, since one hash cannot verify activity on every chain.

Fix mismatches before saving the record

If the received amount differs from your estimate, check for a fee, a partial fill, or a second transfer before changing the tracker. A partial fill means only part of the planned swap completed. If the destination transaction is missing, wait for it to appear or check its status on that chain; do not mark the swap complete from the outgoing receipt alone.

Trackers can also mistake your own wallet-to-wallet transfers for income or a sale. Mark a movement as a transfer only when both addresses are yours, and keep the fee attached to the correct chain. This matters when thor swap research leads you to compare a service’s one-flow description with your tracker’s separate chain records.

Use this rule: match by wallet, chain, amount, and transaction hash first, then group the records only when both sides of the swap are verified.

Top comments (0)