Skip to Content
Paycose Docs
X402 facilitators

X402 facilitators

The x402.settle_result object

The outcome of settling a signed x402 payment on-chain, in the shape of the x402 v2 facilitator /settle answer. The USDC goes straight to your wallet, and Paycose records the payment as a crypto payment intent. settlement_pending means the outcome is not known yet, not that it failed; the charge's webhooks tell you when it lands.

Attributes

  • successbooleanRequired

    true when the transfer landed on-chain.

  • transactionstring

    Hash of the settlement transaction, once one was signed.

  • networkstring

    CAIP-2 ID of the network the payment settles on.

  • payerstring

    Address of the wallet that paid.

  • errorReasonstring

    x402 reason the settle did not succeed, such as settlement_pending while the transaction is unconfirmed. Reasons starting with paycose_ are Paycose's own, for example paycose_platform_credit_insufficient when your platform credit cannot cover the fee. Omitted on success.

  • replayedboolean

    true when an earlier call already settled this payment. Do not serve the resource for it again.