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
Namespace: Xrpl.X402.AspNetCore
Assembly: Xrpl.X402.AspNetCore.dll
Syntax
public sealed class LedgerSettlingFacilitator : IX402Facilitator
Constructors
| Edit this page View SourceLedgerSettlingFacilitator(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 |
Methods
| Edit this page View SourceVerifyAndSettleAsync(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> |