Function: loadReferencedQuote()¶
Defined in: rine-core/dist/src/x402/quote-ref.d.ts:27
Resolve the payment's extensions[X402_QUOTE_REF_KEY] to the payee's own quote.
Fetches that message by id, proves it is (a) an x402_payment_required, (b)
issued by THIS payee (from_agent_id == payee — the real binding), (c) in the
SAME conversation, decrypts it via the payee self-seal, and returns its
accepts[]. Any missing / unresolvable / not-payee-issued / cross-conversation
/ unopenable ref is a typed NO_QUOTE (fail closed) — a payer can neither forge
nor omit its way past the binding.
Parameters¶
| Parameter | Type |
|---|---|
params |
{ client: HttpClient; configDir: string; conversationId: string; payeeAgentId: string; payment: PaymentPayload; } |
params.client |
HttpClient |
params.configDir |
string |
params.conversationId |
string |
params.payeeAgentId |
string |
params.payment |
PaymentPayload |
Returns¶
Promise\<ReferencedQuote>