The best way to add a Bitcoin wallet to Koinly is with your extended public key: the xpub, ypub or zpub. Most Bitcoin wallets create a new address for each payment and for change, so a single address only shows part of your history. Adding your xpub brings in every address in the wallet.
An extended public key lets someone see all your addresses and balances, but it cannot spend your Bitcoin. Share it only with Koinly or your accountant, and never share your seed phrase.
Before you start
- Open the Bitcoin wallet app you use. This guide covers Electrum, Sparrow and BlueWallet. For hardware wallets, see our Ledger and Trezor guides.
- Check your address type. Addresses starting with 1 use an xpub, with 3 a ypub, and with bc1q a zpub.
- Create a Koinly account with the United Kingdom as your country.
Part 1: Find your extended public key
Step 1: Electrum
Go to Wallet, then Information. The Master Public Key shown in the pop-up is your extended public key. Copy it.

Step 2: Sparrow
Open your wallet and go to Settings. Your key is shown in the Keystore section. Sparrow can switch between the xpub and zpub forms, which are the same key.

Step 3: BlueWallet
Open the wallet and tap the three dots at the top right. Under Options, tap Show Wallet XPUB and copy it.

Part 2: Add the key to Koinly
Step 4: Add Bitcoin in Koinly
In Koinly, open Wallets and click + Add Wallet/Exchange. Choose Bitcoin (BTC), paste your xpub, ypub or zpub into the Public address or key field and click Import.

Step 5: Add more keys if needed
If one wallet has several keys, paste them all, separated by commas with no spaces. If you have no xpub, paste every public address you have used, separated by commas.

Step 6: Fix a wallet with too few transactions
If Koinly shows only a few transactions, you probably added a single address. Delete that wallet and add it again with the extended public key.

Step 7: Match transfers between your wallets
Add every exchange and wallet you have sent Bitcoin to or from. Koinly then marks matching withdrawals and deposits as transfers, not sales.

Bitcoin key types at a glance
| Key | Address starts with | Address type |
|---|---|---|
| xpub | 1 | Legacy |
| ypub | 3 | Nested SegWit |
| zpub | bc1q | Native SegWit |
| Taproot (bc1p) | bc1p | Koinly notes some Taproot wallets have no xpub |
Common problems and fixes
- Only a few transactions imported: re-add the wallet with the xpub, not one address.
- Old transactions an hour out: Koinly notes some pre-2019 timestamps can be off by an hour.
- Unused addresses beyond the gap: Electrum and Sparrow use a gap limit of 20. If you skipped many addresses, raise it in the wallet and add any missing addresses in Koinly.
- Network fees: Koinly treats fees paid in Bitcoin as small disposals.
How Bitcoin wallet activity is taxed in the UK
Moving Bitcoin between your own wallets is not a disposal. Selling it, swapping it or spending it is, so Capital Gains Tax can apply. In 2025/26, gains above £3,000 are taxed at 18% or 24%, and the allowance covers all your assets. HMRC accepts network fees paid to get a transaction onto the blockchain as allowable costs. See how to report crypto tax in the UK.
FAQs
It cannot spend your Bitcoin, but it shows your whole wallet history. Share it only with trusted services.
Bitcoin wallets use many addresses. The xpub covers all of them.
They are the same kind of key for different address types: xpub for addresses starting 1, zpub for bc1q.
Need help with an old Bitcoin wallet? Our crypto reconciliation service can trace every address.





