ChainSig.js Documentation - v1.1.6
    Preparing search index...

    XRP Ledger chain adapter implementation

    Provides functionality to interact with the XRP Ledger blockchain including balance queries, address derivation, transaction preparation, signing, and broadcasting.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Retrieves the XRP balance for a given address

      Parameters

      • address: string

        The XRP address to query

      Returns Promise<{ balance: bigint; decimals: number }>

      Promise resolving to balance information with amount in drops and decimal places

      Error if the balance query fails for reasons other than account not found

    • Derives an XRP address and compressed public key from the given path and predecessor

      Parameters

      • predecessor: string

        The predecessor for key derivation

      • path: string

        The derivation path

      Returns Promise<{ address: string; publicKey: string }>

      Promise resolving to the derived address and compressed public key

      Error if public key derivation fails

    • Generates a DER-encoded transaction signature from RSV signature components

      Parameters

      • r: string

        The R component of the signature in hex

      • s: string

        The S component of the signature in hex

      • v: number

        The V component of the signature (recovery ID)

      Returns string

      DER-encoded signature in uppercase hex format

    • Broadcasts a signed XRP transaction to the network

      Parameters

      • txSerialized: string

        JSON string of the signed transaction

      Returns Promise<{ hash: string }>

      Promise resolving to the transaction hash

      Error if transaction submission fails or is rejected by the network