5 Min. Read

Export XDC Transactions for Taxes with CSV Exports

by OpenScan

Insight

banner image for the post Export XDC Transactions for Taxes with CSV Exports

Tax season means reconciling every transaction your wallets made. OpenScan.AI’s built-in CSV export turns an address page on xdcscan.io into a spreadsheet in a couple of minutes — no code and no API key required. This tutorial walks the full flow: export transactions, internal transactions, and token transfers for a tax period, then combine them into one report.

Nothing here is tax advice — it is a data-wrangling guide. Confirm filing requirements with a qualified professional in your jurisdiction.

What you’ll export

For a complete picture of one wallet you typically need three CSVs, all available from the address page:

  • Transactions — native XDC in/out, with fees.
  • Internal transactions — XDC moved by contract execution (staking rewards, contract payouts).
  • Token transfers — ERC-20 movements (from the Tokens tab).

Step 1 — Open the address page

Go to xdcscan.io and search your wallet address. If your wallet shows an xdc…-prefixed address, that’s the same account — the explorer accepts both forms.

Step 2 — Export each tab to CSV

  1. On the address page, open the Transactions tab.
  2. Click Download CSV under the list. You’ll be forwarded to the /csv-export page for that address and export type.
  3. Set the period to your tax year (e.g. 2025-01-012025-12-31). The default period is the previous month, so adjust it.
  4. Complete the reCaptcha and download the file.
  5. Repeat for the Internal transactions and Tokens tabs (the Tokens tab exports token transfers).

Full details on the feature live in the CSV Exports doc.

Tip: to avoid the 30-second export timeout on very active wallets, export quarter by quarter and concatenate the files — the column layout is identical.

Step 3 — Combine the files

Open the CSVs in your spreadsheet tool of choice. A practical layout for a tax-ready sheet:

Date (UTC)TypeAssetAmountFee (XDC)Tx hash
2025-03-14 09:12Native inXDC1,250.0000x…
2025-03-14 09:12FeeXDC-0.0000210.0000210x…
2025-04-02 17:45Token outUSDT500.000.0000210x…
  • Append all exports into one sheet, tagging each row with its source (native, internal, token).
  • Sort by timestamp to reconstruct the chronological history.
  • Keep the transaction hash column — it’s your audit trail back to the explorer.

Step 4 — Value the disposals

CSV exports contain on-chain amounts, not fiat values. For each disposal (sends, swaps, fees) you need the fair-market value at the time of the transaction:

  1. Note the UTC timestamp of each outgoing transaction.
  2. Pull the historical XDC/USD price for that moment from your price source of choice.
  3. Multiply, and record proceeds and cost basis per your local rules.

Active traders usually automate this with the API instead — see Track a wallet’s full history with the OpenScan API, which pages through the same data programmatically, and the endpoint showcase for the exact endpoints involved.

Step 5 — Reconcile and file

Sanity-check the final sheet:

  • The sum of native in/out plus fees should match the wallet’s balance change over the period.
  • Every token disposal has a timestamp, amount, and valuation.
  • Hashes resolve on xdcscan.io if anyone asks for proof.

Hand the sheet to your accountant or import it into your crypto-tax tool’s generic CSV format.

What’s next

Questions or improvements? Open an issue on GitHub or reach the team via the contact form.

Share this Blog

Discover what's happening on OpenScan.AI

banner image for the post Track a Wallet's Full History with the OpenScan API

By OpenScan

api

Track a Wallet's Full History with the OpenScan API

A worked end-to-end tutorial: pull every transaction for an XDC wallet with the OpenScan.AI REST API v2 — no API key required — using curl and JavaScript.

5 Min. Read

banner image for the post Token Deployment Made Effortless with OpenScan

By OpenScan

openscan

Token Deployment Made Effortless with OpenScan

About OpenScan OpenScan is a powerful and user-friendly blockchain explorer built for the...

5 Min. Read

banner image for the post Token Standards on the EVM-Compatible XDC Network

By OpenScan

openscan

Token Standards on the EVM-Compatible XDC Network

In the world of blockchain technology, tokens play a fundamental role in representing value, assets,...

5 Min. Read