1 unstable release

0.0.1 Feb 23, 2024

#98 in #step

MIT license

34KB
965 lines

rango-sdk

Unofficial Rango SDK for Rust

Usage

First you need to initialize your client:

let rango = Client::new(
        "put-a-device-id-for-your-client",
        "YOUR_API_KEY",
        None,
    );

Then you can use available methods to interact with rango.

Examples can be found here.

Status

Basic API Checklist

Title Status
Meta (chains,swappers,messaging_protocols)
/meta
/quote
/is-approved
/status
/balance
/swap
/report-tx

Multi API Checklist

Not implemented.


lib.rs:

Unofficial Rango SDK for Rust

Rango Exchange is providing two types of API for interacting with its services:

  1. Single step (a.k.a Basic API)
  2. 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;

Dependencies

~2.4–3.5MB
~86K SLoC