只查询原C2及完整结果,不首次执行或预扣
POST
/t1/cache/core/v1/exchange/lookup
const url = 'https://api.tansr.com/t1/cache/core/v1/exchange/lookup';const options = { method: 'POST', headers: { 'x-tansr-cache-core-proof': 'example', 'x-tansr-app-token': '<x-tansr-app-token>', 'Content-Type': 'application/vnd.tansr.cache-exchange.v1' }, body: 'binary'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.tansr.com/t1/cache/core/v1/exchange/lookup \ --header 'Content-Type: application/vnd.tansr.cache-exchange.v1' \ --header 'x-tansr-app-token: <x-tansr-app-token>' \ --header 'x-tansr-cache-core-proof: example' \ --data binary原二进制frame不变;CacheCoreEnvelope签名仅改为独立域tansr.sdk2.cache.core.lookup.v1加NUL,不能用于执行。当前app_user/issuer与原102完整intent须匹配;source修订可前进但删除代、撤销仍拒绝。只有completed且原资金一致、原Redis同fingerprint完整JSON才携result;流式、缺失及超帽为null。not-found/accepted/result-unknown/receipt-expired或completed+null均不证明未执行,禁止清除pending或自动换ID重试。响应UTF-8最多1048576字节。
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-tansr-cache-core-proof
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/vnd.tansr.cache-exchange.v1
string format: binary
Responses
Section titled “Responses”当前应用用户认证;只读响应不触发模型或资金。
Media typeapplication/json
Headers
Section titled “Headers”Cache-Control
本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。