Bitcoin Forum
May 06, 2024, 08:43:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / bitcoind/bitcoin-qt find source address of input on: October 04, 2012, 09:01:56 PM
Im trying to find the input address of a transaction but i can't seem to find out how..  anyone ?

Code:
CWalletTx wtx;
pwalletMain->GetTransaction(uint256(txid), wtx);
CTxIn vin = wtx.vin[0];
CScript scriptSig = vin.scriptSig;

how can I get the source address of that vin .. I dont seem to understand how I can get the address of the scriptsig ..


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!