#websocket #ledger #api #xrpl #websocket-client

xrpl_ws_client

A strongly-typed client for the XRP Ledger WebSocket API

7 unstable releases

0.16.5 Sep 16, 2024
0.16.4 May 25, 2024
0.16.3 Mar 27, 2024
0.15.0 Sep 24, 2023
0.13.0 Aug 17, 2023

#9 in #xrpl

Download history 1/week @ 2024-06-26 8/week @ 2024-07-03 1/week @ 2024-07-24 176/week @ 2024-09-11 42/week @ 2024-09-18 19/week @ 2024-09-25 8/week @ 2024-10-02

87 downloads per month

Apache-2.0

290KB
7K SLoC

XRP Ledger WebSocket Client

A strongly-typed client for the XRP Ledger WebSocket API.

This crate is an unofficial, community-driven effort.

Crates.io Documentation

More information about this crate can be found in the crate documentation.

Usage

let mut client = Client::connect(DEFAULT_WS_URL)
    .await
    .expect("cannot connect");

let req = AccountInfoRequest::new("r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59").strict(true);

client.call(req).await.expect("cannot send request");

if let Some(msg) = client.messages.next().await {
    dbg!(&msg);
}

Status

This work is under active development and the API is expected to change.

Contributing

Pull requests, issues and comments are welcome! Make sure to add tests for new features and bug fixes.

License

This work is licensed under the Apache-2.0 License. See LICENSE.txt or https://spdx.org/licenses/Apache-2.0.html for details.

Copyright © 2022 Georgios Moschovitis.

Dependencies

~8–15MB
~200K SLoC