Thornode API
Project description
xchainpy2-thornode
Thornode REST API.
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.130.1
- Package version: 1.130.1
- 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_thornode
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_thornode
Getting Started
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import xchainpy2_thornode
from xchainpy2_thornode.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = xchainpy2_thornode.BlockApi(xchainpy2_thornode.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 /thorchain/block | |
BorrowersApi | borrower | GET /thorchain/pool/{asset}/borrower/{address} | |
BorrowersApi | borrowers | GET /thorchain/pool/{asset}/borrowers | |
CloutApi | swapper_clout | GET /thorchain/clout/swap/{address} | |
HealthApi | ping | GET /thorchain/ping | |
InvariantsApi | invariant | GET /thorchain/invariant/{invariant} | |
InvariantsApi | invariants | GET /thorchain/invariants | |
LiquidityProvidersApi | liquidity_provider | GET /thorchain/pool/{asset}/liquidity_provider/{address} | |
LiquidityProvidersApi | liquidity_providers | GET /thorchain/pool/{asset}/liquidity_providers | |
MimirApi | mimir | GET /thorchain/mimir | |
MimirApi | mimir_admin | GET /thorchain/mimir/admin | |
MimirApi | mimir_key | GET /thorchain/mimir/key/{key} | |
MimirApi | mimir_node | GET /thorchain/mimir/node/{address} | |
MimirApi | mimir_nodes | GET /thorchain/mimir/nodes_all | |
MimirApi | mimir_v2 | GET /thorchain/mimirV2 | |
MimirApi | mimir_v2_ids | GET /thorchain/mimirV2/ids | |
NetworkApi | ban | GET /thorchain/ban/{address} | |
NetworkApi | constants | GET /thorchain/constants | |
NetworkApi | inbound_addresses | GET /thorchain/inbound_addresses | |
NetworkApi | lastblock | GET /thorchain/lastblock | |
NetworkApi | lastblock_chain | GET /thorchain/lastblock/{chain} | |
NetworkApi | network | GET /thorchain/network | |
NetworkApi | ragnarok | GET /thorchain/ragnarok | |
NetworkApi | version | GET /thorchain/version | |
NodesApi | node | GET /thorchain/node/{address} | |
NodesApi | nodes | GET /thorchain/nodes | |
POLApi | pol | GET /thorchain/pol | |
PoolsApi | dpool | GET /thorchain/dpool/{asset} | |
PoolsApi | dpools | GET /thorchain/dpools | |
PoolsApi | pool | GET /thorchain/pool/{asset} | |
PoolsApi | pools | GET /thorchain/pools | |
QueueApi | queue | GET /thorchain/queue | |
QueueApi | queue_outbound | GET /thorchain/queue/outbound | |
QueueApi | queue_scheduled | GET /thorchain/queue/scheduled | |
QueueApi | queue_swap | GET /thorchain/queue/swap | |
QuoteApi | quoteloanclose | GET /thorchain/quote/loan/close | |
QuoteApi | quoteloanopen | GET /thorchain/quote/loan/open | |
QuoteApi | quotesaverdeposit | GET /thorchain/quote/saver/deposit | |
QuoteApi | quotesaverwithdraw | GET /thorchain/quote/saver/withdraw | |
QuoteApi | quoteswap | GET /thorchain/quote/swap | |
SaversApi | saver | GET /thorchain/pool/{asset}/saver/{address} | |
SaversApi | savers | GET /thorchain/pool/{asset}/savers | |
StreamingSwapApi | stream_swap | GET /thorchain/swap/streaming/{hash} | |
StreamingSwapApi | stream_swaps | GET /thorchain/swaps/streaming | |
TSSApi | keysign | GET /thorchain/keysign/{height} | |
TSSApi | keysign_pubkey | GET /thorchain/keysign/{height}/{pubkey} | |
TSSApi | metrics | GET /thorchain/metrics | |
TSSApi | metrics_keygen | GET /thorchain/metric/keygen/{pubkey} | |
ThornamesApi | thorname | GET /thorchain/thorname/{name} | |
TradeAccountApi | trade_account | GET /thorchain/trade/account/{address} | |
TradeAccountsApi | trade_accounts | GET /thorchain/trade/accounts/{asset} | |
TradeUnitApi | trade_unit | GET /thorchain/trade/unit/{asset} | |
TradeUnitsApi | trade_units | GET /thorchain/trade/units | |
TransactionsApi | tx | GET /thorchain/tx/{hash} | |
TransactionsApi | tx_signers | GET /thorchain/tx/details/{hash} | |
TransactionsApi | tx_signers_old | GET /thorchain/tx/{hash}/signers | |
TransactionsApi | tx_stages | GET /thorchain/tx/stages/{hash} | |
TransactionsApi | tx_status | GET /thorchain/tx/status/{hash} | |
VaultsApi | asgard | GET /thorchain/vaults/asgard | |
VaultsApi | vault | GET /thorchain/vault/{pubkey} | |
VaultsApi | vault_pubkeys | GET /thorchain/vaults/pubkeys | |
VaultsApi | yggdrasil | GET /thorchain/vaults/yggdrasil |
Documentation For Models
- BanResponse
- BaseQuoteResponse
- BlockResponse
- BlockResponseHeader
- BlockResponseHeaderVersion
- BlockResponseId
- BlockResponseIdParts
- BlockTx
- BlockTxResult
- Borrower
- BorrowerResponse
- BorrowersResponse
- ChainHeight
- Coin
- ConstantsResponse
- DerivedPool
- DerivedPoolResponse
- DerivedPoolsResponse
- InboundAddress
- InboundAddressesResponse
- InvariantResponse
- InvariantsResponse
- KeygenMetric
- KeygenMetricsResponse
- KeysignInfo
- KeysignMetrics
- KeysignResponse
- LastBlock
- LastBlockResponse
- LiquidityProvider
- LiquidityProviderResponse
- LiquidityProviderSummary
- LiquidityProvidersResponse
- MetricsResponse
- MimirNodesResponse
- MimirResponse
- MimirV2IDsResponse
- MimirVote
- MsgSwap
- NetworkResponse
- Node
- NodeBondProvider
- NodeBondProviders
- NodeJail
- NodeKeygenMetric
- NodePreflightStatus
- NodePubKeySet
- NodeResponse
- NodesResponse
- ObservedTx
- OutboundResponse
- POLResponse
- Ping
- Pool
- PoolResponse
- PoolsResponse
- QueueResponse
- QuoteFees
- QuoteLoanCloseResponse
- QuoteLoanOpenResponse
- QuoteSaverDepositResponse
- QuoteSaverWithdrawResponse
- QuoteSwapResponse
- Saver
- SaverResponse
- SaversResponse
- ScheduledResponse
- StreamingSwap
- StreamingSwapResponse
- StreamingSwapsResponse
- SwapQueueResponse
- SwapperCloutResponse
- Thorname
- ThornameAlias
- ThornameResponse
- TradeAccountResponse
- TradeAccountsResponse
- TradeUnitResponse
- TradeUnitsResponse
- TssKeysignMetric
- TssMetric
- Tx
- TxDetailsResponse
- TxOutItem
- TxResponse
- TxSignersResponse
- TxStagesResponse
- TxStagesResponseInboundConfirmationCounted
- TxStagesResponseInboundFinalised
- TxStagesResponseInboundObserved
- TxStagesResponseOutboundDelay
- TxStagesResponseOutboundSigned
- TxStagesResponseSwapFinalised
- TxStagesResponseSwapStatus
- TxStagesResponseSwapStatusStreaming
- TxStatusResponse
- TxStatusResponsePlannedOutTxs
- Vault
- VaultAddress
- VaultInfo
- VaultPubkeysResponse
- VaultResponse
- VaultRouter
- VaultsResponse
- VersionResponse
Documentation For Authorization
All endpoints do not require authorization.
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xchainpy2-thornode-1.130.1.tar.gz
(92.6 kB
view hashes)
Built Distribution
Close
Hashes for xchainpy2-thornode-1.130.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 514c2ad6834c801e6d1d169ca828b5f86353a1ecab5abfc97445a0b72de023c1 |
|
MD5 | 7bdf07cbcfc8469afc2907be33ecc6a9 |
|
BLAKE2b-256 | e93e407692fc1d1452161add22b821859bf2dfdebc80612a6c824500ea013c93 |
Close
Hashes for xchainpy2_thornode-1.130.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90fc87930479441024f2e77584c2d70919d1fe3d7d451aa564fc7c5560a16a42 |
|
MD5 | ba315eb296f2aaf4a736724fd3e2d336 |
|
BLAKE2b-256 | ae5a7574e509b84a2862f06359362adda36bfc648097d8228dae3d0624817f4e |