# Gavin Andresen # 2012-10-04 21:48:14 # https://bitcointalk.org/index.php?topic=115488.msg1245952#msg1245952 @s{quotedtext} @s{quotedtext} @p{brk} Transactions do not have an input address. @p{par} They have one or more inputs, which may or may not correspond to one or more addresses. @p{par} If you have a CScript, then you can call: @p{brk} Code: bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet); @p{brk} bool ExtractDestinations(const CScript& scriptPubKey, txnouttype& typeRet, std::vector@p{lt}CTxDestination@s{gt}& addressRet, int& nRequiredRet); @p{brk} @p{brk} What are you trying to do? @p{brk}