Crate one_inch

Source
Expand description

§one-inch

This crate provides tools for interacting with the 1inch HTTP API, including swapping, pricing, allowance approval, and other functionalities related to decentralized finance operations.

A lot of usage examples can be found in the examples directory of the repository, which demonstrate how to effectively utilize the library for various operations. Check out the examples here: 1inch-rs examples.

Modules§

client
The client module for interacting with the 1inch API. Offers methods to make requests to the API and handle responses.
common
Common structures definitions shared by other modules.
swap
Functions for performing swaps through the 1inch API, including finding optimal swap routes and executing swap transactions.
tokens
Modules related to tokens, including retrieving supported currencies, token metadata, getting its price.

Macros§

builder_setter