Skip to main content

Mayanode API

Project description

xchainpy2-mayanode

Mayanode REST API.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: 1.111.0
  • Package version: 1.111.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import xchainpy2_mayanode 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import xchainpy2_mayanode

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import xchainpy2_mayanode
from xchainpy2_mayanode.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = xchainpy2_mayanode.BlockApi(xchainpy2_mayanode.ApiClient(configuration))
height = 789 # int | optional block height, defaults to current tip (optional)

try:
    api_response = api_instance.block(height=height)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlockApi->block: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to /

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

Documentation For Authorization

All endpoints do not require authorization.

Author

devs@mayachain.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xchainpy2_mayanode-1.111.0.tar.gz (82.8 kB view details)

Uploaded Source

Built Distribution

xchainpy2_mayanode-1.111.0-py3-none-any.whl (271.1 kB view details)

Uploaded Python 3

File details

Details for the file xchainpy2_mayanode-1.111.0.tar.gz.

File metadata

  • Download URL: xchainpy2_mayanode-1.111.0.tar.gz
  • Upload date:
  • Size: 82.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.14

File hashes

Hashes for xchainpy2_mayanode-1.111.0.tar.gz
Algorithm Hash digest
SHA256 ff7638ef49da9e10ad7e5301ecd5fee9a11517a2685bffd4cf6d1548abe4c384
MD5 4af392f8fa09d5b0fde54b6ab05e563c
BLAKE2b-256 e3cb0ab783fc061fbfc3a552c31ca1b31dcbc19c7906385fa2fd4a8b988fcdac

See more details on using hashes here.

File details

Details for the file xchainpy2_mayanode-1.111.0-py3-none-any.whl.

File metadata

File hashes

Hashes for xchainpy2_mayanode-1.111.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46b9a697148327742695c011c53e6cdfb43deccf5eaccfb5237cf611507355a1
MD5 62c3f6b436a4fb8b957a94ea8be7a509
BLAKE2b-256 788fa036b74ccbdd60d36f5d8690aa240708b421132fd3299045679842bd142d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page