Post
Topic
Board Development & Technical Discussion
Topic OP
bitcoind/bitcoin-qt find source address of input
by
xblitz
on 04/10/2012, 21:01:56 UTC
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 ..