Crates.io | xrpl_sdk_ws |
lib.rs | xrpl_sdk_ws |
version | 0.12.0 |
source | src |
created_at | 2022-03-05 08:40:35.17963 |
updated_at | 2023-08-14 09:06:02.83856 |
description | A strongly-typed client for the XRP Ledger WebSocket API |
homepage | |
repository | https://github.com/gmosx/xrpl_sdk_rust/tree/main/xrpl_sdk_jsonrpc |
max_upload_size | |
id | 543927 |
size | 21,204 |
A strongly-typed client for the XRP Ledger WebSocket API.
This crate is an unofficial, community-driven effort.
More information about this crate can be found in the crate documentation.
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);
}
This work is under active development and the API is expected to change.
Pull requests, issues and comments are welcome! Make sure to add tests for new features and bug fixes.
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.