View as Markdown

SDK reference · Rails

x402ProfileOf

x402ProfileOf in @provenanceauth/rails/x402, Rails. Agent side: the business's discovery block in a 402's extension, or null (older merchants send none).

Signature

x402ProfileOf(paymentRequired: Pick<X402PaymentRequired, "extensions"> | null | undefined): DiscoveryBlock | null

Parameters

paymentRequiredPick<X402PaymentRequired, "extensions"> | null | undefinedRequired

Returns

DiscoveryBlock | null

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.