sephynox / xrpl-rust

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

Add high-level methods for ledger #35

Open LimpidCrypto opened 2 years ago

LimpidCrypto commented 2 years ago
  1. The function calls the Fee request method using the WebsocketClient/AsyncWebsocketClient.

  2. The user can decide what type of fee to get. "open" would return the open_ledger_fee field; "minimum" would return the minimum_fee field; "dynamic" would return a calculated fee based on the node's transaction queue size.

fields type explanation
client WebsocketClient/AsyncWebsocketClient A websocket client object.
max_fee Option<u32> The max fee the user want to spend as drops.
fee_type Option<&str> The type of fee to return. Must be one of: "open", "minimum", "dynamic"

Sources:

  1. The function simply calls the Ledger request method and returns the results ledger_index field

  2. The ledger_index field must be set to "validated".

fields type explanation
client WebsocketClient/AsyncWebsocketClient A websocket client object.

Sources:

  1. The function simply calls the Ledger request method and returns the results ledger_index field

  2. The ledger_index field must be set to "open".

fields type explanation
client WebsocketClient/AsyncWebsocketClient A websocket client object.

Sources: