Class XrplWalletX402Signer
Default IX402Signer implementation that uses an in-memory XrplWallet to autofill and locally sign an XRPL Payment transaction without submitting it.
Inheritance
object
XrplWalletX402Signer
Implements
Namespace: Xrpl.X402
Assembly: Xrpl.X402.dll
Syntax
public sealed class XrplWalletX402Signer : IX402Signer
Constructors
| Edit this page View SourceXrplWalletX402Signer(IXrplClient, XrplWallet)
Initializes a new instance of XrplWalletX402Signer.
Declaration
public XrplWalletX402Signer(IXrplClient client, XrplWallet wallet)
Parameters
| Type | Name | Description |
|---|---|---|
| IXrplClient | client | Connected XRPL client used to autofill transaction fields. |
| XrplWallet | wallet | Wallet whose private key signs the transaction. |
Properties
| Edit this page View SourcePayerAddress
Classic XRPL address of the account that signs and funds payments.
Declaration
public 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
public 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> |