Bitcoin Forum
April 23, 2018, 12:44:36 PM
Welcome,
Guest
. Please
login
or
register
.
News
: Latest stable version of Bitcoin Core:
0.16.0
[
Torrent
]. (
New!
)
Home
Help
Search
Donate
Login
Register
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
(Moderators:
gmaxwell
,
achow101
) >
destination address of a mined block
Pages: [
1
]
« previous topic
next topic »
Print
Author
Topic: destination address of a mined block (Read 2894 times)
collapse
Full Member
Offline
Activity: 177
Merit: 102
step forward
destination address of a mined block
October 12, 2013, 06:57:38 PM
#1
How to obtain destination address of a mined block?
Similar to out address:
Code:
const CTxOut& txout = tx.vout[0];
txnouttype type;
vector<CTxDestination> addresses;
int nRequired;
if (ExtractDestinations(txout.scriptPubKey, type, addresses, nRequired)){
BOOST_FOREACH(const CTxDestination& addr, addresses){
printf("out_address:%s\n",CBitcoinAddress(addr).ToString().c_str());
}
Elacoin
:FairElasticMining,
Betacoin
:TxComment,
NTRN
:CryptoCourses,
BitcoinP2PCash
,
CashBitcoinP2P
,DOGE:
WowSuchCurrency
,
SHND
:x2Test,...,
Americancoin
,
CRC
,
Bitcoin
,...(+)
[if (blocknumber > 115000) maxblocksize=
largerlimit
] [I don't think the threshold should ever be 0. We should always allow
at least some free transactions.
]
1524487476
Hero Member
Offline
Posts: 1524487476
Ignore
1524487476
1524487476
#2
1524487476
Report to moderator
1524487476
Hero Member
Offline
Posts: 1524487476
Ignore
1524487476
1524487476
#2
1524487476
Report to moderator
1524487476
Hero Member
Offline
Posts: 1524487476
Ignore
1524487476
1524487476
#2
1524487476
Report to moderator
OWN UNIQUE
SPORT CHAMPION
CONTRACTS AND
EARN ETH
CRYPTOCHAMPS.CO | COLLECTIBLES GAME
Play now!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Advertise here.
1524487476
Hero Member
Offline
Posts: 1524487476
Ignore
1524487476
1524487476
#2
1524487476
Report to moderator
1524487476
Hero Member
Offline
Posts: 1524487476
Ignore
1524487476
1524487476
#2
1524487476
Report to moderator
maaku
Legendary
Offline
Activity: 905
Merit: 1000
Re: destination address of a mined block
October 15, 2013, 04:05:21 PM
#2
Coinbase outputs, as implemented by the reference client, are not one of the standard address formats.
What is your question, exactly?
I'm an independent developer
working on bitcoin-core
, making my living off community donations.
If you like my work, please consider donating yourself:
13snZ4ZyCzaL7358SmgvHGC9AxskqumNxP
collapse
Full Member
Offline
Activity: 177
Merit: 102
step forward
Re: destination address of a mined block
October 15, 2013, 06:06:00 PM
#3
In bitcoin-qt, seems that each mined block goes to new bitcoin address, first transaction output (mined block).
I was searching for "default address" for mined blocks, but do not seems possible. Createnewblock should be modified for this.
Elacoin
:FairElasticMining,
Betacoin
:TxComment,
NTRN
:CryptoCourses,
BitcoinP2PCash
,
CashBitcoinP2P
,DOGE:
WowSuchCurrency
,
SHND
:x2Test,...,
Americancoin
,
CRC
,
Bitcoin
,...(+)
[if (blocknumber > 115000) maxblocksize=
largerlimit
] [I don't think the threshold should ever be 0. We should always allow
at least some free transactions.
]
maaku
Legendary
Offline
Activity: 905
Merit: 1000
Re: destination address of a mined block
October 15, 2013, 07:19:35 PM
#4
It uses a public key from your reserved key pool, in a public-key script (NOT a pubkey-hash script -- there is no address which specifies this script type used in coinbase transactions). You can use 'getblocktemplate' to construct your own coinbase, with whatever script you desire.
I'm an independent developer
working on bitcoin-core
, making my living off community donations.
If you like my work, please consider donating yourself:
13snZ4ZyCzaL7358SmgvHGC9AxskqumNxP
wiggi
Sr. Member
Offline
Activity: 374
Merit: 250
Re: destination address of a mined block
October 16, 2013, 03:27:51 PM
#5
Quote from: collapse on October 12, 2013, 06:57:38 PM
How to obtain destination address of a mined block?
If the block is already mined, you could re-use code from 'getblock' and 'getrawtransaction'.
(shows address of a mined block in plain text if verbose==1,
block reward is usually (not sure if always) the 1st tx in the list from 'getblock')
Pages: [
1
]
Print
Bitcoin Forum
>
Bitcoin
>
Development & Technical Discussion
(Moderators:
gmaxwell
,
achow101
) >
destination address of a mined block
« previous topic
next topic »
Jump to:
Please select a destination:
-----------------------------
Bitcoin
-----------------------------
=> Bitcoin Discussion
===> Legal
===> Press
===> Meetups
===> Important Announcements
=> Development & Technical Discussion
===> Alternative clients
=====> MultiBit
=====> Electrum
=====> Bitcoin Wallet for Android
=====> BitcoinJ
=====> Armory
=====> Mycelium
=> 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
===> New forum software
===> Bitcoin Wiki
=> Politics & Society
=> Beginners & Help
=> Off-topic
=> Serious discussion
===> Ivory Tower
=> Archival
===> Корзина
===> CPU/GPU Bitcoin mining hardware
===> Chinese students
===> Obsolete (buying)
===> Obsolete (selling)
-----------------------------
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)
===> Jual Beli
===> Mining (Bahasa Indonesia)
===> Altcoins (Bahasa Indonesia)
=> 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)
=> Deutsch (German)
===> Biete
===> Suche
===> Anfänger und Hilfe
===> Mining (Deutsch)
===> Trading und Spekulation
===> Projektentwicklung
===> Off-Topic (Deutsch)
===> Treffen
===> Presse
===> Auktionen
===> Altcoins (Deutsch)
=> Ελληνικά (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)
=> 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)
=> 한국어 (Korean)
===> 대체코인 Alt Coins (한국어)
=> Philippines
===> Altcoins (Philippines)
=> Polski
===> Tablica ogłoszeń
===> Alternatywne kryptowaluty
=> Português (Portuguese)
===> Primeiros Passos (Iniciantes)
===> Economia & Mercado
===> Mineração em Geral
===> Desenvolvimento & Discussões Técnicas
===> Criptomoedas Alternativas
===> Brasil
===> Portugal
=> Русский (Russian)
===> Новички
===> Новости
===> Бизнес
=====> Барахолка
=====> Обменники
===> Идеи
===> Кодеры
===> Майнеры
===> Политика
===> Трейдеры
===> Альтернативные криптовалюты
=====> Токены
===> Хайпы
===> Юристы
===> Работа
===> Разное
=> Română (Romanian)
===> Anunturi importante
===> Offtopic
===> Market
===> Minerit
===> Tutoriale
===> Bine ai venit!
===> Presa
===> Altcoins (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
Sponsored by
Private Internet Access
, a Bitcoin-accepting
VPN
.
Loading...