Expand description
Unofficial Rango SDK for Rust
Rango Exchange is providing two types of API for interacting with its services:
- Single step (a.k.a Basic API)
- Multistep (a.k.a Main API)
The Basic API is designed to provide a straightforward integration experience, unless you have specific and unique requirements that necessitate the use of the Main API. You can find more details on Rango’s docs.
NOTE: this crate only supports for single step api.
§Prerequisite
Before doing anything, you need to get your API key first. Here you can find out how you can get a key.
§Usage
Create a clinet:
let rango = Client::new(
"put-a-device-id-for-your-client",
"YOUR_API_KEY",
None,
);
Use available methods to get what you need (e.g. Getting chains):
let result = rango.meta.chains().await;
Modules§
- Initialize a client to send request to server
- Create request to be passed to different methods.