5 releases (3 stable)

1.113.0 Dec 3, 2024
1.113.0-1 Dec 4, 2024
1.112.0 Nov 27, 2024
1.111.2 Nov 26, 2024

#315 in Cryptography

Download history 322/week @ 2024-11-25 384/week @ 2024-12-02

706 downloads per month

Unlicense

230KB
4K SLoC

Rust API client for mayachain_rs

Mayanode REST API.

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

Installation

Put the package under your project folder in a directory named mayachain_rs and add the following to Cargo.toml under [dependencies]:

mayachain_rs = { path = "./mayachain_rs" }

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
BlockApi block GET /mayachain/block
HealthApi ping GET /mayachain/ping
InvariantsApi invariant GET /mayachain/invariant/{invariant}
InvariantsApi invariants GET /mayachain/invariants
LiquidityProvidersApi liquidity_provider GET /mayachain/pool/{asset}/liquidity_provider/{address}
LiquidityProvidersApi liquidity_providers GET /mayachain/pool/{asset}/liquidity_providers
MayanamesApi mayaname GET /mayachain/mayaname/{name}
MimirApi mimir GET /mayachain/mimir
MimirApi mimir_admin GET /mayachain/mimir/admin
MimirApi mimir_key GET /mayachain/mimir/key/{key}
MimirApi mimir_node GET /mayachain/mimir/node/{address}
MimirApi mimir_nodes GET /mayachain/mimir/nodes_all
NetworkApi ban GET /mayachain/ban/{address}
NetworkApi constants GET /mayachain/constants
NetworkApi inbound_addresses GET /mayachain/inbound_addresses
NetworkApi lastblock GET /mayachain/lastblock
NetworkApi lastblock_chain GET /mayachain/lastblock/{chain}
NetworkApi network GET /mayachain/network
NetworkApi ragnarok GET /mayachain/ragnarok
NetworkApi version GET /mayachain/version
NodesApi node GET /mayachain/node/{address}
NodesApi nodes GET /mayachain/nodes
PolApi pol GET /mayachain/pol
PoolsApi pool GET /mayachain/pool/{asset}
PoolsApi pools GET /mayachain/pools
QueueApi queue GET /mayachain/queue
QueueApi queue_outbound GET /mayachain/queue/outbound
QueueApi queue_scheduled GET /mayachain/queue/scheduled
QueueApi queue_swap GET /mayachain/queue/swap
QuoteApi quotesaverdeposit GET /mayachain/quote/saver/deposit
QuoteApi quotesaverwithdraw GET /mayachain/quote/saver/withdraw
QuoteApi quoteswap GET /mayachain/quote/swap
SaversApi saver GET /mayachain/pool/{asset}/saver/{address}
SaversApi savers GET /mayachain/pool/{asset}/savers
StreamingSwapApi stream_swap GET /mayachain/swap/streaming/{hash}
StreamingSwapApi stream_swaps GET /mayachain/swaps/streaming
TssApi keygen_pubkey GET /mayachain/keygen/{height}/{pubkey}
TssApi keysign GET /mayachain/keysign/{height}
TssApi keysign_pubkey GET /mayachain/keysign/{height}/{pubkey}
TssApi metrics GET /mayachain/metrics
TssApi metrics_keygen GET /mayachain/metric/keygen/{pubkey}
TransactionsApi tx GET /mayachain/tx/{hash}
TransactionsApi tx_signers GET /mayachain/tx/details/{hash}
TransactionsApi tx_signers_old GET /mayachain/tx/{hash}/signers
TransactionsApi tx_stages GET /mayachain/tx/stages/{hash}
TransactionsApi tx_status GET /mayachain/tx/status/{hash}
VaultsApi asgard GET /mayachain/vaults/asgard
VaultsApi vault GET /mayachain/vaults/{pubkey}
VaultsApi vault_pubkeys GET /mayachain/vaults/pubkeys
VaultsApi yggdrasil GET /mayachain/vaults/yggdrasil

Documentation For Models

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

cargo doc --open

Author

devs@mayachain.org

Dependencies

~5–20MB
~239K SLoC