Creates a new XRP chain adapter instance
Configuration parameters
XRP Ledger RPC endpoint URL
Instance of the chain signature contract for MPC operations
Optional
client?: ClientOptional XRPL client instance (for testing)
Retrieves the XRP balance for a given address
The XRP address to query
Promise resolving to balance information with amount in drops and decimal places
Derives an XRP address and compressed public key from the given path and predecessor
The predecessor for key derivation
The derivation path
Promise resolving to the derived address and compressed public key
Serializes an XRP unsigned transaction to a JSON string
The unsigned transaction to serialize
JSON string representation of the transaction
Deserializes a JSON string back to an XRP unsigned transaction
The JSON string to deserialize
The deserialized unsigned transaction
Prepares an XRP transaction for signing by autofilling required fields and generating signing hash
The transaction request containing payment details
Promise resolving to the prepared unsigned transaction and hash to sign
Finalizes transaction signing by applying RSV signatures to the prepared transaction
Object containing the unsigned transaction and RSV signatures
The unsigned transaction to sign
Array of RSV signatures (only first signature is used)
JSON string of the signed transaction ready for broadcast
Generates a DER-encoded transaction signature from RSV signature components
The R component of the signature in hex
The S component of the signature in hex
The V component of the signature (recovery ID)
DER-encoded signature in uppercase hex format
XRP Ledger chain adapter implementation
Provides functionality to interact with the XRP Ledger blockchain including balance queries, address derivation, transaction preparation, signing, and broadcasting.