2 stable releases

1.2.2 Aug 14, 2021

#11 in #marketplaces

MIT license

95KB
2K SLoC

Rust API client for lethean-api

Distributed Virtual Private Marketplace

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.2.1
  • Package version: 1.2.1
  • Build package: org.openapitools.codegen.languages.RustClientCodegen For more information, please visit https://lt.hn

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 https://dvpm.io

Class Method HTTP request Description
ExplorerApi get_activity GET /v1/explorer/activity
ExplorerApi get_block GET /v1/explorer/chain/block/{id}
ExplorerApi get_emission GET /v1/explorer/chain/emission
ExplorerApi get_mempool GET /v1/explorer/chain/mempool
ExplorerApi get_network_info GET /v1/explorer/chain/stats
ExplorerApi get_outputs_blocks GET /v1/explorer/chain/block/outputs
ExplorerApi get_raw_block_data GET /v1/explorer/chain/block/raw/{id}
ExplorerApi get_raw_transaction_data GET /v1/explorer/chain/transaction/raw/{tx_hash}
ExplorerApi get_transaction GET /v1/explorer/chain/transaction/{tx_hash}
ExplorerApi get_transactions GET /v1/explorer/chain/transactions
ExplorerApi get_version GET /v1/explorer/chain/version
ExplorerApi prove_transfer GET /v1/explorer/validate/transfer
ExplorerApi search_chain GET /v1/explorer/chain/search/{id}
VpnApi list_services GET /v1/services/public-nodes

Documentation For Models

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

cargo doc --open

Author

contact@lethean.io

Dependencies

~5–20MB
~227K SLoC