one_inch 0.1.1

Rusty API wrapper for the 1inch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Examples for one-inch

This `examples` directory provides practical samples for using the `one-inch` library to interact with the 1inch API.

## Quick Start

To run an example, use `ONE_INCH_API_TOKEN=YOUR_API_KEY cargo run --example [example_name]` from the root of the cloned repository.

## Examples

- `allowance`: How to check the allowance of a token for specified account.
- `approve`: How to get approvement tranaction to change allowance 
- `info` : Get information about available for swapping tokens and about liquidity protocols 
- `swap`: Different examples of usage swap api + error handling.
- `quote`: Pretty the same as `swap` example, but about `quote` api.
- `prices`: Get information about all supported currencies and check price for specific tokens.