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()); }