Skip to content

mettadata/thorchain-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust API client for openapi

The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with BEPSwap and Asgardex, users should query THORChain directly.

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: 1.0.0-oas3
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RustClientCodegen

Installation

Put the package under your project folder and add the following to Cargo.toml under [dependencies]:

    openapi = { path = "./generated" }

Documentation for API Endpoints

All URIs are relative to http://127.0.0.1:8080

Class Method HTTP request Description
DefaultApi get_asset_info get /v1/assets Get Asset Information
DefaultApi get_health get /v1/health Get Health
DefaultApi get_network_data get /v1/network Get Network Data
DefaultApi get_nodes get /v1/nodes Get Node public keys
DefaultApi get_pools get /v1/pools Get Asset Pools
DefaultApi get_pools_details get /v1/pools/detail Get Pools Details
DefaultApi get_stakers_address_and_asset_data get /v1/stakers/{address}/pools Get Staker Pool Data
DefaultApi get_stakers_address_data get /v1/stakers/{address} Get Staker Data
DefaultApi get_stakers_data get /v1/stakers Get Stakers
DefaultApi get_stats get /v1/stats Get Global Stats
DefaultApi get_thorchain_proxied_constants get /v1/thorchain/constants Get the Proxied THORChain Constants
DefaultApi get_thorchain_proxied_endpoints get /v1/thorchain/pool_addresses Get the Proxied Pool Addresses
DefaultApi get_thorchain_proxied_lastblock get /v1/thorchain/lastblock Get the Proxied THORChain Lastblock
DefaultApi get_total_vol_changes get /v1/history/total_volume Get Total Volume Changes
DefaultApi get_tx_details get /v1/txs Get details of a tx by address, asset or tx-id
DocumentationApi get_docs get /v1/doc Get Documents
SpecificationApi get_swagger get /v1/swagger.json Get Swagger

Documentation For Models

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

cargo doc --open

About

thorchain-rs client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published