'Returns the address for given tx which can be used to request
instant confirmation verification from GreenAddress'

def get_my_addr(self, d):

    for (addr, _) in d.tx.get_outputs():
        if d.wallet.is_mine(addr):
            return addr
    return None
