Uniswap in TaxChain
Noch nicht angebotenTaxChain kann Uniswap noch nicht importieren. Diese Seite sagt, was es gibt und worauf es wartet.
Diese Seite ist auf Englisch, damit sie genau wiedergibt, was die Dokumentation der Plattform und der Code von TaxChain sagen. Überschriften und der Rest der Website sind in deiner Sprache.
Uniswap is a decentralised exchange: a set of smart contracts with no account and no statement. TaxChain has code that reads its swaps from The Graph subgraphs [1], but it is not offered and cannot work today. What reaches TaxChain from Uniswap comes through the wallet you add on its chain, where each swap is read as tokens out and tokens in. The adapter covers Uniswap v3 only, not v2 or v4.
Wege hinein
Datei-UploadNicht verfügbar
None
Uniswap keeps no account and offers no statement. Block explorers export an address's transfers, which is the same data the chain read imports.
API-VerbindungKönnte ergänzt werden
The Graph's decentralised network, or the chain read itself
The same subgraphs now run on The Graph's network, which refuses a query without an API key: checked on 20 Nov 2026. The operator would need a key from Subgraph Studio; the free plan includes 100,000 queries a month [4]. The faults above would still need fixing, and the duplicate with the chain read removing.
The simpler route is the chain read TaxChain already offers [5]: group each transaction's tokens out and tokens in into one swap. That covers every DEX and aggregator at once, finds swaps by what moved in and out of the wallet rather than by who sent the transaction, and needs no extra provider.
Wallet-AdresseNicht verfügbar
The Graph subgraphs (v3 only: Ethereum, Arbitrum, Polygon, Optimism and Base; BNB Chain is listed with no endpoint)
The wallet address that traded (0x…). No key or signature.
Not offered: no Uniswap source can be added in the app, and the worker never runs this adapter.
It could not read anything today. Every endpoint it uses is on The Graph's hosted service, which stopped serving queries in June 2024 [1]. Checked live on 20 Nov 2026 for one endpoint of each DEX: each answered with a redirect to an address that does not exist, and a sync fails with an error after about a minute of retries rather than reporting no swaps.
Even pointed at a working subgraph, it has faults found in the tests:
- Only Uniswap v3 is read. Uniswap v2 and v4 have subgraphs of their own [2], which the adapter does not query.
- The current v3 subgraph names a swap "<transaction hash>-<log index>" [3]; the adapter expects "#" and so records no transaction hash.
- BNB Chain is listed among its chains with no endpoint: a sync there would send no query and report no swaps.
- The adapter queries the subgraph by the address that sent the transaction ("origin"). A swap made through a smart-contract wallet, an aggregator's relayer or a signed order that someone else fills is not found, and a swap whose output was sent to another address is reported as received by the sender.
- It returns one swap per pool. A routed swap through two pools becomes two swaps with an intermediate token the wallet never held, and under FIFO that intermediate leg disposes of the wallet's oldest lots of it.
- Tokens are named by symbol only, as the subgraph spells them. Native ETH or BNB paid into a swap appears as WETH or WBNB, which the wallet never held, so the calculation stops for a missing purchase. A worthless token that calls itself USDC would be pooled with real USDC.
- Network fees are not in the subgraph and are not read.
- If the same wallet is also added on its chain, every swap would be counted twice: once as a swap from here and once as a withdrawal and a deposit from the chain. Nothing removes the duplicate.
Was gelesen wird
| Vorgang | Status |
|---|---|
| SwapsNot read from Uniswap. If you add the wallet on its chain, each swap arrives as a withdrawal of what you gave and a deposit of what you received, read from the chain's token transfers [5]. Both sides are taxed: the withdrawal is a disposal at market value and the deposit an acquisition at that day's value. Do not mark the withdrawal as a transfer. | Teilweise gelesen |
| Swap (pool) feesThe pool's fee is taken from the amount you put in, so it is already inside the amounts the chain read records. It is not shown as a fee of its own. | Teilweise gelesen |
| Network feesNot read from the DEX. The chain read records the gas of every transaction the wallet sent, swaps and approvals included, as a disposal of the chain's native coin. A swap or order sent for you by someone else costs you no gas and has none. | Teilweise gelesen |
| Adding and removing liquidityNot read from the DEX. On the chain read, the tokens you put into a pool are withdrawals, so disposals. A liquidity token minted to you (fungible LP tokens) is a deposit, an acquisition at its day's value, which often has no price. A concentrated-liquidity position is an NFT, which the chain read does not import. Removing liquidity brings the tokens back as deposits. | Teilweise gelesen |
| Liquidity provider feesNot read from the DEX. Fees you collect arrive on the chain read as deposits, acquisitions, not as income. Fees that accrue inside a liquidity token are realised only when you remove it. Neither is shown as income: add it yourself if your country taxes it as such. | Teilweise gelesen |
| Governance token airdrops and reward claimsRead on the chain as deposits, acquisitions at the day's value, not as income. Reclassify them if they are income where you file. | Teilweise gelesen |
| NFTsNeither the DEX nor the chain read imports NFTs, liquidity position NFTs included. | Nicht gelesen |
Einschränkungen
- You cannot add Uniswap as a source. Add the wallet you traded from on its chain instead.
- There, swaps arrive as a withdrawal and a deposit, not as one swap. Both are taxed, which is right for a swap, but the withdrawal is listed for review: leave it as a disposal.
- Liquidity positions, their fees and reward claims arrive as plain deposits and withdrawals. Nothing is recorded as income; concentrated-liquidity position NFTs are not imported.
- Wallets on BNB Chain, Base and Optimism are read only when the operator has a paid Etherscan plan.
- Do not also enter the same swaps by hand or from another file: they would be counted twice.
Wie es geprüft wurde
- 20. November 2026One endpoint of each DEX the adapter uses (Uniswap, SushiSwap and Curve on Ethereum, PancakeSwap on BNB Chain), probed live: each answers with a redirect to The Graph's error host, which does not resolve, and the adapter's sync fails with an error after seven attempts (about a minute). The Graph's network gateway refused the same query without an API key [4].
- 20. November 2026Two real Uniswap v3 transactions on Ethereum, read from a public RPC and shaped as the Uniswap v3 subgraph's mapping shapes them [3]: a swap of 0.2877 ETH for 501.80 USDT routed through a USDC pool [6], and a swap of 0.58 ETH whose 1,014.77 USDC went to another address (0x263f4911a0aa6ea219c88128df29c327633e6fdd9041fc22d0d434774068dfbe). The adapter reads one pool's direction correctly, and fails three kept tests: the transaction hash is lost, the routed swap becomes two (WETH to USDC, USDC to USDT), and the second sender is credited with USDC it never received.
Was es zu Verifiziert machen würde
Recommended: retire the subgraph adapter and read DEX activity from the chain read, with each transaction's tokens out and in grouped into one swap. A DEX would then be as reliable as the chain read, and the chain's own bar applies: a public address's full history, read through TaxChain, reconciled to its live balance on chain [5].
Otherwise: point the adapter at The Graph's network with an operator key, fix the failing tests (transaction hash, routed swaps, origin, native coins, and this DEX's own faults), and drop a DEX swap that the chain read already holds. Then reconcile a real wallet's swaps against its chain history.
So fügst du es hinzu
- Find the address you trade from in your wallet app (MetaMask, Rabby, a Ledger account…). It is the public 0x address, not a recovery phrase.
- In TaxChain, open Wallets, choose Add source, pick the chain you used Uniswap on and paste the address. Repeat for each chain.
- When the sync finishes, check each token's balance against your wallet. Leave swap withdrawals as disposals; mark only moves between your own wallets as transfers.
Quellen
- [1]The Road to Sunsetting the Hosted Service. The Graph. The hosted service (api.thegraph.com/subgraphs/name/…) stopped serving queries after the upgrade window closed in June 2024. Subgraphs moved to The Graph's decentralised network.
- [2]Uniswap subgraphs overview. Uniswap Labs. v1 to v4 subgraphs, queried through The Graph's network with an API key; v3 on Ethereum is subgraph 5zvR82QoaXYFyDEKLZ9t6v9adgnptxYpKpSbxtgVENFV.
- [3]v3-subgraph: swap mapping and schema. Uniswap Labs (GitHub). Swap id = transaction hash + '-' + log index; origin = the transaction's sender; amount0 and amount1 are the pool's deltas in token units, positive for what the pool received.
- [4]Subgraph Studio: introduction and plans. The Graph. Queries on the network go through a gateway with an API key created in Subgraph Studio. The free plan includes 100,000 queries a month.
- [5]Etherscan API V2. Etherscan. The API TaxChain uses to read an EVM wallet: normal transactions, ERC-20 token transfers and internal transactions, one endpoint for every supported chain.
- [6]Ethereum transaction 0x1909d16b7a7ba86bc821392a4ec3257d40123730a91b4871eaf5bb07c5e9d6cc. Etherscan. ETH sent to the Universal Router, swapped to USDC in one pool and to USDT in another; only the USDT reached the sender.
Zuletzt mit der Dokumentation der Plattform und dem Code von TaxChain abgeglichen am 20. November 2026.