Bitcoin Forum
August 03, 2026, 07:56:19 AM
Welcome,
Guest
. Please
login
or
register
.
News
:
COLDCARD users only: critical vulnerability risks funds stored on COLDCARD devices; immediate action required
Home
Help
Search
Login
Register
More
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
>
Wallet software
>
BitcoinJ
>
Get unspent outputs for given address?
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: Get unspent outputs for given address? (Read 2827 times)
Amitabh S
(OP)
Legendary
Activity: 1001
Merit: 1005
Get unspent outputs for given address?
October 08, 2013, 10:13:40 AM
#1
Hi Mike,
Any plans to add feature to get list of unspent outputs for a given address? (Address is not in wallet). Technically this information should be there in every client. Even bitcoind currently does not allow such a query though, so if you implement it, bitcoinj will be "ahead" of bitcoind...
How hard is this to add? Perhaps you can give me pointers to which files to look at.
Coinsecure referral ID:
https://coinsecure.in/signup/refamit
(use this link to signup)
Mike Hearn
Moderator
Legendary
Activity: 1526
Merit: 1172
Re: Get unspent outputs for given address?
October 08, 2013, 02:50:36 PM
#2
I don't have any plans to implement that.
If you wanted to implement it, you'd do so by adding code to FullPrunedBlockStore. Unlike most block stores it's based on a full-blown embedded SQL database, which means it's very slow, but you can fairly easily add new tables and extend the queries as necessary. I haven't tried it, but I don't think it would be very difficult to do. If you implement this please consider submitting a patch for it.
However, do be aware that bitcoinj full verification mode is not designed for speed, at all. If you care about performance it would be better to extend bitcoind to support this using an additional LevelDB.
If you want this to make a web hosted wallet though, I'd suggest to think carefully about whether you really want to do that. It's a very painful endeavour.
Amitabh S
(OP)
Legendary
Activity: 1001
Merit: 1005
Re: Get unspent outputs for given address?
October 21, 2013, 09:39:01 AM
#3
Hi Mike,
Thanks for the reply. I will try to do as you suggested. From your post, I take it that full verification mode is necessary to do what I want.
Coinsecure referral ID:
https://coinsecure.in/signup/refamit
(use this link to signup)
themgp
Jr. Member
Activity: 56
Merit: 1
Re: Get unspent outputs for given address?
January 07, 2014, 06:44:40 AM
#4
I've been wanting the same information without the full block chain in a decentralized manner. AFAIK, SPV does work to get this information since its not in the headers.
I've been looking into getting the information from Electrum servers (see
https://github.com/spesmilo/electrum/blob/master/lib/wallet.py#L1023
). My lack of Python knowledge has been holding me back a little on extracting what i need. But it is a way to get the information without a single point of failure.
Feel free to write up a nice implementation in Java for me.
Mike Hearn
Moderator
Legendary
Activity: 1526
Merit: 1172
Re: Get unspent outputs for given address?
January 07, 2014, 10:11:29 AM
#5
Someone seems to be tackling the first parts of that - look for the threads by drvillo on the mailing list. Once he has made the simple change suggested there, the FullPrunedBlockStore will receive full blocks whilst the chain is being downloaded (as well as the utxo deltas). You can then insert the contents of the blocks into SQL tables in the manner that any database app would, it's not very complicated. There's a ton of interest in this feature so I'm sure it'll be implemented by someone soon.
Pages: [
1
]
Print
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
>
Wallet software
>
BitcoinJ
>
Get unspent outputs for given address?
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Wallet software
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=====> Mycelium
=====> Hardware wallets
=> Mining
===> Mining support
===> Pools
===> Mining software (miners)
===> Hardware
=====> Group buys
===> Mining speculation
=> Bitcoin Technical Support
=> Project Development
-----------------------------
Economy
-----------------------------
=> Economics
===> Speculation
=> Marketplace
===> Goods
=====> Computer hardware
=====> Digital goods
=======> Invites & Accounts
=====> Collectibles
===> Services
===> Currency exchange
===> Gambling
=====> Games and rounds
=====> Investor-based games
=====> Gambling discussion
===> Lending
=====> Long-term offers
===> Securities
===> Auctions
===> Service Announcements
=====> Micro Earnings
===> Service Discussion
=====> Web Wallets
=====> Exchanges
=> Trading Discussion
===> Scam Accusations
===> Reputation
-----------------------------
Other
-----------------------------
=> Meta
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Serious discussion
===> Ivory Tower
=> Archival
===> New forum software
===> Корзина
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
===> MultiBit
-----------------------------
Alternate cryptocurrencies
-----------------------------
=> Altcoin Discussion
=> Announcements (Altcoins)
===> Tokens (Altcoins)
=> Mining (Altcoins)
===> Pools (Altcoins)
=> Marketplace (Altcoins)
===> Service Announcements (Altcoins)
===> Service Discussion (Altcoins)
===> Bounties (Altcoins)
=> Speculation (Altcoins)
-----------------------------
Local
-----------------------------
=> العربية (Arabic)
===> العملات البديلة (Altcoins)
=====> النقاشات
===> إستفسارات و أسئلة المبتدئين
===> التعدين
===> النقاشات الأخرى
===> منصات التبادل
=> Bahasa Indonesia (Indonesian)
===> Marketplace (Bahasa Indonesia)
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
===> Trading dan Spekulasi
===> Ekonomi, Politik, dan Budaya
===> Topik Lainnya
=> Español (Spanish)
===> Mercado y Economía
=====> Servicios
=====> Trading y especulación
===> Hardware y Minería
===> Esquina Libre
===> Mercadillo
=====> Mexico
=====> Argentina
=====> España
=====> Centroamerica y Caribe
===> Primeros pasos y ayuda
===> Altcoins (criptomonedas alternativas)
=====> Minería de altcoins
=====> Servicios
=====> Tokens (Español)
=> 中文 (Chinese)
===> 跳蚤市场
===> 山寨币
===> 媒体
===> 挖矿
===> 离题万里
=> Hrvatski (Croatian)
===> Trgovina
===> Altcoins (Hrvatski)
=====> Announcements (Hrvatski)
===> Off-topic (Hrvatski)
=> Deutsch (German)
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Altcoins (Deutsch)
=====> Announcements (Deutsch)
===> Marktplatz
=====> Auktionen
=====> Suche
=====> Biete
=> Ελληνικά (Greek)
===> Αγορά
===> Mining Discussion (Ελληνικά)
===> Altcoins (Ελληνικά)
=====> Altcoin Announcements (Ελληνικά)
=====> Altcoin Mining (Ελληνικά)
=> עברית (Hebrew)
=> Français
===> Actualité et News
===> Débutants
===> Discussions générales et utilisation du Bitcoin
===> Mining et Hardware
===> Économie et spéculation
===> Place de marché
=====> Échanges
=====> Produits et services
=====> Petites annonces
===> Le Bitcoin et la loi
===> Wiki, documentation et traduction
===> Développement et technique
===> Vos sites et projets
===> Hors-sujet
===> Altcoins (Français)
=====> Annonces
=> India
===> Mining (India)
===> Marketplace (India)
===> Regional Languages (India)
===> Press & News from India
===> Alt Coins (India)
===> Buyer/ Seller Reputations (India)
===> Off-Topic (India)
=> Italiano (Italian)
===> Guide (Italiano)
===> Progetti
===> Discussioni avanzate e sviluppo
===> Trading, analisi e speculazione
===> Mercato
=====> Mercato valute
=====> Beni
=====> Servizi
=====> Esercizi commerciali
=====> Hardware/Mining (Italiano)
=====> Gambling (Italiano)
===> Accuse scam/truffe
===> Mining (Italiano)
===> Alt-Currencies (Italiano)
=====> Annunci
===> Raduni/Meeting (Italiano)
===> Crittografia e decentralizzazione
===> Off-Topic (Italiano)
=> 日本語 (Japanese)
===> アルトコイン
=> Nederlands (Dutch)
===> Markt
===> Gokken/lotterijen
===> Mining (Nederlands)
===> Beurzen
===> Alt Coins (Nederlands)
===> Off-topic (Nederlands)
===> Meetings (Nederlands)
=> Nigeria (Naija)
===> Politics and society (Naija)
===> Off-topic (Naija)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Pilipinas
===> Altcoins (Pilipinas)
=====> Altcoin Announcements (Pilipinas)
===> Pamilihan
===> Others (Pilipinas)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=====> Nowe kryptowaluty i tokeny
=====> Tablica ogłoszeń (altcoiny)
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Cepвиcы
=====> Барахолка
=====> Обменники
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Альтернативные криптовалюты
=====> Токены
=====> Бayнти и aиpдpoпы
===> Хайпы
===> Работа
===> Разное
===> Oбcyждeниe Bitcoin
=====> Новости
=====> Юристы
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
=====> Discutii Servicii
===> Minerit
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (Monede Alternative)
=====> Anunturi Monede Alternative
=> Skandinavisk
=> Türkçe (Turkish)
===> Bitcoin Haberleri
===> Pazar Alanı
===> Madencilik
===> Ekonomi
===> Servisler
=====> Fonlar
===> Proje Geliştirme
===> Alternatif Kripto-Paralar
=====> Madencilik (Alternatif Kripto-Paralar)
=====> Duyurular (Alternatif Kripto-Paralar)
===> Konu Dışı
===> Yeni Başlayanlar & Yardım
===> Buluşmalar
=> Other languages/locations
Loading...