#swap #quote #model #one-click-sdk-rs

one-click-sdk-rs

API for One-Click Swaps

1 unstable release

new 0.1.0 May 7, 2025

#17 in Magic Beans

Unlicense

44KB
795 lines

Rust API client for one-click-sdk-rs

API for One-Click Swaps

Overview

This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.

  • API version: 0.1
  • Package version: 0.1
  • Generator version: 7.13.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder in a directory named one-click-sdk-rs and add the following to Cargo.toml under [dependencies]:

one-click-sdk-rs = { path = "./one-click-sdk-rs" }

Documentation for API Endpoints

All URIs are relative to https://1click.chaindefuser.com

Class Method HTTP request Description
OneClickApi get_execution_status GET /v0/status Check swap execution status
OneClickApi get_quote POST /v0/quote Request a swap quote
OneClickApi get_tokens GET /v0/tokens Get supported tokens
OneClickApi submit_deposit_tx POST /v0/deposit/submit Submit deposit transaction hash

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author

Dependencies

~4–20MB
~199K SLoC