Interface IX402Signer
Abstracts the signing of an XRPL Payment transaction for x402 payments. Implementations autofill transaction fields and sign locally without submitting to the ledger.
Namespace: Xrpl.X402
Assembly: Xrpl.X402.dll
Syntax
public interface IX402Signer
Properties
| Edit this page View SourcePayerAddress
Classic XRPL address of the account that signs and funds payments.
Declaration
string PayerAddress { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourcePrepareAndSignAsync(Payment, int?, CancellationToken)
Autofill + locally sign the payment. MUST NOT submit. Returns signed tx_blob (hex).
When maxTimeoutSeconds is provided, the signed transaction's
LastLedgerSequence is capped so the payment expires no later than that many
seconds from now (never extended beyond the autofill default).
Declaration
Task<string> PrepareAndSignAsync(Payment payment, int? maxTimeoutSeconds = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Payment | payment | |
| int? | maxTimeoutSeconds | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<string> |