Im trying to find the input address of a transaction but i can't seem to find out how.. anyone ?
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 ..