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?
readonlyoptionalamount?:string
Defined in: src/x402/types.ts:227
errorMessage?
readonlyoptionalerrorMessage?:string
Defined in: src/x402/types.ts:223
errorReason?
readonlyoptionalerrorReason?:string
Defined in: src/x402/types.ts:222
extensions?
readonlyoptionalextensions?:Record<string,unknown>
Defined in: src/x402/types.ts:228
extra?
readonlyoptionalextra?:Record<string,unknown>
Defined in: src/x402/types.ts:229
network
readonlynetwork:"eip155:137"|"eip155:80002"
Defined in: src/x402/types.ts:226
payer?
readonlyoptionalpayer?:`0x${string}`
Defined in: src/x402/types.ts:224
success
readonlysuccess:boolean
Defined in: src/x402/types.ts:221
transaction
readonlytransaction:string
Defined in: src/x402/types.ts:225