XrplCSharp

A pure C# implementation for interacting with the XRP Ledger. This library simplifies complex XRP Ledger operations including serialization, transaction signing, wallet management, and network communication.

Packages

Xrpl.AddressCodec

Functions for encoding and decoding XRP Ledger addresses and seeds.

  • XrplAddressCodec - Main address encoding/decoding class
  • XrplCodec - Seed and key encoding utilities
  • B58 - Base58 encoding implementation

Xrpl.BinaryCodec

Functions for encoding objects into the XRP Ledger's canonical binary format and decoding them.

  • XrplBinaryCodec - Main binary codec class
  • Types - Serializable type implementations
  • Binary - Binary parsing and serialization

Xrpl.Keypairs

Low-level functions for creating and using cryptographic keys with the XRP Ledger.

  • XrplKeypairs - Key generation and signing
  • Ed25519 - ED25519 algorithm implementation
  • K256 - SECP256K1 algorithm implementation

Xrpl.Client

WebSocket client for communicating with XRP Ledger nodes.

  • XrplClient - Main client class
  • Connection - Connection management
  • Models - Request/Response models

Xrpl.X402

x402 (HTTP-402) agentic payments client for the XRP Ledger — autonomously pay for HTTP resources in XRP or RLUSD. See the x402 Agentic Payments Guide.

  • X402PaymentHandler - DelegatingHandler that pays 402 challenges
  • X402ClientOptions - Network, spending caps, intent binding
  • X402IntentBinding - InvoiceID / Memo binding modes

Xrpl.X402.AspNetCore

ASP.NET Core server middleware to require an x402 payment for an endpoint.

  • X402PaymentExtensions - RequirePayment endpoint filter
  • LedgerSettlingFacilitator - settles locally
  • T54Facilitator - delegates to a t54 facilitator

Quick Start

using Xrpl.Client;

// Create and connect client
var client = new XrplClient("wss://s.altnet.rippletest.net:51233");
await client.Connect();

// Get account info
var response = await client.Request(new AccountInfoRequest 
{ 
    Account = "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" 
});

// Disconnect when done
await client.Disconnect();

Documentation

Guide EN RU
Connection Guide English Русский
Error Classifier English Русский
Cross-Chain Bridge English Русский
Vault Guide English Русский
Lending Protocol English Русский
x402 Agentic Payments English Русский
  • API Reference - Full API documentation
  • Edit this page
In this article
Back to top Generated by DocFX