Bitcoin dans TaxChain
BêtaTaxChain lit Bitcoin et est testé sur ses réponses documentées et enregistrées, mais pas encore rapproché de données réelles. Comparez les chiffres au relevé de Bitcoin avant de déclarer.
Cette page est en anglais, pour dire exactement ce que disent la documentation de la plateforme et le code de TaxChain. Les titres et le reste du site sont dans votre langue.
The Bitcoin blockchain. You give TaxChain your wallet's extended public key (xpub, ypub or zpub), or a single address, and it reads every address the wallet has used, receiving and change, Taproot included, from mempool.space's public API (Blockstream's when mempool.space fails): BTC received, BTC sent and the network fees paid. Multisig wallets are not read.
Modes d'import
Import de fichierPourrait être ajouté
Wallet software history export
Desktop wallets such as Sparrow and Electrum can export their transaction history as a file. TaxChain does not read these files; the key sync reads the same transactions from the chain. Ledger Live and Exodus exports are read and have their own pages.
Adresse de portefeuilleBêta
mempool.space Esplora API [1], Blockstream's as fallback [2]
An extended public key: xpub, ypub or zpub [3], such as a native SegWit wallet's zpub [4] or a Taproot wallet's xpub [5]. Or one address: legacy (1…), script hash (3…), native SegWit (bc1q…) or Taproot (bc1p…).
A bech32 address (bc1…) may be typed in lower case or, as some QR codes carry it, all in capitals [6]; it is read the same. Mixed case is refused, as BIP 173 requires.
TaxChain reads mempool.space's Esplora API, without a key [1] [7]. For each address it reads the first page of transactions, then 25 confirmed transactions at a time after the last one seen, until a page comes back short.
From an extended public key it derives the receiving addresses (/0/i) and the change addresses (/1/i) and asks the API whether each has been used, stopping after 20 unused addresses in a row: the gap limit BIP44 sets [8]. A plain xpub does not say which script type the wallet used, so all four common types (native SegWit, nested SegWit, legacy and Taproot) are scanned; the unused ones add nothing.
Each transaction is read against the whole wallet, so coins moved between its own addresses, change included, are not a payment.
Only confirmed transactions are read; an unconfirmed one is picked up by a later sync. The first sync reads each address's whole history; later syncs read each address back to two days before the previous sync, and rows already stored are skipped. Every sync still checks each of a key's addresses for use, so a key costs the same number of address checks every time.
Requests to a host are spaced about a second apart, so a key with many addresses takes a few minutes.
If mempool.space keeps refusing (rate limit or server error) after five retries, the rest of the sync reads from blockstream.info instead [2]. If that host keeps refusing too, the sync stops with an error rather than store part of the history.
Ce qui est lu
| Opération | Statut |
|---|---|
| BTC receivedCoins paid to the wallet by anyone else, as a deposit at the block's time. | Lu |
| BTC sentWhat went to addresses outside the wallet, as a withdrawal that states the fee. Change returned to the wallet is not counted as sent. | Lu |
| Network feesWhen every input is the wallet's, the fee is a withdrawal of its own: BTC spent. A transaction that only moved coins between the wallet's own addresses leaves just this fee. | Lu |
| Transactions with other people's inputs (coinjoin, payjoin, sweeps)Only the wallet's net change is recorded, the fee's share inside it, since the fee cannot be split between the people who paid it. The row is marked as joint. | Lu en partie |
| Mining rewardsA coinbase output paid to the wallet is read as a plain deposit, not as income. Mark it as mining income yourself. | Lu en partie |
| Moves between two wallets you trackRead on each side, but see the limitation on wallets in the same portfolio. | Lu en partie |
| Unconfirmed transactionsRead once they are in a block. | Non lu |
| Ordinals inscriptions, Runes and BRC-20 tokensOnly the BTC moved is read. An inscription bought or sold for BTC shows as BTC paid or received, without the asset. | Non lu |
| Lightning Network paymentsOff chain. Only the channel opening and closing transactions appear, as BTC sent or received. | Non lu |
Limites
- Add the wallet's extended public key (xpub, ypub or zpub), not one address. Wallet apps use a new address for every payment and for the change of every payment, so one address is rarely the whole wallet; reading one address alone turns change into payments out and back.
- Multisig wallets are not supported: SLIP-132 multisig keys (Ypub, Zpub) are refused [3], and a multisig address read on its own does not know the other cosigners' share.
- A wallet that left more than 20 unused addresses in a row (for example, after generating many receiving addresses without using them) has its later addresses missed.
- Every payment to someone else is a withdrawal, which the calculation treats as a disposal and lists for review. Mark withdrawals to your own exchange accounts or other wallets as transfers.
- Two wallets of the same portfolio that pay each other can lose one side of the move: both sides are stored under the same transaction id, and the second one synced is skipped as a duplicate. Until this is fixed, add the missing side by hand, or track both as one key if they are one wallet.
- No balance is shown for these wallets: TaxChain does not read the current balance, only the history.
- A plain xpub is scanned for Taproot addresses as BIP 86 derives them from an account key (its /0/i and /1/i key-path addresses). A wallet that uses Taproot with scripts (for example Miniscript or multisig in Taproot) is not derived from a key; its addresses can be added one by one.
- mempool.space and Blockstream limit how many requests one server may send. If both refuse for long enough, the sync fails and is retried at the next sync.
Comment cela a été vérifié
- 21 novembre 2026Live, through the fixed adapter, with mempool.space not answering this machine (every connection timed out), so the adapter moved to Blockstream's Esplora by itself: the full histories of 3L5GYjDHgmyrpR45bJxo3B9V4RtjxXN3tH (92 transactions) and 1Nex4NLv8KegopDfrvpThGZukHmVuo57am (44) net to their confirmed balances, 1,561,351 and 0 satoshis, and every transaction equals blockchain.info's result for it [9]. The mempool.space path itself could not be checked live that day.
- 21 novembre 2026Live, the same way: the whole wallets of BIP84's test zpub (40 used addresses, 277 transactions, 393 rows) and BIP44's test xpub, now scanned for Taproot too (42 used addresses, 143 transactions, 199 rows), net to the sum of their addresses' confirmed balances (zero), and the BIP44 key's legacy transactions are exactly the ones blockchain.info's own xpub scan lists.
- 20 novembre 2026Full history of public address 3L5GYjDHgmyrpR45bJxo3B9V4RtjxXN3tH (P2SH, 92 confirmed transactions) read live through the adapter from mempool.space: its rows net to 1,561,351 satoshis, the address's confirmed balance, and every transaction's rows equal blockchain.info's own result for it [9]. Likewise 1Nex4NLv8KegopDfrvpThGZukHmVuo57am (legacy, 43 transactions, 40,625 satoshis).
- 20 novembre 2026Whole wallets of two published test keys, read live from their extended keys: BIP84's zpub from mempool.space (40 used addresses, 277 transactions, 393 rows) and BIP44's xpub from Blockstream's Esplora (42 used addresses across three script types, 143 transactions). Both net exactly to the sum of their addresses' confirmed balances, which is zero: bots sweep these public keys. For the BIP44 key, the transactions of its legacy addresses are exactly the 132 that blockchain.info's own xpub scan lists.
- 20 novembre 202625 recorded transactions of BIP84's first test address (deposits, payments, OP_RETURN burns, transactions with others' inputs), replayed offline: each transaction's rows equal blockchain.info's result for it.
- 21 novembre 2026The adapter's reading of each transaction shape (coins in, payments out with change, a move inside the wallet, OP_RETURN outputs, coinbase outputs, transactions with others' inputs) and of key derivation (BIP44, BIP84 and BIP86 test vectors, SLIP-132 multisig keys), tested offline against Esplora's documented responses and paging (up to 50 unconfirmed plus 25 confirmed, then 25 per page). The connect form and the sync accept the same keys and addresses, capitals included.
Ce qui le rendrait Vérifié
The reading reconciles: full histories of public addresses and of whole wallets net to their confirmed balances, and per transaction to an independent indexer, through either host. Repeat the live checks (LIVE_SOURCES=1) after any change to the adapter.
One known defect stands in the way: the two sides of a move between two tracked wallets of one portfolio share a transaction id, so one side is silently skipped. It cannot be fixed in the reader without storing every past row twice; the store must tell the two wallets' rows apart. Once it does, this meets the bar.
Comment l'ajouter
- In your wallet app, find the account's extended public key (xpub, ypub or zpub). In Sparrow it is under Settings, in Electrum under Wallet, Information; for a Ledger or Trezor, the companion app shows it in the account's details.
- In TaxChain, open Wallets, choose Add source, pick Bitcoin and paste the key. An extended public key lets anyone see the wallet's history but not spend from it; it is stored with your account.
- Wait for the first sync: a key is checked address by address, about one request a second, so a wallet with many addresses can take several minutes.
- Check the review list: mark withdrawals to your own wallets and exchange accounts as transfers, and mark mining rewards as income.
Références
- [1]REST API. mempool.space.
- [2]Esplora API at blockstream.info. Blockstream. The same Esplora API at https://blockstream.info/api, read when mempool.space keeps failing.
- [3]SLIP-0132: Registered HD version bytes for BIP-0032. SatoshiLabs. The key prefixes (xpub, ypub, zpub, Ltub, Mtub, Ypub, Zpub) and the script types they name.
- [4]BIP 84: Derivation scheme for P2WPKH based accounts. Bitcoin BIPs. Its test key and addresses are used in TaxChain's tests.
- [5]BIP 86: Key derivation for single key P2TR outputs. Bitcoin BIPs.
- [6]BIP 173: Base32 address format for native v0-16 witness outputs. Bitcoin BIPs. Allows a bech32 address in all capitals, for QR codes, and forbids mixing cases.
- [7]Esplora HTTP API. Blockstream. The paging TaxChain follows: 25 confirmed transactions per page after the last txid seen.
- [8]BIP 44: Multi-account hierarchy for deterministic wallets. Bitcoin BIPs. Sets the address gap limit at 20.
- [9]Blockchain Data API. Blockchain.com. An independent indexer: rawaddr gives each transaction's net result for an address; multiaddr scans an xpub.
Dernière vérification par rapport à la documentation de la plateforme et au code de TaxChain le 21 novembre 2026.