Skip to content

X402SettlementResponse

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

The JSON body the resource server returns once the facilitator has settled the payment (typically base64-encoded inside an X-PAYMENT-RESPONSE header).

On failure, transaction is an empty string and errorReason is set.

Properties

amount?

readonly optional amount?: string

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


errorMessage?

readonly optional errorMessage?: string

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


errorReason?

readonly optional errorReason?: string

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


extensions?

readonly optional extensions?: Record<string, unknown>

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


extra?

readonly optional extra?: Record<string, unknown>

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


network

readonly network: "eip155:137" | "eip155:80002"

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


payer?

readonly optional payer?: `0x${string}`

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


success

readonly success: boolean

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


transaction

readonly transaction: string

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