Skip to content

X402ResourceInfo

Defined in: src/x402/types.ts:105

Describes the resource being paid for.

In v2 this object lives at the top level of X402PaymentRequiredResponse (and is echoed back optionally inside X402PaymentPayload), so that a single payment offer can describe one resource served at one URL.

Properties

description?

readonly optional description?: string

Defined in: src/x402/types.ts:107


iconUrl?

readonly optional iconUrl?: string

Defined in: src/x402/types.ts:111


mimeType?

readonly optional mimeType?: string

Defined in: src/x402/types.ts:108


serviceName?

readonly optional serviceName?: string

Defined in: src/x402/types.ts:109


tags?

readonly optional tags?: readonly string[]

Defined in: src/x402/types.ts:110


url

readonly url: string

Defined in: src/x402/types.ts:106