Skip to content

A Rust SDK for working with the XRP Ledger

Notifications You must be signed in to change notification settings

Inon123/xrpl_sdk_rust

This branch is 23 commits ahead of, 60 commits behind gmosx/xrpl-sdk-rust:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b8f84ad · Nov 24, 2022
Mar 5, 2022
Aug 11, 2022
Nov 24, 2022
Aug 27, 2022
Aug 11, 2022
Nov 14, 2022
Aug 26, 2022
Nov 2, 2022
Mar 4, 2022
Jul 23, 2022
Aug 10, 2022
Aug 6, 2022

Repository files navigation

XRP Ledger SDK

A Rust SDK for working with XRP Ledger APIs.

This project is an unofficial, community-driven effort.

Components

The SDK contains the following high-level crates:

Additionally, low-level crates are provided:

Finally, a convenient CLI is provided to demonstrate example usage:

Usage

JSONRPC Client example

let client = Client::new();

let account = env::var("XRPL_ACCOUNT_ADDRESS").expect("account not defined");

let req = AccountTxRequest::new(&account).limit(5);
let resp = client.call(req).await;

dbg!(&resp);

WebSocket Client example

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

let account = env::var("XRPL_ACCOUNT_ADDRESS").expect("account not defined");

let req = AccountInfoRequest::new(&account).strict(true);
client.call(req).await.expect("cannot send request");

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

Links

Status

The software is under active development (pre-alpha) and the API is expected to change. It's not considered ready for use in production.

Roadmap

  • Support for WebSocket API
  • Introduce XRPL command line client (CLI)

Contributing

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

Contact

For questions, suggestions, etc, you can reach the maintainer on Twitter.

License

Each component of the XRPL SDK is individually licensed. Please check the corresponding directories for more details.

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Copyright

Copyright © 2021-2022 George Moschovitis.

About

A Rust SDK for working with the XRP Ledger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.7%
  • Shell 0.3%