XRP Ledger JSONRPC client

A strongly-typed client for the XRP Ledger HTTP JSONRPC API.

This crate is an unofficial, community-driven effort.

Crates.io Documentation

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

Installation

toml [dependencies] xrpl_sdk_jsonrpc = "0.12"

Usage

```rust let client = Client::new();

let account = "...";

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

dbg!(&resp); ```

```rust let client = Client::new();

let account = "..."; let publickey = "..."; let secretkey = "...";

let offer_sequence = 123; // the sequence of the offer to cancel

let tx = Transaction::offercancel(account, offersequence);

let tx = client.prepare_transaction(tx).await?;

let publickey = hex::decode(publickey)?; let secretkey = hex::decode(secretkey)?;

let tx = signtransaction(tx, &publickey, &secret_key);

let txblob = serializetransactiontohex(&tx);

let req = SubmitRequest::new(&tx_blob); let resp = client.call(req).await?;

dbg!(resp); ```

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

Copyright © 2022 Georgios Moschovitis.