@asyncio.coroutine
    def get(self, transaction_hash, output_index):
        with contextlib.closing(self.connection.cursor()) as cursor:
            cursor.execute("""
                  SELECT  Value, Script, AssetID, AssetQuantity, OutputType
                  FROM    Outputs
                  WHERE   TransactionHash = ? AND OutputIndex = ?
                """,
                (transaction_hash, output_index))

            result = cursor.fetchone()

            if result is None:
                return None
            else:
                return openassets.protocol.TransactionOutput(
                    result[0],
                    bitcoin.core.script.CScript(result[1]),
                    result[2],
                    result[3],
                    openassets.protocol.OutputType(result[4])
                )
Returns a cached output.
dataset/ETHPy150Open OpenAssets/colorcore/colorcore/caching.py/SqliteCache.get