def METHOD_NAME(state: State, token_txhash: bytes):
    try:
        data = state._db.get_raw(b'token_' + token_txhash)
        return TokenMetadata.deserialize(data)
    except KeyError:
        pass
    except Exception as e:
        logger.error('[get_token_metadata] %s', e)
    return None