View as Markdown

SDK reference · Rails

x402OfferRequired

x402OfferRequired in @provenanceauth/rails/deals, Rails. Seller side: the 402 for a resource sold under a signed offer.

Signature

x402OfferRequired(opts: { resource: X402ResourceInfo | string; accepts: X402PaymentRequirements[]; offer: string; error?: string }): void

Parameters

opts{ resource: X402ResourceInfo | string; accepts: X402PaymentRequirements[]; offer: string; error?: string }Required

Returns

void

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.