sephynox / xrpl-rust

A 100% Rust library to interact with the XRPL. XRPL Grant Winner
https://crates.io/crates/xrpl-rust
ISC License
16 stars 8 forks source link

Add basic high-level methods #21

Closed LimpidCrypto closed 1 year ago

LimpidCrypto commented 1 year ago

Need to be done: https://github.com/sephynox/xrpl-rust/issues/17

We should have high-level methods that predefine often used functions in combination with the public XRP Ledger Server API methods.

Structure

Every function has a client argument. Its type is always only one of WebsocketClient and AsyncWebsocketClient. When writing sync high-level methods use WebsocketClient, when writing async use AsyncWebsocketClient as type.


All these functions should be async. But we should have sync functions which simply call the async ones.

LimpidCrypto commented 1 year ago

For clarity reasons, every topic (account, ledger, …) gets its own issue.