Show / Hide Table of Contents

Class LedgerSettlingFacilitator

Production-quality x402 facilitator that decodes a signed XRPL transaction blob, validates the destination address, submits the transaction to the ledger, and waits for a validated outcome.

Inheritance
object
LedgerSettlingFacilitator
Implements
IX402Facilitator
Namespace: Xrpl.X402.AspNetCore
Assembly: Xrpl.X402.AspNetCore.dll
Syntax
public sealed class LedgerSettlingFacilitator : IX402Facilitator

Constructors

| Edit this page View Source

LedgerSettlingFacilitator(IXrplClient)

Initializes a new instance of LedgerSettlingFacilitator.

Declaration
public LedgerSettlingFacilitator(IXrplClient client)
Parameters
Type Name Description
IXrplClient client

Connected XRPL client used to submit transactions.

Exceptions
Type Condition
ArgumentNullException

Thrown when client is null.

Methods

| Edit this page View Source

VerifyAndSettleAsync(PaymentSignatureEnvelope, CancellationToken)

Verify the signed payment matches the accepted requirement and settle it on-ledger.

Declaration
public Task<PaymentResponseEnvelope> VerifyAndSettleAsync(PaymentSignatureEnvelope envelope, CancellationToken cancellationToken = default)
Parameters
Type Name Description
PaymentSignatureEnvelope envelope
CancellationToken cancellationToken
Returns
Type Description
Task<PaymentResponseEnvelope>

Implements

IX402Facilitator
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX