diff --git a/lib/skyapi/skyapi/.gitignore b/lib/skyapi/skyapi/.gitignore new file mode 100644 index 00000000..a655050c --- /dev/null +++ b/lib/skyapi/skyapi/.gitignore @@ -0,0 +1,64 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ +venv/ +.python-version + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +#Ipython Notebook +.ipynb_checkpoints diff --git a/lib/skyapi/skyapi/.openapi-generator-ignore b/lib/skyapi/skyapi/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/lib/skyapi/skyapi/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/lib/skyapi/skyapi/.openapi-generator/VERSION b/lib/skyapi/skyapi/.openapi-generator/VERSION new file mode 100644 index 00000000..8c7fafd3 --- /dev/null +++ b/lib/skyapi/skyapi/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.1.3 \ No newline at end of file diff --git a/lib/skyapi/skyapi/.travis.yml b/lib/skyapi/skyapi/.travis.yml new file mode 100644 index 00000000..86211e2d --- /dev/null +++ b/lib/skyapi/skyapi/.travis.yml @@ -0,0 +1,14 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "3.5" + #- "3.5-dev" # 3.5 development branch + #- "nightly" # points to the latest development branch e.g. 3.6-dev +# command to install dependencies +install: "pip install -r requirements.txt" +# command to run tests +script: nosetests diff --git a/lib/skyapi/skyapi/README.md b/lib/skyapi/skyapi/README.md new file mode 100644 index 00000000..f2d84fa4 --- /dev/null +++ b/lib/skyapi/skyapi/README.md @@ -0,0 +1,193 @@ +# skyapi +Skycoin is a next-generation cryptocurrency. + +This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: + +- API version: 0.27.0 +- Package version: 0.27.0 +- Build package: org.openapitools.codegen.languages.PythonClientCodegen +For more information, please visit [https://skycoin.net](https://skycoin.net) + +## Requirements. + +Python 2.7 and 3.4+ + +## Installation & Usage +### pip install + +If the python package is hosted on a repository, you can install directly using: + +```sh +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: +```python +import skyapi +``` + +### Setuptools + +Install via [Setuptools](http://pypi.python.org/pypi/setuptools). + +```sh +python setup.py install --user +``` +(or `sudo python setup.py install` to install the package for all users) + +Then import the package: +```python +import skyapi +``` + +## Getting Started + +Please follow the [installation procedure](#installation--usage) and then run the following: + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) + +try: + # Returns the total number of unique address that have coins. + api_response = api_instance.address_count() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->address_count: %s\n" % e) + +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://127.0.0.1:6420* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**address_count**](docs/DefaultApi.md#address_count) | **GET** /api/v1/addresscount | Returns the total number of unique address that have coins. +*DefaultApi* | [**address_uxouts**](docs/DefaultApi.md#address_uxouts) | **GET** /api/v1/address_uxouts | +*DefaultApi* | [**api_v1_rawtx_get**](docs/DefaultApi.md#api_v1_rawtx_get) | **GET** /api/v1/rawtx | +*DefaultApi* | [**api_v2_metrics_get**](docs/DefaultApi.md#api_v2_metrics_get) | **GET** /api/v2/metrics | +*DefaultApi* | [**balance_get**](docs/DefaultApi.md#balance_get) | **GET** /api/v1/balance | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +*DefaultApi* | [**balance_post**](docs/DefaultApi.md#balance_post) | **POST** /api/v1/balance | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +*DefaultApi* | [**block**](docs/DefaultApi.md#block) | **GET** /api/v1/block | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +*DefaultApi* | [**blockchain_metadata**](docs/DefaultApi.md#blockchain_metadata) | **GET** /api/v1/blockchain/metadata | Returns the blockchain metadata. +*DefaultApi* | [**blockchain_progress**](docs/DefaultApi.md#blockchain_progress) | **GET** /api/v1/blockchain/progress | Returns the blockchain sync progress. +*DefaultApi* | [**blocks**](docs/DefaultApi.md#blocks) | **GET** /api/v1/blocks | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +*DefaultApi* | [**coin_supply**](docs/DefaultApi.md#coin_supply) | **GET** /api/v1/coinSupply | +*DefaultApi* | [**csrf**](docs/DefaultApi.md#csrf) | **GET** /api/v1/csrf | Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. +*DefaultApi* | [**data_delete**](docs/DefaultApi.md#data_delete) | **DELETE** /api/v2/data | +*DefaultApi* | [**data_get**](docs/DefaultApi.md#data_get) | **GET** /api/v2/data | +*DefaultApi* | [**data_post**](docs/DefaultApi.md#data_post) | **POST** /api/v2/data | +*DefaultApi* | [**default_connections**](docs/DefaultApi.md#default_connections) | **GET** /api/v1/network/defaultConnections | defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. +*DefaultApi* | [**health**](docs/DefaultApi.md#health) | **GET** /api/v1/health | Returns node health data. +*DefaultApi* | [**last_blocks**](docs/DefaultApi.md#last_blocks) | **GET** /api/v1/last_blocks | +*DefaultApi* | [**network_connection**](docs/DefaultApi.md#network_connection) | **GET** /api/v1/network/connection | This endpoint returns a specific connection. +*DefaultApi* | [**network_connections**](docs/DefaultApi.md#network_connections) | **GET** /api/v1/network/connections | This endpoint returns all outgoings connections. +*DefaultApi* | [**network_connections_disconnect**](docs/DefaultApi.md#network_connections_disconnect) | **POST** /api/v1/network/connection/disconnect | +*DefaultApi* | [**network_connections_exchange**](docs/DefaultApi.md#network_connections_exchange) | **GET** /api/v1/network/connections/exchange | +*DefaultApi* | [**network_connections_trust**](docs/DefaultApi.md#network_connections_trust) | **GET** /api/v1/network/connections/trust | trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. +*DefaultApi* | [**outputs_get**](docs/DefaultApi.md#outputs_get) | **GET** /api/v1/outputs | If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. +*DefaultApi* | [**outputs_post**](docs/DefaultApi.md#outputs_post) | **POST** /api/v1/outputs | If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. +*DefaultApi* | [**pending_txs**](docs/DefaultApi.md#pending_txs) | **GET** /api/v1/pendingTxs | +*DefaultApi* | [**resend_unconfirmed_txns**](docs/DefaultApi.md#resend_unconfirmed_txns) | **POST** /api/v1/resendUnconfirmedTxns | +*DefaultApi* | [**richlist**](docs/DefaultApi.md#richlist) | **GET** /api/v1/richlist | Returns the top skycoin holders. +*DefaultApi* | [**transaction**](docs/DefaultApi.md#transaction) | **GET** /api/v1/transaction | +*DefaultApi* | [**transaction_inject**](docs/DefaultApi.md#transaction_inject) | **POST** /api/v1/injectTransaction | Broadcast a hex-encoded, serialized transaction to the network. +*DefaultApi* | [**transaction_post**](docs/DefaultApi.md#transaction_post) | **POST** /api/v2/transaction | +*DefaultApi* | [**transaction_post_unspent**](docs/DefaultApi.md#transaction_post_unspent) | **POST** /api/v2/transaction/unspent | +*DefaultApi* | [**transaction_raw**](docs/DefaultApi.md#transaction_raw) | **GET** /api/v2/transaction/raw | Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. +*DefaultApi* | [**transaction_verify**](docs/DefaultApi.md#transaction_verify) | **POST** /api/v2/transaction/verify | +*DefaultApi* | [**transactions_get**](docs/DefaultApi.md#transactions_get) | **GET** /api/v1/transactions | Returns transactions that match the filters. +*DefaultApi* | [**transactions_post**](docs/DefaultApi.md#transactions_post) | **POST** /api/v1/transactions | Returns transactions that match the filters. +*DefaultApi* | [**uxout**](docs/DefaultApi.md#uxout) | **GET** /api/v1/uxout | Returns an unspent output by ID. +*DefaultApi* | [**verify_address**](docs/DefaultApi.md#verify_address) | **POST** /api/v2/address/verify | Verifies a Skycoin address. +*DefaultApi* | [**version**](docs/DefaultApi.md#version) | **GET** /api/v1/version | +*DefaultApi* | [**wallet**](docs/DefaultApi.md#wallet) | **GET** /api/v1/wallet | Returns a wallet by id. +*DefaultApi* | [**wallet_balance**](docs/DefaultApi.md#wallet_balance) | **GET** /api/v1/wallet/balance | Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +*DefaultApi* | [**wallet_create**](docs/DefaultApi.md#wallet_create) | **POST** /api/v1/wallet/create | +*DefaultApi* | [**wallet_decrypt**](docs/DefaultApi.md#wallet_decrypt) | **POST** /api/v1/wallet/decrypt | Decrypts wallet. +*DefaultApi* | [**wallet_encrypt**](docs/DefaultApi.md#wallet_encrypt) | **POST** /api/v1/wallet/encrypt | Encrypt wallet. +*DefaultApi* | [**wallet_folder**](docs/DefaultApi.md#wallet_folder) | **GET** /api/v1/wallets/folderName | +*DefaultApi* | [**wallet_new_address**](docs/DefaultApi.md#wallet_new_address) | **POST** /api/v1/wallet/newAddress | +*DefaultApi* | [**wallet_new_seed**](docs/DefaultApi.md#wallet_new_seed) | **GET** /api/v1/wallet/newSeed | +*DefaultApi* | [**wallet_recover**](docs/DefaultApi.md#wallet_recover) | **POST** /api/v2/wallet/recover | Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. +*DefaultApi* | [**wallet_seed**](docs/DefaultApi.md#wallet_seed) | **POST** /api/v1/wallet/seed | This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. +*DefaultApi* | [**wallet_seed_verify**](docs/DefaultApi.md#wallet_seed_verify) | **POST** /api/v2/wallet/seed/verify | Verifies a wallet seed. +*DefaultApi* | [**wallet_transaction**](docs/DefaultApi.md#wallet_transaction) | **POST** /api/v1/wallet/transaction | Creates a signed transaction +*DefaultApi* | [**wallet_transaction_sign**](docs/DefaultApi.md#wallet_transaction_sign) | **POST** /api/v2/wallet/transaction/sign | Creates a signed transaction +*DefaultApi* | [**wallet_transactions**](docs/DefaultApi.md#wallet_transactions) | **GET** /api/v1/wallet/transactions | +*DefaultApi* | [**wallet_unload**](docs/DefaultApi.md#wallet_unload) | **POST** /api/v1/wallet/unload | Unloads wallet from the wallet service. +*DefaultApi* | [**wallet_update**](docs/DefaultApi.md#wallet_update) | **POST** /api/v1/wallet/update | Update the wallet. +*DefaultApi* | [**wallets**](docs/DefaultApi.md#wallets) | **GET** /api/v1/wallets | + + +## Documentation For Models + + - [Address](docs/Address.md) + - [ApiV1PendingTxsTransaction](docs/ApiV1PendingTxsTransaction.md) + - [ApiV1PendingTxsTransactionOutputs](docs/ApiV1PendingTxsTransactionOutputs.md) + - [BlockSchema](docs/BlockSchema.md) + - [BlockSchemaBody](docs/BlockSchemaBody.md) + - [BlockVerboseSchema](docs/BlockVerboseSchema.md) + - [BlockVerboseSchemaBody](docs/BlockVerboseSchemaBody.md) + - [BlockVerboseSchemaHeader](docs/BlockVerboseSchemaHeader.md) + - [InlineResponse200](docs/InlineResponse200.md) + - [InlineResponse2001](docs/InlineResponse2001.md) + - [InlineResponse20010](docs/InlineResponse20010.md) + - [InlineResponse2002](docs/InlineResponse2002.md) + - [InlineResponse2003](docs/InlineResponse2003.md) + - [InlineResponse2004](docs/InlineResponse2004.md) + - [InlineResponse2005](docs/InlineResponse2005.md) + - [InlineResponse2006](docs/InlineResponse2006.md) + - [InlineResponse2007](docs/InlineResponse2007.md) + - [InlineResponse2008](docs/InlineResponse2008.md) + - [InlineResponse2008Data](docs/InlineResponse2008Data.md) + - [InlineResponse2009](docs/InlineResponse2009.md) + - [InlineResponseDefault](docs/InlineResponseDefault.md) + - [NetworkConnectionSchema](docs/NetworkConnectionSchema.md) + - [NetworkConnectionSchemaUnconfirmedVerifyTransaction](docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md) + - [Transaction](docs/Transaction.md) + - [TransactionEncoded](docs/TransactionEncoded.md) + - [TransactionEncodedS](docs/TransactionEncodedS.md) + - [TransactionStatus](docs/TransactionStatus.md) + - [TransactionTxn](docs/TransactionTxn.md) + - [TransactionV2ParamsAddress](docs/TransactionV2ParamsAddress.md) + - [TransactionV2ParamsAddressHoursSelection](docs/TransactionV2ParamsAddressHoursSelection.md) + - [TransactionV2ParamsUnspent](docs/TransactionV2ParamsUnspent.md) + - [TransactionV2ParamsUnspentHoursSelection](docs/TransactionV2ParamsUnspentHoursSelection.md) + - [TransactionV2ParamsUnspentTo](docs/TransactionV2ParamsUnspentTo.md) + - [TransactionVerbose](docs/TransactionVerbose.md) + - [TransactionVerboseTxn](docs/TransactionVerboseTxn.md) + - [TransactionVerboseTxnInputs](docs/TransactionVerboseTxnInputs.md) + - [TransactionVerifyRequest](docs/TransactionVerifyRequest.md) + - [WalletTransactionRequest](docs/WalletTransactionRequest.md) + - [WalletTransactionRequestHoursSelection](docs/WalletTransactionRequestHoursSelection.md) + - [WalletTransactionRequestWallet](docs/WalletTransactionRequestWallet.md) + - [WalletTransactionSignRequest](docs/WalletTransactionSignRequest.md) + + +## Documentation For Authorization + + +## csrfAuth + +- **Type**: API key +- **API key parameter name**: X-CSRF-TOKEN +- **Location**: HTTP header + + +## Author + +contact@skycoin.net + + diff --git a/lib/skyapi/skyapi/docs/Address.md b/lib/skyapi/skyapi/docs/Address.md new file mode 100644 index 00000000..1cd4d546 --- /dev/null +++ b/lib/skyapi/skyapi/docs/Address.md @@ -0,0 +1,10 @@ +# Address + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/ApiV1PendingTxsTransaction.md b/lib/skyapi/skyapi/docs/ApiV1PendingTxsTransaction.md new file mode 100644 index 00000000..fc49cb2e --- /dev/null +++ b/lib/skyapi/skyapi/docs/ApiV1PendingTxsTransaction.md @@ -0,0 +1,16 @@ +# ApiV1PendingTxsTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**length** | **int** | | [optional] +**type** | **int** | | [optional] +**txid** | **str** | | [optional] +**inner_hash** | **str** | | [optional] +**sigs** | **list[str]** | | [optional] +**inputs** | **list[str]** | | [optional] +**outputs** | [**list[ApiV1PendingTxsTransactionOutputs]**](ApiV1PendingTxsTransactionOutputs.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/ApiV1PendingTxsTransactionOutputs.md b/lib/skyapi/skyapi/docs/ApiV1PendingTxsTransactionOutputs.md new file mode 100644 index 00000000..85c6b4ca --- /dev/null +++ b/lib/skyapi/skyapi/docs/ApiV1PendingTxsTransactionOutputs.md @@ -0,0 +1,13 @@ +# ApiV1PendingTxsTransactionOutputs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uxid** | **str** | | [optional] +**dst** | **str** | | [optional] +**coins** | **str** | | [optional] +**hours** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/BlockSchema.md b/lib/skyapi/skyapi/docs/BlockSchema.md new file mode 100644 index 00000000..c6ed9509 --- /dev/null +++ b/lib/skyapi/skyapi/docs/BlockSchema.md @@ -0,0 +1,12 @@ +# BlockSchema + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | [**BlockVerboseSchemaHeader**](BlockVerboseSchemaHeader.md) | | [optional] +**body** | [**BlockSchemaBody**](BlockSchemaBody.md) | | [optional] +**size** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/BlockSchemaBody.md b/lib/skyapi/skyapi/docs/BlockSchemaBody.md new file mode 100644 index 00000000..aeba4297 --- /dev/null +++ b/lib/skyapi/skyapi/docs/BlockSchemaBody.md @@ -0,0 +1,10 @@ +# BlockSchemaBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**txns** | **list[object]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/BlockVerboseSchema.md b/lib/skyapi/skyapi/docs/BlockVerboseSchema.md new file mode 100644 index 00000000..8e446c03 --- /dev/null +++ b/lib/skyapi/skyapi/docs/BlockVerboseSchema.md @@ -0,0 +1,12 @@ +# BlockVerboseSchema + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**header** | [**BlockVerboseSchemaHeader**](BlockVerboseSchemaHeader.md) | | [optional] +**body** | [**BlockVerboseSchemaBody**](BlockVerboseSchemaBody.md) | | [optional] +**size** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/BlockVerboseSchemaBody.md b/lib/skyapi/skyapi/docs/BlockVerboseSchemaBody.md new file mode 100644 index 00000000..96a7b747 --- /dev/null +++ b/lib/skyapi/skyapi/docs/BlockVerboseSchemaBody.md @@ -0,0 +1,10 @@ +# BlockVerboseSchemaBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**txns** | **list[object]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/BlockVerboseSchemaHeader.md b/lib/skyapi/skyapi/docs/BlockVerboseSchemaHeader.md new file mode 100644 index 00000000..65e5612d --- /dev/null +++ b/lib/skyapi/skyapi/docs/BlockVerboseSchemaHeader.md @@ -0,0 +1,17 @@ +# BlockVerboseSchemaHeader + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**seq** | **int** | | [optional] +**timestamp** | **int** | | [optional] +**fee** | **int** | | [optional] +**version** | **int** | | [optional] +**block_hash** | **str** | | [optional] +**previous_block_hash** | **str** | | [optional] +**tx_body_hash** | **str** | | [optional] +**ux_hash** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/DefaultApi.md b/lib/skyapi/skyapi/docs/DefaultApi.md new file mode 100644 index 00000000..38c00afe --- /dev/null +++ b/lib/skyapi/skyapi/docs/DefaultApi.md @@ -0,0 +1,3212 @@ +# skyapi.DefaultApi + +All URIs are relative to *http://127.0.0.1:6420* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**address_count**](DefaultApi.md#address_count) | **GET** /api/v1/addresscount | Returns the total number of unique address that have coins. +[**address_uxouts**](DefaultApi.md#address_uxouts) | **GET** /api/v1/address_uxouts | +[**api_v1_rawtx_get**](DefaultApi.md#api_v1_rawtx_get) | **GET** /api/v1/rawtx | +[**api_v2_metrics_get**](DefaultApi.md#api_v2_metrics_get) | **GET** /api/v2/metrics | +[**balance_get**](DefaultApi.md#balance_get) | **GET** /api/v1/balance | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +[**balance_post**](DefaultApi.md#balance_post) | **POST** /api/v1/balance | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +[**block**](DefaultApi.md#block) | **GET** /api/v1/block | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +[**blockchain_metadata**](DefaultApi.md#blockchain_metadata) | **GET** /api/v1/blockchain/metadata | Returns the blockchain metadata. +[**blockchain_progress**](DefaultApi.md#blockchain_progress) | **GET** /api/v1/blockchain/progress | Returns the blockchain sync progress. +[**blocks**](DefaultApi.md#blocks) | **GET** /api/v1/blocks | Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +[**coin_supply**](DefaultApi.md#coin_supply) | **GET** /api/v1/coinSupply | +[**csrf**](DefaultApi.md#csrf) | **GET** /api/v1/csrf | Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. +[**data_delete**](DefaultApi.md#data_delete) | **DELETE** /api/v2/data | +[**data_get**](DefaultApi.md#data_get) | **GET** /api/v2/data | +[**data_post**](DefaultApi.md#data_post) | **POST** /api/v2/data | +[**default_connections**](DefaultApi.md#default_connections) | **GET** /api/v1/network/defaultConnections | defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. +[**health**](DefaultApi.md#health) | **GET** /api/v1/health | Returns node health data. +[**last_blocks**](DefaultApi.md#last_blocks) | **GET** /api/v1/last_blocks | +[**network_connection**](DefaultApi.md#network_connection) | **GET** /api/v1/network/connection | This endpoint returns a specific connection. +[**network_connections**](DefaultApi.md#network_connections) | **GET** /api/v1/network/connections | This endpoint returns all outgoings connections. +[**network_connections_disconnect**](DefaultApi.md#network_connections_disconnect) | **POST** /api/v1/network/connection/disconnect | +[**network_connections_exchange**](DefaultApi.md#network_connections_exchange) | **GET** /api/v1/network/connections/exchange | +[**network_connections_trust**](DefaultApi.md#network_connections_trust) | **GET** /api/v1/network/connections/trust | trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. +[**outputs_get**](DefaultApi.md#outputs_get) | **GET** /api/v1/outputs | If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. +[**outputs_post**](DefaultApi.md#outputs_post) | **POST** /api/v1/outputs | If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. +[**pending_txs**](DefaultApi.md#pending_txs) | **GET** /api/v1/pendingTxs | +[**resend_unconfirmed_txns**](DefaultApi.md#resend_unconfirmed_txns) | **POST** /api/v1/resendUnconfirmedTxns | +[**richlist**](DefaultApi.md#richlist) | **GET** /api/v1/richlist | Returns the top skycoin holders. +[**transaction**](DefaultApi.md#transaction) | **GET** /api/v1/transaction | +[**transaction_inject**](DefaultApi.md#transaction_inject) | **POST** /api/v1/injectTransaction | Broadcast a hex-encoded, serialized transaction to the network. +[**transaction_post**](DefaultApi.md#transaction_post) | **POST** /api/v2/transaction | +[**transaction_post_unspent**](DefaultApi.md#transaction_post_unspent) | **POST** /api/v2/transaction/unspent | +[**transaction_raw**](DefaultApi.md#transaction_raw) | **GET** /api/v2/transaction/raw | Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. +[**transaction_verify**](DefaultApi.md#transaction_verify) | **POST** /api/v2/transaction/verify | +[**transactions_get**](DefaultApi.md#transactions_get) | **GET** /api/v1/transactions | Returns transactions that match the filters. +[**transactions_post**](DefaultApi.md#transactions_post) | **POST** /api/v1/transactions | Returns transactions that match the filters. +[**uxout**](DefaultApi.md#uxout) | **GET** /api/v1/uxout | Returns an unspent output by ID. +[**verify_address**](DefaultApi.md#verify_address) | **POST** /api/v2/address/verify | Verifies a Skycoin address. +[**version**](DefaultApi.md#version) | **GET** /api/v1/version | +[**wallet**](DefaultApi.md#wallet) | **GET** /api/v1/wallet | Returns a wallet by id. +[**wallet_balance**](DefaultApi.md#wallet_balance) | **GET** /api/v1/wallet/balance | Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. +[**wallet_create**](DefaultApi.md#wallet_create) | **POST** /api/v1/wallet/create | +[**wallet_decrypt**](DefaultApi.md#wallet_decrypt) | **POST** /api/v1/wallet/decrypt | Decrypts wallet. +[**wallet_encrypt**](DefaultApi.md#wallet_encrypt) | **POST** /api/v1/wallet/encrypt | Encrypt wallet. +[**wallet_folder**](DefaultApi.md#wallet_folder) | **GET** /api/v1/wallets/folderName | +[**wallet_new_address**](DefaultApi.md#wallet_new_address) | **POST** /api/v1/wallet/newAddress | +[**wallet_new_seed**](DefaultApi.md#wallet_new_seed) | **GET** /api/v1/wallet/newSeed | +[**wallet_recover**](DefaultApi.md#wallet_recover) | **POST** /api/v2/wallet/recover | Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. +[**wallet_seed**](DefaultApi.md#wallet_seed) | **POST** /api/v1/wallet/seed | This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. +[**wallet_seed_verify**](DefaultApi.md#wallet_seed_verify) | **POST** /api/v2/wallet/seed/verify | Verifies a wallet seed. +[**wallet_transaction**](DefaultApi.md#wallet_transaction) | **POST** /api/v1/wallet/transaction | Creates a signed transaction +[**wallet_transaction_sign**](DefaultApi.md#wallet_transaction_sign) | **POST** /api/v2/wallet/transaction/sign | Creates a signed transaction +[**wallet_transactions**](DefaultApi.md#wallet_transactions) | **GET** /api/v1/wallet/transactions | +[**wallet_unload**](DefaultApi.md#wallet_unload) | **POST** /api/v1/wallet/unload | Unloads wallet from the wallet service. +[**wallet_update**](DefaultApi.md#wallet_update) | **POST** /api/v1/wallet/update | Update the wallet. +[**wallets**](DefaultApi.md#wallets) | **GET** /api/v1/wallets | + + +# **address_count** +> InlineResponse200 address_count() + +Returns the total number of unique address that have coins. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + # Returns the total number of unique address that have coins. + api_response = api_instance.address_count() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->address_count: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | addressCount response object | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **address_uxouts** +> list[object] address_uxouts(address) + + + +Returns the historical, spent outputs associated with an address + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +address = 'address_example' # str | address to filter by + +try: + api_response = api_instance.address_uxouts(address) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->address_uxouts: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **address** | **str**| address to filter by | + +### Return type + +**list[object]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Return address uxouts | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_v1_rawtx_get** +> str api_v1_rawtx_get() + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.api_v1_rawtx_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->api_v1_rawtx_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Response is araw transaction by id | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **api_v2_metrics_get** +> str api_v2_metrics_get() + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.api_v2_metrics_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->api_v2_metrics_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Metrics | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **balance_get** +> object balance_get(addrs) + +Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +addrs = 'addrs_example' # str | command separated list of addresses + +try: + # Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + api_response = api_instance.balance_get(addrs) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->balance_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **addrs** | **str**| command separated list of addresses | + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns the balance of one or more addresses | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **balance_post** +> object balance_post(addrs) + +Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +addrs = 'addrs_example' # str | command separated list of addresses + +try: + # Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + api_response = api_instance.balance_post(addrs) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->balance_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **addrs** | **str**| command separated list of addresses | + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns the balance of one or more addresses | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **block** +> list[BlockSchema] block(hash=hash, seq=seq) + +Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +hash = 'hash_example' # str | get block by hash (optional) +seq = 56 # int | get block by sequence number (optional) + +try: + # Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + api_response = api_instance.block(hash=hash, seq=seq) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->block: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **hash** | **str**| get block by hash | [optional] + **seq** | **int**| get block by sequence number | [optional] + +### Return type + +[**list[BlockSchema]**](BlockSchema.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Return block Array | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **blockchain_metadata** +> object blockchain_metadata() + +Returns the blockchain metadata. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + # Returns the blockchain metadata. + api_response = api_instance.blockchain_metadata() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->blockchain_metadata: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint returns the blockchain metadata. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **blockchain_progress** +> object blockchain_progress() + +Returns the blockchain sync progress. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + # Returns the blockchain sync progress. + api_response = api_instance.blockchain_progress() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->blockchain_progress: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint returns the blockchain sync progress | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **blocks** +> InlineResponse2001 blocks(start=start, end=end, seq=seq) + +Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +start = 56 # int | start seq (optional) +end = 56 # int | end seq (optional) +seq = [56] # list[int] | comma-separated list of block seqs (optional) + +try: + # Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + api_response = api_instance.blocks(start=start, end=end, seq=seq) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->blocks: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start** | **int**| start seq | [optional] + **end** | **int**| end seq | [optional] + **seq** | [**list[int]**](int.md)| comma-separated list of block seqs | [optional] + +### Return type + +[**InlineResponse2001**](InlineResponse2001.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Get blocks in specific range | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **coin_supply** +> InlineResponse2002 coin_supply() + + + +coinSupplyHandler returns coin distribution supply stats + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.coin_supply() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->coin_supply: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**InlineResponse2002**](InlineResponse2002.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | CoinSupply records the coin supply info. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **csrf** +> InlineResponse2003 csrf() + +Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + # Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. + api_response = api_instance.csrf() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->csrf: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**InlineResponse2003**](InlineResponse2003.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Return a csrf Token. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **data_delete** +> data_delete(type=type, key=key) + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +type = 'type_example' # str | storage type. (optional) +key = 'key_example' # str | key of the specific value to get. (optional) + +try: + api_instance.data_delete(type=type, key=key) +except ApiException as e: + print("Exception when calling DefaultApi->data_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **str**| storage type. | [optional] + **key** | **str**| key of the specific value to get. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint returns empty json | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **data_get** +> object data_get(type=type, key=key) + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +type = 'type_example' # str | storage type. (optional) +key = 'key_example' # str | key of the specific value to get. (optional) + +try: + api_response = api_instance.data_get(type=type, key=key) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->data_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **str**| storage type. | [optional] + **key** | **str**| key of the specific value to get. | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Return multiKey | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **data_post** +> data_post(type=type, key=key, val=val) + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +type = 'type_example' # str | storage type. (optional) +key = 'key_example' # str | key of the specific value to get. (optional) +val = 'val_example' # str | additional value. (optional) + +try: + api_instance.data_post(type=type, key=key, val=val) +except ApiException as e: + print("Exception when calling DefaultApi->data_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **str**| storage type. | [optional] + **key** | **str**| key of the specific value to get. | [optional] + **val** | **str**| additional value. | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint returns empty json | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **default_connections** +> list[str] default_connections() + +defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + # defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. + api_response = api_instance.default_connections() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->default_connections: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**list[str]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint return an list of default connections. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **health** +> object health() + +Returns node health data. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + # Returns node health data. + api_response = api_instance.health() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->health: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint returns node health data. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **last_blocks** +> object last_blocks(num) + + + +Returns the most recent N blocks on the blockchain + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +num = 56 # int | Num of blockss + +try: + api_response = api_instance.last_blocks(num) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->last_blocks: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **num** | **int**| Num of blockss | + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns the most recent N blocks on the blockchain | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **network_connection** +> NetworkConnectionSchema network_connection(addr) + +This endpoint returns a specific connection. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +addr = 'addr_example' # str | Address port + +try: + # This endpoint returns a specific connection. + api_response = api_instance.network_connection(addr) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->network_connection: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **addr** | **str**| Address port | + +### Return type + +[**NetworkConnectionSchema**](NetworkConnectionSchema.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint return a connection struct | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **network_connections** +> InlineResponse2004 network_connections(states=states, direction=direction) + +This endpoint returns all outgoings connections. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +states = 'states_example' # str | Connection status. (optional) +direction = 'direction_example' # str | Direction of the connection. (optional) + +try: + # This endpoint returns all outgoings connections. + api_response = api_instance.network_connections(states=states, direction=direction) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->network_connections: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **states** | **str**| Connection status. | [optional] + **direction** | **str**| Direction of the connection. | [optional] + +### Return type + +[**InlineResponse2004**](InlineResponse2004.md) + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint return networks connections | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **network_connections_disconnect** +> network_connections_disconnect(id) + + + +This endpoint disconnects a connection by ID or address + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +id = 'id_example' # str | Address id. + +try: + api_instance.network_connections_disconnect(id) +except ApiException as e: + print("Exception when calling DefaultApi->network_connections_disconnect: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Address id. | + +### Return type + +void (empty response body) + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **network_connections_exchange** +> list[str] network_connections_exchange() + + + +This endpoint returns all connections found through peer exchange + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.network_connections_exchange() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->network_connections_exchange: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**list[str]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint return a list of all connections found through peer exchange. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **network_connections_trust** +> list[str] network_connections_trust() + +trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + # trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. + api_response = api_instance.network_connections_trust() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->network_connections_trust: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**list[str]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint return a list of trusted connections. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **outputs_get** +> object outputs_get(address=address, hash=hash) + +If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +address = ['address_example'] # list[str] | (optional) +hash = ['hash_example'] # list[str] | (optional) + +try: + # If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + api_response = api_instance.outputs_get(address=address, hash=hash) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->outputs_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **address** | [**list[str]**](str.md)| | [optional] + **hash** | [**list[str]**](str.md)| | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | UnspentOutputsSummary records unspent outputs in different status. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **outputs_post** +> object outputs_post(address=address, hash=hash) + +If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +address = 'address_example' # str | (optional) +hash = 'hash_example' # str | (optional) + +try: + # If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. + api_response = api_instance.outputs_post(address=address, hash=hash) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->outputs_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **address** | **str**| | [optional] + **hash** | **str**| | [optional] + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | UnspentOutputsSummary records unspent outputs in different status. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **pending_txs** +> list[InlineResponse20010] pending_txs() + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.pending_txs() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->pending_txs: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**list[InlineResponse20010]**](InlineResponse20010.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Transaction inputs include the owner address, coins, hours and calculated hours. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **resend_unconfirmed_txns** +> object resend_unconfirmed_txns() + + + +Broadcasts all unconfirmed transactions from the unconfirmed transaction pool + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) + +try: + api_response = api_instance.resend_unconfirmed_txns() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->resend_unconfirmed_txns: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application-json, application/json, application/xml + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK, Broadcasts all unconfirmed transactions from the unconfirmed transaction pool | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **richlist** +> object richlist(include_distribution=include_distribution, n=n) + +Returns the top skycoin holders. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +include_distribution = True # bool | include distribution addresses or not, default value false (optional) +n = 'n_example' # str | include distribution addresses or not, default value false (optional) + +try: + # Returns the top skycoin holders. + api_response = api_instance.richlist(include_distribution=include_distribution, n=n) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->richlist: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **include_distribution** | **bool**| include distribution addresses or not, default value false | [optional] + **n** | **str**| include distribution addresses or not, default value false | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Represent richlist response | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transaction** +> Transaction transaction(txid) + + + +Returns a transaction identified by its txid hash with just id + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +txid = 'txid_example' # str | transaction Id + +try: + api_response = api_instance.transaction(txid) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transaction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **txid** | **str**| transaction Id | + +### Return type + +[**Transaction**](Transaction.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns a transaction identified by its txid hash. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transaction_inject** +> str transaction_inject(rawtx, no_broadcast=no_broadcast) + +Broadcast a hex-encoded, serialized transaction to the network. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +rawtx = 'rawtx_example' # str | hex-encoded serialized transaction string. +no_broadcast = True # bool | Disable the network broadcast (optional) + +try: + # Broadcast a hex-encoded, serialized transaction to the network. + api_response = api_instance.transaction_inject(rawtx, no_broadcast=no_broadcast) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transaction_inject: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rawtx** | **str**| hex-encoded serialized transaction string. | + **no_broadcast** | **bool**| Disable the network broadcast | [optional] + +### Return type + +**str** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, application/xml + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Broadcasts a hex-encoded, serialized transaction to the network | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transaction_post** +> InlineResponse2008 transaction_post(transaction_v2_params_address=transaction_v2_params_address) + + + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +transaction_v2_params_address = skyapi.TransactionV2ParamsAddress() # TransactionV2ParamsAddress | (optional) + +try: + api_response = api_instance.transaction_post(transaction_v2_params_address=transaction_v2_params_address) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transaction_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transaction_v2_params_address** | [**TransactionV2ParamsAddress**](TransactionV2ParamsAddress.md)| | [optional] + +### Return type + +[**InlineResponse2008**](InlineResponse2008.md) + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Response is a transaction | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transaction_post_unspent** +> InlineResponse2008 transaction_post_unspent(transaction_v2_params_unspent) + + + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +transaction_v2_params_unspent = skyapi.TransactionV2ParamsUnspent() # TransactionV2ParamsUnspent | Unspent parameters + +try: + api_response = api_instance.transaction_post_unspent(transaction_v2_params_unspent) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transaction_post_unspent: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transaction_v2_params_unspent** | [**TransactionV2ParamsUnspent**](TransactionV2ParamsUnspent.md)| Unspent parameters | + +### Return type + +[**InlineResponse2008**](InlineResponse2008.md) + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Response is a transaction | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transaction_raw** +> object transaction_raw(txid=txid) + +Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +txid = 'txid_example' # str | Transaction id hash (optional) + +try: + # Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. + api_response = api_instance.transaction_raw(txid=txid) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transaction_raw: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **txid** | **str**| Transaction id hash | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns the hex-encoded byte serialization of a transaction | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transaction_verify** +> object transaction_verify(transaction_verify_request) + + + +Decode and verify an encoded transaction + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +transaction_verify_request = skyapi.TransactionVerifyRequest() # TransactionVerifyRequest | + +try: + api_response = api_instance.transaction_verify(transaction_verify_request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transaction_verify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **transaction_verify_request** | [**TransactionVerifyRequest**](TransactionVerifyRequest.md)| | + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Responses ok | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transactions_get** +> object transactions_get(addrs=addrs, confirmed=confirmed) + +Returns transactions that match the filters. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +addrs = 'addrs_example' # str | command separated list of addresses (optional) +confirmed = 'confirmed_example' # str | Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] (optional) + +try: + # Returns transactions that match the filters. + api_response = api_instance.transactions_get(addrs=addrs, confirmed=confirmed) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transactions_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **addrs** | **str**| command separated list of addresses | [optional] + **confirmed** | **str**| Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns transactions that match the filters. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **transactions_post** +> object transactions_post(addrs=addrs, confirmed=confirmed) + +Returns transactions that match the filters. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +addrs = 'addrs_example' # str | command separated list of addresses (optional) +confirmed = 'confirmed_example' # str | Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] (optional) + +try: + # Returns transactions that match the filters. + api_response = api_instance.transactions_post(addrs=addrs, confirmed=confirmed) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->transactions_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **addrs** | **str**| command separated list of addresses | [optional] + **confirmed** | **str**| Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] | [optional] + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns transactions that match the filters. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **uxout** +> object uxout(uxid=uxid) + +Returns an unspent output by ID. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +uxid = 'uxid_example' # str | uxid to filter by (optional) + +try: + # Returns an unspent output by ID. + api_response = api_instance.uxout(uxid=uxid) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->uxout: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uxid** | **str**| uxid to filter by | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Response for endpoint /api/v1/uxout | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **verify_address** +> object verify_address(address) + +Verifies a Skycoin address. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +address = skyapi.Address() # Address | Address id. + +try: + # Verifies a Skycoin address. + api_response = api_instance.verify_address(address) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->verify_address: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **address** | [**Address**](.md)| Address id. | + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **version** +> InlineResponse2005 version() + + + +versionHandler returns the application version info + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.version() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->version: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**InlineResponse2005**](InlineResponse2005.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | BuildInfo represents the build info | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet** +> object wallet(id) + +Returns a wallet by id. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +id = 'id_example' # str | tags to filter by + +try: + # Returns a wallet by id. + api_response = api_instance.wallet(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| tags to filter by | + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Response for endpoint /api/v1/wallet | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_balance** +> object wallet_balance(id) + +Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +id = 'id_example' # str | tags to filter by + +try: + # Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. + api_response = api_instance.wallet_balance(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_balance: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| tags to filter by | + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns the wallets balance | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_create** +> object wallet_create(type, seed, label, seed_passphrase=seed_passphrase, bip44_coin=bip44_coin, xpub=xpub, scan=scan, encrypt=encrypt, password=password) + + + +Create a wallet + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +type = 'type_example' # str | wallet seed passphrase [optional, bip44 type wallet only] +seed = 'seed_example' # str | Wallet seed. +label = 'label_example' # str | Wallet label. +seed_passphrase = 'seed_passphrase_example' # str | wallet seed passphrase [optional, bip44 type wallet only] (optional) +bip44_coin = 'bip44_coin_example' # str | BIP44 coin type [optional, defaults to 8000 (skycoin's coin type), only valid if type is \"bip44\"] (optional) +xpub = 'xpub_example' # str | xpub key [required for xpub wallets] (optional) +scan = 56 # int | The number of addresses to scan ahead for balances. (optional) +encrypt = True # bool | Encrypt wallet. (optional) +password = 'password_example' # str | Wallet Password (optional) + +try: + api_response = api_instance.wallet_create(type, seed, label, seed_passphrase=seed_passphrase, bip44_coin=bip44_coin, xpub=xpub, scan=scan, encrypt=encrypt, password=password) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_create: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **str**| wallet seed passphrase [optional, bip44 type wallet only] | + **seed** | **str**| Wallet seed. | + **label** | **str**| Wallet label. | + **seed_passphrase** | **str**| wallet seed passphrase [optional, bip44 type wallet only] | [optional] + **bip44_coin** | **str**| BIP44 coin type [optional, defaults to 8000 (skycoin's coin type), only valid if type is \"bip44\"] | [optional] + **xpub** | **str**| xpub key [required for xpub wallets] | [optional] + **scan** | **int**| The number of addresses to scan ahead for balances. | [optional] + **encrypt** | **bool**| Encrypt wallet. | [optional] + **password** | **str**| Wallet Password | [optional] + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Response for endpoint /api/v1/wallet | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_decrypt** +> object wallet_decrypt(id, password) + +Decrypts wallet. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +id = 'id_example' # str | Wallet id. +password = 'password_example' # str | Wallet password. + +try: + # Decrypts wallet. + api_response = api_instance.wallet_decrypt(id, password) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_decrypt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Wallet id. | + **password** | **str**| Wallet password. | + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint decrypts wallets. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_encrypt** +> object wallet_encrypt(id, password) + +Encrypt wallet. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +id = 'id_example' # str | Wallet id. +password = 'password_example' # str | Wallet password. + +try: + # Encrypt wallet. + api_response = api_instance.wallet_encrypt(id, password) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_encrypt: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Wallet id. | + **password** | **str**| Wallet password. | + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint encrypt wallets. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_folder** +> InlineResponse2007 wallet_folder(addr) + + + +Returns the wallet directory path + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +addr = 'addr_example' # str | Address port + +try: + api_response = api_instance.wallet_folder(addr) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_folder: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **addr** | **str**| Address port | + +### Return type + +[**InlineResponse2007**](InlineResponse2007.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint return the wallet directory path | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_new_address** +> object wallet_new_address(id, num=num, password=password) + + + +Generates new addresses + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +id = 'id_example' # str | Wallet Id +num = 'num_example' # str | The number you want to generate (optional) +password = 'password_example' # str | Wallet Password (optional) + +try: + api_response = api_instance.wallet_new_address(id, num=num, password=password) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_new_address: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Wallet Id | + **num** | **str**| The number you want to generate | [optional] + **password** | **str**| Wallet Password | [optional] + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint generate new addresses | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_new_seed** +> object wallet_new_seed(entropy=entropy) + + + +Returns the wallet directory path + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +entropy = 'entropy_example' # str | Entropy bitSize. (optional) + +try: + api_response = api_instance.wallet_new_seed(entropy=entropy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_new_seed: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entropy** | **str**| Entropy bitSize. | [optional] + +### Return type + +**object** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Generates wallet seed | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_recover** +> object wallet_recover(id, seed, seed_passphrase=seed_passphrase, password=password) + +Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + +Recovers an encrypted wallet by providing the wallet seed and optional seed passphrase + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +id = 'id_example' # str | Wallet id. +seed = 'seed_example' # str | Wallet seed. +seed_passphrase = 'seed_passphrase_example' # str | Wallet seed-passphrase. (optional) +password = 'password_example' # str | Wallet password. (optional) + +try: + # Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. + api_response = api_instance.wallet_recover(id, seed, seed_passphrase=seed_passphrase, password=password) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_recover: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Wallet id. | + **seed** | **str**| Wallet seed. | + **seed_passphrase** | **str**| Wallet seed-passphrase. | [optional] + **password** | **str**| Wallet password. | [optional] + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint recover wallets. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_seed** +> object wallet_seed(id, password) + +This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +id = 'id_example' # str | Wallet Id. +password = 'password_example' # str | Wallet password. + +try: + # This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. + api_response = api_instance.wallet_seed(id, password) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_seed: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Wallet Id. | + **password** | **str**| Wallet password. | + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint Returns seed of wallet of given id | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_seed_verify** +> object wallet_seed_verify(seed=seed) + +Verifies a wallet seed. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +seed = 'seed_example' # str | Seed to be verified. (optional) + +try: + # Verifies a wallet seed. + api_response = api_instance.wallet_seed_verify(seed=seed) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_seed_verify: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **seed** | **str**| Seed to be verified. | [optional] + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Verifies a wallet seed. | - | +**422** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_transaction** +> object wallet_transaction(wallet_transaction_request) + +Creates a signed transaction + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +wallet_transaction_request = skyapi.WalletTransactionRequest() # WalletTransactionRequest | + +try: + # Creates a signed transaction + api_response = api_instance.wallet_transaction(wallet_transaction_request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_transaction: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_transaction_request** | [**WalletTransactionRequest**](WalletTransactionRequest.md)| | + +### Return type + +**object** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Returns blocks between a start and end point. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_transaction_sign** +> InlineResponse2009 wallet_transaction_sign(wallet_transaction_sign_request) + +Creates a signed transaction + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +wallet_transaction_sign_request = skyapi.WalletTransactionSignRequest() # WalletTransactionSignRequest | + +try: + # Creates a signed transaction + api_response = api_instance.wallet_transaction_sign(wallet_transaction_sign_request) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_transaction_sign: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wallet_transaction_sign_request** | [**WalletTransactionSignRequest**](WalletTransactionSignRequest.md)| | + +### Return type + +[**InlineResponse2009**](InlineResponse2009.md) + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Signs an unsigned transaction, returning the transaction with updated signatures and the encoded, serialized transaction. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_transactions** +> InlineResponse2006 wallet_transactions(id) + + + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() +id = 'id_example' # str | Wallet Id. + +try: + api_response = api_instance.wallet_transactions(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_transactions: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Wallet Id. | + +### Return type + +[**InlineResponse2006**](InlineResponse2006.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint returns all unconfirmed transactions for all addresses in a given wallet. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_unload** +> wallet_unload(id) + +Unloads wallet from the wallet service. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +id = 'id_example' # str | Wallet Id. + +try: + # Unloads wallet from the wallet service. + api_instance.wallet_unload(id) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_unload: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Wallet Id. | + +### Return type + +void (empty response body) + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint returns nothing. | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallet_update** +> str wallet_update(id, label) + +Update the wallet. + +### Example + +* Api Key Authentication (csrfAuth): +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint +configuration = skyapi.Configuration() +# Configure API key authorization: csrfAuth +configuration.api_key['X-CSRF-TOKEN'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['X-CSRF-TOKEN'] = 'Bearer' + +# Defining host is optional and default to http://127.0.0.1:6420 +configuration.host = "http://127.0.0.1:6420" +# Create an instance of the API class +api_instance = skyapi.DefaultApi(skyapi.ApiClient(configuration)) +id = 'id_example' # str | Wallet Id. +label = 'label_example' # str | The label the wallet will be updated to. + +try: + # Update the wallet. + api_response = api_instance.wallet_update(id, label) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallet_update: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Wallet Id. | + **label** | **str**| The label the wallet will be updated to. | + +### Return type + +**str** + +### Authorization + +[csrfAuth](../README.md#csrfAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, application/xml + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint Returns the label the wallet will be updated to . | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **wallets** +> list[object] wallets() + + + +Returns all loaded wallets + +### Example + +```python +from __future__ import print_function +import time +import skyapi +from skyapi.rest import ApiException +from pprint import pprint + +# Create an instance of the API class +api_instance = skyapi.DefaultApi() + +try: + api_response = api_instance.wallets() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->wallets: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**list[object]** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/xml, + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | This endpoint return all loaded wallets | - | +**0** | A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/lib/skyapi/skyapi/docs/InlineResponse200.md b/lib/skyapi/skyapi/docs/InlineResponse200.md new file mode 100644 index 00000000..fce873fa --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse200.md @@ -0,0 +1,10 @@ +# InlineResponse200 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2001.md b/lib/skyapi/skyapi/docs/InlineResponse2001.md new file mode 100644 index 00000000..7e848c3e --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2001.md @@ -0,0 +1,10 @@ +# InlineResponse2001 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blocks** | [**list[BlockSchema]**](BlockSchema.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse20010.md b/lib/skyapi/skyapi/docs/InlineResponse20010.md new file mode 100644 index 00000000..ec26547d --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse20010.md @@ -0,0 +1,14 @@ +# InlineResponse20010 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction** | [**ApiV1PendingTxsTransaction**](ApiV1PendingTxsTransaction.md) | | [optional] +**received** | **str** | | [optional] +**checked** | **str** | | [optional] +**announced** | **str** | | [optional] +**is_valid** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2002.md b/lib/skyapi/skyapi/docs/InlineResponse2002.md new file mode 100644 index 00000000..a7f2b8d2 --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2002.md @@ -0,0 +1,16 @@ +# InlineResponse2002 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**current_coinhour_supply** | **str** | CurrentCoinHourSupply is coins hours in non distribution addresses. | [optional] +**current_supply** | **str** | Coins distributed beyond the project. | [optional] +**locked_distribution_addresses** | **list[str]** | Distribution addresses which are locked and do not count towards total supply. | [optional] +**max_supply** | **str** | MaxSupply is the maximum number of coins to be distributed ever. | [optional] +**total_coinhour_supply** | **str** | TotalCoinHourSupply is coin hours in all addresses including unlocked distribution addresses. | [optional] +**total_supply** | **str** | TotalSupply is CurrentSupply plus coins held by the distribution addresses that are spendable. | [optional] +**unlocked_distribution_addresses** | **list[str]** | Distribution addresses which count towards total supply. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2003.md b/lib/skyapi/skyapi/docs/InlineResponse2003.md new file mode 100644 index 00000000..6e3cc436 --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2003.md @@ -0,0 +1,10 @@ +# InlineResponse2003 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**csrf_token** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2004.md b/lib/skyapi/skyapi/docs/InlineResponse2004.md new file mode 100644 index 00000000..63b79086 --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2004.md @@ -0,0 +1,10 @@ +# InlineResponse2004 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**connections** | [**list[NetworkConnectionSchema]**](NetworkConnectionSchema.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2005.md b/lib/skyapi/skyapi/docs/InlineResponse2005.md new file mode 100644 index 00000000..646bfe52 --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2005.md @@ -0,0 +1,12 @@ +# InlineResponse2005 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**branch** | **str** | git branch name | [optional] +**commit** | **str** | git commit id | [optional] +**version** | **str** | version number | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2006.md b/lib/skyapi/skyapi/docs/InlineResponse2006.md new file mode 100644 index 00000000..60399f81 --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2006.md @@ -0,0 +1,10 @@ +# InlineResponse2006 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transactions** | [**list[TransactionEncoded]**](TransactionEncoded.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2007.md b/lib/skyapi/skyapi/docs/InlineResponse2007.md new file mode 100644 index 00000000..2bf1563b --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2007.md @@ -0,0 +1,10 @@ +# InlineResponse2007 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2008.md b/lib/skyapi/skyapi/docs/InlineResponse2008.md new file mode 100644 index 00000000..62065573 --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2008.md @@ -0,0 +1,10 @@ +# InlineResponse2008 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**InlineResponse2008Data**](InlineResponse2008Data.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2008Data.md b/lib/skyapi/skyapi/docs/InlineResponse2008Data.md new file mode 100644 index 00000000..756ebfe6 --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2008Data.md @@ -0,0 +1,10 @@ +# InlineResponse2008Data + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction** | [**Transaction**](Transaction.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponse2009.md b/lib/skyapi/skyapi/docs/InlineResponse2009.md new file mode 100644 index 00000000..d9e65f5e --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponse2009.md @@ -0,0 +1,10 @@ +# InlineResponse2009 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | **object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/InlineResponseDefault.md b/lib/skyapi/skyapi/docs/InlineResponseDefault.md new file mode 100644 index 00000000..2862e401 --- /dev/null +++ b/lib/skyapi/skyapi/docs/InlineResponseDefault.md @@ -0,0 +1,11 @@ +# InlineResponseDefault + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **int** | | [optional] +**message** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/NetworkConnectionSchema.md b/lib/skyapi/skyapi/docs/NetworkConnectionSchema.md new file mode 100644 index 00000000..9dd8774f --- /dev/null +++ b/lib/skyapi/skyapi/docs/NetworkConnectionSchema.md @@ -0,0 +1,22 @@ +# NetworkConnectionSchema + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | | [optional] +**connected_at** | **int** | | [optional] +**height** | **int** | | [optional] +**id** | **int** | | [optional] +**is_trusted_peer** | **bool** | | [optional] +**last_received** | **int** | | [optional] +**last_sent** | **int** | | [optional] +**listen_port** | **int** | | [optional] +**mirror** | **int** | | [optional] +**outgoing** | **bool** | | [optional] +**state** | **str** | | [optional] +**unconfirmed_verify_transaction** | [**NetworkConnectionSchemaUnconfirmedVerifyTransaction**](NetworkConnectionSchemaUnconfirmedVerifyTransaction.md) | | [optional] +**user_agent** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md b/lib/skyapi/skyapi/docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md new file mode 100644 index 00000000..aaddd118 --- /dev/null +++ b/lib/skyapi/skyapi/docs/NetworkConnectionSchemaUnconfirmedVerifyTransaction.md @@ -0,0 +1,12 @@ +# NetworkConnectionSchemaUnconfirmedVerifyTransaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**burn_factor** | **int** | | [optional] +**max_decimals** | **int** | | [optional] +**max_transaction_size** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/Transaction.md b/lib/skyapi/skyapi/docs/Transaction.md new file mode 100644 index 00000000..5a8a3c91 --- /dev/null +++ b/lib/skyapi/skyapi/docs/Transaction.md @@ -0,0 +1,12 @@ +# Transaction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**txn** | [**TransactionTxn**](TransactionTxn.md) | | [optional] +**time** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionEncoded.md b/lib/skyapi/skyapi/docs/TransactionEncoded.md new file mode 100644 index 00000000..5f972c78 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionEncoded.md @@ -0,0 +1,14 @@ +# TransactionEncoded + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**transaction** | [**ApiV1PendingTxsTransaction**](ApiV1PendingTxsTransaction.md) | | [optional] +**received** | **str** | | [optional] +**checked** | **str** | | [optional] +**announced** | **str** | | [optional] +**is_valid** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionEncodedS.md b/lib/skyapi/skyapi/docs/TransactionEncodedS.md new file mode 100644 index 00000000..4ddfd699 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionEncodedS.md @@ -0,0 +1,12 @@ +# TransactionEncodedS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **int** | | [optional] +**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**encoded_transaction** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionStatus.md b/lib/skyapi/skyapi/docs/TransactionStatus.md new file mode 100644 index 00000000..69ecb1ec --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionStatus.md @@ -0,0 +1,13 @@ +# TransactionStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_seq** | **int** | If confirmed, the sequence of the block in which the transaction was executed | [optional] +**confirmed** | **bool** | | [optional] +**height** | **int** | If confirmed, how many blocks deep in the chain it is. Will be at least 1 if confirmed | [optional] +**unconfirmed** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionTxn.md b/lib/skyapi/skyapi/docs/TransactionTxn.md new file mode 100644 index 00000000..f2327fb5 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionTxn.md @@ -0,0 +1,17 @@ +# TransactionTxn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inner_hash** | **str** | | [optional] +**inputs** | **list[str]** | | [optional] +**length** | **int** | | [optional] +**outputs** | **list[object]** | | [optional] +**sigs** | **list[str]** | | [optional] +**timestamp** | **int** | | [optional] +**txid** | **str** | | [optional] +**type** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionV2ParamsAddress.md b/lib/skyapi/skyapi/docs/TransactionV2ParamsAddress.md new file mode 100644 index 00000000..2a9f4fb9 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionV2ParamsAddress.md @@ -0,0 +1,10 @@ +# TransactionV2ParamsAddress + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hours_selection** | [**TransactionV2ParamsAddressHoursSelection**](TransactionV2ParamsAddressHoursSelection.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionV2ParamsAddressHoursSelection.md b/lib/skyapi/skyapi/docs/TransactionV2ParamsAddressHoursSelection.md new file mode 100644 index 00000000..361de396 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionV2ParamsAddressHoursSelection.md @@ -0,0 +1,10 @@ +# TransactionV2ParamsAddressHoursSelection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspent.md b/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspent.md new file mode 100644 index 00000000..53b9bcdf --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspent.md @@ -0,0 +1,13 @@ +# TransactionV2ParamsUnspent + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hours_selection** | [**TransactionV2ParamsUnspentHoursSelection**](TransactionV2ParamsUnspentHoursSelection.md) | | [optional] +**unspents** | **list[str]** | | [optional] +**change_address** | **str** | | [optional] +**to** | [**list[TransactionV2ParamsUnspentTo]**](TransactionV2ParamsUnspentTo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspentHoursSelection.md b/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspentHoursSelection.md new file mode 100644 index 00000000..688d39fc --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspentHoursSelection.md @@ -0,0 +1,12 @@ +# TransactionV2ParamsUnspentHoursSelection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**mode** | **str** | | [optional] +**share_factor** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspentTo.md b/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspentTo.md new file mode 100644 index 00000000..8e5a2b46 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionV2ParamsUnspentTo.md @@ -0,0 +1,11 @@ +# TransactionV2ParamsUnspentTo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | | [optional] +**coins** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionVerbose.md b/lib/skyapi/skyapi/docs/TransactionVerbose.md new file mode 100644 index 00000000..13a7ed5c --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionVerbose.md @@ -0,0 +1,12 @@ +# TransactionVerbose + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time** | **int** | | [optional] +**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**txn** | [**TransactionVerboseTxn**](TransactionVerboseTxn.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionVerboseTxn.md b/lib/skyapi/skyapi/docs/TransactionVerboseTxn.md new file mode 100644 index 00000000..14859aa4 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionVerboseTxn.md @@ -0,0 +1,19 @@ +# TransactionVerboseTxn + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] +**fee** | **int** | | [optional] +**inner_hash** | **str** | | [optional] +**inputs** | [**list[TransactionVerboseTxnInputs]**](TransactionVerboseTxnInputs.md) | | [optional] +**length** | **int** | | [optional] +**outputs** | **list[object]** | | [optional] +**sigs** | **list[str]** | | [optional] +**timestamp** | **int** | | [optional] +**txid** | **str** | | [optional] +**type** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionVerboseTxnInputs.md b/lib/skyapi/skyapi/docs/TransactionVerboseTxnInputs.md new file mode 100644 index 00000000..a6380b17 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionVerboseTxnInputs.md @@ -0,0 +1,14 @@ +# TransactionVerboseTxnInputs + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**uxid** | **str** | | [optional] +**owner** | **str** | | [optional] +**coins** | **str** | | [optional] +**hours** | **int** | | [optional] +**calculated_hours** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/TransactionVerifyRequest.md b/lib/skyapi/skyapi/docs/TransactionVerifyRequest.md new file mode 100644 index 00000000..8f7a9818 --- /dev/null +++ b/lib/skyapi/skyapi/docs/TransactionVerifyRequest.md @@ -0,0 +1,11 @@ +# TransactionVerifyRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**unsigned** | **bool** | | [optional] +**encoded_transaction** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/WalletTransactionRequest.md b/lib/skyapi/skyapi/docs/WalletTransactionRequest.md new file mode 100644 index 00000000..e1183534 --- /dev/null +++ b/lib/skyapi/skyapi/docs/WalletTransactionRequest.md @@ -0,0 +1,14 @@ +# WalletTransactionRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**change_address** | **str** | | [optional] +**hours_selection** | [**WalletTransactionRequestHoursSelection**](WalletTransactionRequestHoursSelection.md) | | [optional] +**ignore_unconfirmed** | **bool** | | [optional] +**to** | **list[object]** | | [optional] +**wallet** | [**WalletTransactionRequestWallet**](WalletTransactionRequestWallet.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/WalletTransactionRequestHoursSelection.md b/lib/skyapi/skyapi/docs/WalletTransactionRequestHoursSelection.md new file mode 100644 index 00000000..954b56ad --- /dev/null +++ b/lib/skyapi/skyapi/docs/WalletTransactionRequestHoursSelection.md @@ -0,0 +1,12 @@ +# WalletTransactionRequestHoursSelection + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mode** | **str** | | [optional] +**share_factor** | **str** | | [optional] +**type** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/WalletTransactionRequestWallet.md b/lib/skyapi/skyapi/docs/WalletTransactionRequestWallet.md new file mode 100644 index 00000000..7f311c26 --- /dev/null +++ b/lib/skyapi/skyapi/docs/WalletTransactionRequestWallet.md @@ -0,0 +1,13 @@ +# WalletTransactionRequestWallet + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addresses** | **list[str]** | | [optional] +**id** | **str** | | [optional] +**password** | **str** | | [optional] +**unspents** | **list[str]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/docs/WalletTransactionSignRequest.md b/lib/skyapi/skyapi/docs/WalletTransactionSignRequest.md new file mode 100644 index 00000000..078517de --- /dev/null +++ b/lib/skyapi/skyapi/docs/WalletTransactionSignRequest.md @@ -0,0 +1,13 @@ +# WalletTransactionSignRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**wallet_id** | **str** | | [optional] +**password** | **str** | | [optional] +**encoded_transaction** | **str** | | [optional] +**sign_indexes** | **list[int]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/lib/skyapi/skyapi/git_push.sh b/lib/skyapi/skyapi/git_push.sh new file mode 100644 index 00000000..ced3be2b --- /dev/null +++ b/lib/skyapi/skyapi/git_push.sh @@ -0,0 +1,58 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/lib/skyapi/skyapi/requirements.txt b/lib/skyapi/skyapi/requirements.txt new file mode 100644 index 00000000..bafdc075 --- /dev/null +++ b/lib/skyapi/skyapi/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/lib/skyapi/skyapi/setup.py b/lib/skyapi/skyapi/setup.py new file mode 100644 index 00000000..9290df54 --- /dev/null +++ b/lib/skyapi/skyapi/setup.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "skyapi" +VERSION = "0.27.0" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +setup( + name=NAME, + version=VERSION, + description="Skycoin REST API.", + author_email="contact@skycoin.net", + url="", + keywords=["OpenAPI", "OpenAPI-Generator", "Skycoin REST API."], + install_requires=REQUIRES, + packages=find_packages(exclude=["test", "tests"]), + include_package_data=True, + long_description="""\ + Skycoin is a next-generation cryptocurrency. # noqa: E501 + """ +) diff --git a/lib/skyapi/skyapi/skyapi/__init__.py b/lib/skyapi/skyapi/skyapi/__init__.py new file mode 100644 index 00000000..c41a1527 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/__init__.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +# flake8: noqa + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +__version__ = "0.27.0" + +# import apis into sdk package +from skyapi.api.default_api import DefaultApi + +# import ApiClient +from skyapi.api_client import ApiClient +from skyapi.configuration import Configuration +from skyapi.exceptions import OpenApiException +from skyapi.exceptions import ApiTypeError +from skyapi.exceptions import ApiValueError +from skyapi.exceptions import ApiKeyError +from skyapi.exceptions import ApiException +# import models into sdk package +from skyapi.models.address import Address +from skyapi.models.api_v1_pending_txs_transaction import ApiV1PendingTxsTransaction +from skyapi.models.api_v1_pending_txs_transaction_outputs import ApiV1PendingTxsTransactionOutputs +from skyapi.models.block_schema import BlockSchema +from skyapi.models.block_schema_body import BlockSchemaBody +from skyapi.models.block_verbose_schema import BlockVerboseSchema +from skyapi.models.block_verbose_schema_body import BlockVerboseSchemaBody +from skyapi.models.block_verbose_schema_header import BlockVerboseSchemaHeader +from skyapi.models.inline_response200 import InlineResponse200 +from skyapi.models.inline_response2001 import InlineResponse2001 +from skyapi.models.inline_response20010 import InlineResponse20010 +from skyapi.models.inline_response2002 import InlineResponse2002 +from skyapi.models.inline_response2003 import InlineResponse2003 +from skyapi.models.inline_response2004 import InlineResponse2004 +from skyapi.models.inline_response2005 import InlineResponse2005 +from skyapi.models.inline_response2006 import InlineResponse2006 +from skyapi.models.inline_response2007 import InlineResponse2007 +from skyapi.models.inline_response2008 import InlineResponse2008 +from skyapi.models.inline_response2008_data import InlineResponse2008Data +from skyapi.models.inline_response2009 import InlineResponse2009 +from skyapi.models.inline_response_default import InlineResponseDefault +from skyapi.models.network_connection_schema import NetworkConnectionSchema +from skyapi.models.network_connection_schema_unconfirmed_verify_transaction import NetworkConnectionSchemaUnconfirmedVerifyTransaction +from skyapi.models.transaction import Transaction +from skyapi.models.transaction_encoded import TransactionEncoded +from skyapi.models.transaction_encoded_s import TransactionEncodedS +from skyapi.models.transaction_status import TransactionStatus +from skyapi.models.transaction_txn import TransactionTxn +from skyapi.models.transaction_v2_params_address import TransactionV2ParamsAddress +from skyapi.models.transaction_v2_params_address_hours_selection import TransactionV2ParamsAddressHoursSelection +from skyapi.models.transaction_v2_params_unspent import TransactionV2ParamsUnspent +from skyapi.models.transaction_v2_params_unspent_hours_selection import TransactionV2ParamsUnspentHoursSelection +from skyapi.models.transaction_v2_params_unspent_to import TransactionV2ParamsUnspentTo +from skyapi.models.transaction_verbose import TransactionVerbose +from skyapi.models.transaction_verbose_txn import TransactionVerboseTxn +from skyapi.models.transaction_verbose_txn_inputs import TransactionVerboseTxnInputs +from skyapi.models.transaction_verify_request import TransactionVerifyRequest +from skyapi.models.wallet_transaction_request import WalletTransactionRequest +from skyapi.models.wallet_transaction_request_hours_selection import WalletTransactionRequestHoursSelection +from skyapi.models.wallet_transaction_request_wallet import WalletTransactionRequestWallet +from skyapi.models.wallet_transaction_sign_request import WalletTransactionSignRequest + diff --git a/lib/skyapi/skyapi/skyapi/api/__init__.py b/lib/skyapi/skyapi/skyapi/api/__init__.py new file mode 100644 index 00000000..f911e521 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/api/__init__.py @@ -0,0 +1,6 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from skyapi.api.default_api import DefaultApi diff --git a/lib/skyapi/skyapi/skyapi/api/default_api.py b/lib/skyapi/skyapi/skyapi/api/default_api.py new file mode 100644 index 00000000..99aa2a33 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/api/default_api.py @@ -0,0 +1,5997 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from skyapi.api_client import ApiClient +from skyapi.exceptions import ( + ApiTypeError, + ApiValueError +) + + +class DefaultApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def address_count(self, **kwargs): # noqa: E501 + """Returns the total number of unique address that have coins. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.address_count(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.address_count_with_http_info(**kwargs) # noqa: E501 + + def address_count_with_http_info(self, **kwargs): # noqa: E501 + """Returns the total number of unique address that have coins. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.address_count_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse200, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method address_count" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/addresscount', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse200', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def address_uxouts(self, address, **kwargs): # noqa: E501 + """address_uxouts # noqa: E501 + + Returns the historical, spent outputs associated with an address # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.address_uxouts(address, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str address: address to filter by (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: list[object] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.address_uxouts_with_http_info(address, **kwargs) # noqa: E501 + + def address_uxouts_with_http_info(self, address, **kwargs): # noqa: E501 + """address_uxouts # noqa: E501 + + Returns the historical, spent outputs associated with an address # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.address_uxouts_with_http_info(address, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str address: address to filter by (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(list[object], status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['address'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method address_uxouts" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'address' is set + if ('address' not in local_var_params or + local_var_params['address'] is None): + raise ApiValueError("Missing the required parameter `address` when calling `address_uxouts`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'address' in local_var_params: + query_params.append(('address', local_var_params['address'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/address_uxouts', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[object]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_v1_rawtx_get(self, **kwargs): # noqa: E501 + """api_v1_rawtx_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_v1_rawtx_get(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_v1_rawtx_get_with_http_info(**kwargs) # noqa: E501 + + def api_v1_rawtx_get_with_http_info(self, **kwargs): # noqa: E501 + """api_v1_rawtx_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_v1_rawtx_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_v1_rawtx_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/rawtx', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def api_v2_metrics_get(self, **kwargs): # noqa: E501 + """api_v2_metrics_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_v2_metrics_get(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.api_v2_metrics_get_with_http_info(**kwargs) # noqa: E501 + + def api_v2_metrics_get_with_http_info(self, **kwargs): # noqa: E501 + """api_v2_metrics_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.api_v2_metrics_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method api_v2_metrics_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/metrics', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def balance_get(self, addrs, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.balance_get(addrs, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addrs: command separated list of addresses (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.balance_get_with_http_info(addrs, **kwargs) # noqa: E501 + + def balance_get_with_http_info(self, addrs, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.balance_get_with_http_info(addrs, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addrs: command separated list of addresses (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['addrs'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method balance_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'addrs' is set + if ('addrs' not in local_var_params or + local_var_params['addrs'] is None): + raise ApiValueError("Missing the required parameter `addrs` when calling `balance_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'addrs' in local_var_params: + query_params.append(('addrs', local_var_params['addrs'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/balance', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def balance_post(self, addrs, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.balance_post(addrs, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addrs: command separated list of addresses (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.balance_post_with_http_info(addrs, **kwargs) # noqa: E501 + + def balance_post_with_http_info(self, addrs, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.balance_post_with_http_info(addrs, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addrs: command separated list of addresses (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['addrs'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method balance_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'addrs' is set + if ('addrs' not in local_var_params or + local_var_params['addrs'] is None): + raise ApiValueError("Missing the required parameter `addrs` when calling `balance_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'addrs' in local_var_params: + query_params.append(('addrs', local_var_params['addrs'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/balance', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def block(self, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.block(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str hash: get block by hash + :param int seq: get block by sequence number + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: list[BlockSchema] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.block_with_http_info(**kwargs) # noqa: E501 + + def block_with_http_info(self, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.block_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str hash: get block by hash + :param int seq: get block by sequence number + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(list[BlockSchema], status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['hash', 'seq'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method block" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'hash' in local_var_params: + query_params.append(('hash', local_var_params['hash'])) # noqa: E501 + if 'seq' in local_var_params: + query_params.append(('seq', local_var_params['seq'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/block', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[BlockSchema]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def blockchain_metadata(self, **kwargs): # noqa: E501 + """Returns the blockchain metadata. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.blockchain_metadata(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.blockchain_metadata_with_http_info(**kwargs) # noqa: E501 + + def blockchain_metadata_with_http_info(self, **kwargs): # noqa: E501 + """Returns the blockchain metadata. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.blockchain_metadata_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method blockchain_metadata" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/blockchain/metadata', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def blockchain_progress(self, **kwargs): # noqa: E501 + """Returns the blockchain sync progress. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.blockchain_progress(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.blockchain_progress_with_http_info(**kwargs) # noqa: E501 + + def blockchain_progress_with_http_info(self, **kwargs): # noqa: E501 + """Returns the blockchain sync progress. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.blockchain_progress_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method blockchain_progress" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/blockchain/progress', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def blocks(self, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.blocks(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int start: start seq + :param int end: end seq + :param list[int] seq: comma-separated list of block seqs + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2001 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.blocks_with_http_info(**kwargs) # noqa: E501 + + def blocks_with_http_info(self, **kwargs): # noqa: E501 + """Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.blocks_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int start: start seq + :param int end: end seq + :param list[int] seq: comma-separated list of block seqs + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2001, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['start', 'end', 'seq'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method blocks" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start' in local_var_params: + query_params.append(('start', local_var_params['start'])) # noqa: E501 + if 'end' in local_var_params: + query_params.append(('end', local_var_params['end'])) # noqa: E501 + if 'seq' in local_var_params: + query_params.append(('seq', local_var_params['seq'])) # noqa: E501 + collection_formats['seq'] = 'multi' # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/blocks', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2001', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def coin_supply(self, **kwargs): # noqa: E501 + """coin_supply # noqa: E501 + + coinSupplyHandler returns coin distribution supply stats # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.coin_supply(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2002 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.coin_supply_with_http_info(**kwargs) # noqa: E501 + + def coin_supply_with_http_info(self, **kwargs): # noqa: E501 + """coin_supply # noqa: E501 + + coinSupplyHandler returns coin distribution supply stats # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.coin_supply_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2002, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method coin_supply" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/coinSupply', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2002', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def csrf(self, **kwargs): # noqa: E501 + """Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.csrf(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2003 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.csrf_with_http_info(**kwargs) # noqa: E501 + + def csrf_with_http_info(self, **kwargs): # noqa: E501 + """Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.csrf_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2003, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method csrf" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/csrf', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2003', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def data_delete(self, **kwargs): # noqa: E501 + """data_delete # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.data_delete(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str type: storage type. + :param str key: key of the specific value to get. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.data_delete_with_http_info(**kwargs) # noqa: E501 + + def data_delete_with_http_info(self, **kwargs): # noqa: E501 + """data_delete # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.data_delete_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str type: storage type. + :param str key: key of the specific value to get. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['type', 'key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method data_delete" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'type' in local_var_params: + header_params['type'] = local_var_params['type'] # noqa: E501 + if 'key' in local_var_params: + header_params['key'] = local_var_params['key'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/data', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def data_get(self, **kwargs): # noqa: E501 + """data_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.data_get(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str type: storage type. + :param str key: key of the specific value to get. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.data_get_with_http_info(**kwargs) # noqa: E501 + + def data_get_with_http_info(self, **kwargs): # noqa: E501 + """data_get # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.data_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str type: storage type. + :param str key: key of the specific value to get. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['type', 'key'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method data_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'type' in local_var_params: + header_params['type'] = local_var_params['type'] # noqa: E501 + if 'key' in local_var_params: + header_params['key'] = local_var_params['key'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/data', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def data_post(self, **kwargs): # noqa: E501 + """data_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.data_post(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str type: storage type. + :param str key: key of the specific value to get. + :param str val: additional value. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.data_post_with_http_info(**kwargs) # noqa: E501 + + def data_post_with_http_info(self, **kwargs): # noqa: E501 + """data_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.data_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str type: storage type. + :param str key: key of the specific value to get. + :param str val: additional value. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['type', 'key', 'val'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method data_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'type' in local_var_params: + header_params['type'] = local_var_params['type'] # noqa: E501 + if 'key' in local_var_params: + header_params['key'] = local_var_params['key'] # noqa: E501 + if 'val' in local_var_params: + header_params['val'] = local_var_params['val'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/data', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def default_connections(self, **kwargs): # noqa: E501 + """defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_connections(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.default_connections_with_http_info(**kwargs) # noqa: E501 + + def default_connections_with_http_info(self, **kwargs): # noqa: E501 + """defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.default_connections_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(list[str], status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method default_connections" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/network/defaultConnections', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[str]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def health(self, **kwargs): # noqa: E501 + """Returns node health data. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.health(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.health_with_http_info(**kwargs) # noqa: E501 + + def health_with_http_info(self, **kwargs): # noqa: E501 + """Returns node health data. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.health_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method health" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/health', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def last_blocks(self, num, **kwargs): # noqa: E501 + """last_blocks # noqa: E501 + + Returns the most recent N blocks on the blockchain # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.last_blocks(num, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int num: Num of blockss (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.last_blocks_with_http_info(num, **kwargs) # noqa: E501 + + def last_blocks_with_http_info(self, num, **kwargs): # noqa: E501 + """last_blocks # noqa: E501 + + Returns the most recent N blocks on the blockchain # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.last_blocks_with_http_info(num, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param int num: Num of blockss (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['num'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method last_blocks" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'num' is set + if ('num' not in local_var_params or + local_var_params['num'] is None): + raise ApiValueError("Missing the required parameter `num` when calling `last_blocks`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'num' in local_var_params: + query_params.append(('num', local_var_params['num'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/last_blocks', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def network_connection(self, addr, **kwargs): # noqa: E501 + """This endpoint returns a specific connection. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connection(addr, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addr: Address port (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: NetworkConnectionSchema + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.network_connection_with_http_info(addr, **kwargs) # noqa: E501 + + def network_connection_with_http_info(self, addr, **kwargs): # noqa: E501 + """This endpoint returns a specific connection. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connection_with_http_info(addr, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addr: Address port (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(NetworkConnectionSchema, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['addr'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method network_connection" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'addr' is set + if ('addr' not in local_var_params or + local_var_params['addr'] is None): + raise ApiValueError("Missing the required parameter `addr` when calling `network_connection`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'addr' in local_var_params: + query_params.append(('addr', local_var_params['addr'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/network/connection', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NetworkConnectionSchema', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def network_connections(self, **kwargs): # noqa: E501 + """This endpoint returns all outgoings connections. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connections(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str states: Connection status. + :param str direction: Direction of the connection. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2004 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.network_connections_with_http_info(**kwargs) # noqa: E501 + + def network_connections_with_http_info(self, **kwargs): # noqa: E501 + """This endpoint returns all outgoings connections. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connections_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str states: Connection status. + :param str direction: Direction of the connection. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2004, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['states', 'direction'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method network_connections" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'states' in local_var_params: + query_params.append(('states', local_var_params['states'])) # noqa: E501 + if 'direction' in local_var_params: + query_params.append(('direction', local_var_params['direction'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/network/connections', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2004', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def network_connections_disconnect(self, id, **kwargs): # noqa: E501 + """network_connections_disconnect # noqa: E501 + + This endpoint disconnects a connection by ID or address # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connections_disconnect(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Address id. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.network_connections_disconnect_with_http_info(id, **kwargs) # noqa: E501 + + def network_connections_disconnect_with_http_info(self, id, **kwargs): # noqa: E501 + """network_connections_disconnect # noqa: E501 + + This endpoint disconnects a connection by ID or address # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connections_disconnect_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Address id. (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method network_connections_disconnect" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `network_connections_disconnect`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/network/connection/disconnect', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def network_connections_exchange(self, **kwargs): # noqa: E501 + """network_connections_exchange # noqa: E501 + + This endpoint returns all connections found through peer exchange # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connections_exchange(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.network_connections_exchange_with_http_info(**kwargs) # noqa: E501 + + def network_connections_exchange_with_http_info(self, **kwargs): # noqa: E501 + """network_connections_exchange # noqa: E501 + + This endpoint returns all connections found through peer exchange # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connections_exchange_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(list[str], status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method network_connections_exchange" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/network/connections/exchange', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[str]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def network_connections_trust(self, **kwargs): # noqa: E501 + """trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connections_trust(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: list[str] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.network_connections_trust_with_http_info(**kwargs) # noqa: E501 + + def network_connections_trust_with_http_info(self, **kwargs): # noqa: E501 + """trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.network_connections_trust_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(list[str], status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method network_connections_trust" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/network/connections/trust', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[str]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def outputs_get(self, **kwargs): # noqa: E501 + """If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.outputs_get(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param list[str] address: + :param list[str] hash: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.outputs_get_with_http_info(**kwargs) # noqa: E501 + + def outputs_get_with_http_info(self, **kwargs): # noqa: E501 + """If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.outputs_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param list[str] address: + :param list[str] hash: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['address', 'hash'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method outputs_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'address' in local_var_params: + query_params.append(('address', local_var_params['address'])) # noqa: E501 + collection_formats['address'] = 'multi' # noqa: E501 + if 'hash' in local_var_params: + query_params.append(('hash', local_var_params['hash'])) # noqa: E501 + collection_formats['hash'] = 'multi' # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/outputs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def outputs_post(self, **kwargs): # noqa: E501 + """If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.outputs_post(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str address: + :param str hash: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.outputs_post_with_http_info(**kwargs) # noqa: E501 + + def outputs_post_with_http_info(self, **kwargs): # noqa: E501 + """If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.outputs_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str address: + :param str hash: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['address', 'hash'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method outputs_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'address' in local_var_params: + query_params.append(('address', local_var_params['address'])) # noqa: E501 + if 'hash' in local_var_params: + query_params.append(('hash', local_var_params['hash'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/outputs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def pending_txs(self, **kwargs): # noqa: E501 + """pending_txs # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.pending_txs(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: list[InlineResponse20010] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.pending_txs_with_http_info(**kwargs) # noqa: E501 + + def pending_txs_with_http_info(self, **kwargs): # noqa: E501 + """pending_txs # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.pending_txs_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(list[InlineResponse20010], status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method pending_txs" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/pendingTxs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[InlineResponse20010]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def resend_unconfirmed_txns(self, **kwargs): # noqa: E501 + """resend_unconfirmed_txns # noqa: E501 + + Broadcasts all unconfirmed transactions from the unconfirmed transaction pool # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.resend_unconfirmed_txns(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.resend_unconfirmed_txns_with_http_info(**kwargs) # noqa: E501 + + def resend_unconfirmed_txns_with_http_info(self, **kwargs): # noqa: E501 + """resend_unconfirmed_txns # noqa: E501 + + Broadcasts all unconfirmed transactions from the unconfirmed transaction pool # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.resend_unconfirmed_txns_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method resend_unconfirmed_txns" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application-json', 'application/json', 'application/xml']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/resendUnconfirmedTxns', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def richlist(self, **kwargs): # noqa: E501 + """Returns the top skycoin holders. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.richlist(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool include_distribution: include distribution addresses or not, default value false + :param str n: include distribution addresses or not, default value false + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.richlist_with_http_info(**kwargs) # noqa: E501 + + def richlist_with_http_info(self, **kwargs): # noqa: E501 + """Returns the top skycoin holders. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.richlist_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param bool include_distribution: include distribution addresses or not, default value false + :param str n: include distribution addresses or not, default value false + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['include_distribution', 'n'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method richlist" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'include_distribution' in local_var_params: + query_params.append(('include-distribution', local_var_params['include_distribution'])) # noqa: E501 + if 'n' in local_var_params: + query_params.append(('n', local_var_params['n'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/richlist', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transaction(self, txid, **kwargs): # noqa: E501 + """transaction # noqa: E501 + + Returns a transaction identified by its txid hash with just id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction(txid, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str txid: transaction Id (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Transaction + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.transaction_with_http_info(txid, **kwargs) # noqa: E501 + + def transaction_with_http_info(self, txid, **kwargs): # noqa: E501 + """transaction # noqa: E501 + + Returns a transaction identified by its txid hash with just id # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_with_http_info(txid, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str txid: transaction Id (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(Transaction, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['txid'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transaction" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'txid' is set + if ('txid' not in local_var_params or + local_var_params['txid'] is None): + raise ApiValueError("Missing the required parameter `txid` when calling `transaction`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'txid' in local_var_params: + query_params.append(('txid', local_var_params['txid'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/transaction', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Transaction', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transaction_inject(self, rawtx, **kwargs): # noqa: E501 + """Broadcast a hex-encoded, serialized transaction to the network. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_inject(rawtx, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str rawtx: hex-encoded serialized transaction string. (required) + :param bool no_broadcast: Disable the network broadcast + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.transaction_inject_with_http_info(rawtx, **kwargs) # noqa: E501 + + def transaction_inject_with_http_info(self, rawtx, **kwargs): # noqa: E501 + """Broadcast a hex-encoded, serialized transaction to the network. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_inject_with_http_info(rawtx, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str rawtx: hex-encoded serialized transaction string. (required) + :param bool no_broadcast: Disable the network broadcast + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['rawtx', 'no_broadcast'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transaction_inject" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'rawtx' is set + if ('rawtx' not in local_var_params or + local_var_params['rawtx'] is None): + raise ApiValueError("Missing the required parameter `rawtx` when calling `transaction_inject`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'rawtx' in local_var_params: + header_params['rawtx'] = local_var_params['rawtx'] # noqa: E501 + if 'no_broadcast' in local_var_params: + header_params['no_broadcast'] = local_var_params['no_broadcast'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'application/xml']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/injectTransaction', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transaction_post(self, **kwargs): # noqa: E501 + """transaction_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_post(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param TransactionV2ParamsAddress transaction_v2_params_address: + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2008 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.transaction_post_with_http_info(**kwargs) # noqa: E501 + + def transaction_post_with_http_info(self, **kwargs): # noqa: E501 + """transaction_post # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param TransactionV2ParamsAddress transaction_v2_params_address: + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2008, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['transaction_v2_params_address'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transaction_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'transaction_v2_params_address' in local_var_params: + body_params = local_var_params['transaction_v2_params_address'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/transaction', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2008', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transaction_post_unspent(self, transaction_v2_params_unspent, **kwargs): # noqa: E501 + """transaction_post_unspent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_post_unspent(transaction_v2_params_unspent, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param TransactionV2ParamsUnspent transaction_v2_params_unspent: Unspent parameters (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2008 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.transaction_post_unspent_with_http_info(transaction_v2_params_unspent, **kwargs) # noqa: E501 + + def transaction_post_unspent_with_http_info(self, transaction_v2_params_unspent, **kwargs): # noqa: E501 + """transaction_post_unspent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_post_unspent_with_http_info(transaction_v2_params_unspent, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param TransactionV2ParamsUnspent transaction_v2_params_unspent: Unspent parameters (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2008, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['transaction_v2_params_unspent'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transaction_post_unspent" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'transaction_v2_params_unspent' is set + if ('transaction_v2_params_unspent' not in local_var_params or + local_var_params['transaction_v2_params_unspent'] is None): + raise ApiValueError("Missing the required parameter `transaction_v2_params_unspent` when calling `transaction_post_unspent`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'transaction_v2_params_unspent' in local_var_params: + body_params = local_var_params['transaction_v2_params_unspent'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/transaction/unspent', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2008', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transaction_raw(self, **kwargs): # noqa: E501 + """Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_raw(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str txid: Transaction id hash + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.transaction_raw_with_http_info(**kwargs) # noqa: E501 + + def transaction_raw_with_http_info(self, **kwargs): # noqa: E501 + """Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_raw_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str txid: Transaction id hash + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['txid'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transaction_raw" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'txid' in local_var_params: + query_params.append(('txid', local_var_params['txid'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/transaction/raw', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transaction_verify(self, transaction_verify_request, **kwargs): # noqa: E501 + """transaction_verify # noqa: E501 + + Decode and verify an encoded transaction # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_verify(transaction_verify_request, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param TransactionVerifyRequest transaction_verify_request: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.transaction_verify_with_http_info(transaction_verify_request, **kwargs) # noqa: E501 + + def transaction_verify_with_http_info(self, transaction_verify_request, **kwargs): # noqa: E501 + """transaction_verify # noqa: E501 + + Decode and verify an encoded transaction # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transaction_verify_with_http_info(transaction_verify_request, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param TransactionVerifyRequest transaction_verify_request: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['transaction_verify_request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transaction_verify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'transaction_verify_request' is set + if ('transaction_verify_request' not in local_var_params or + local_var_params['transaction_verify_request'] is None): + raise ApiValueError("Missing the required parameter `transaction_verify_request` when calling `transaction_verify`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'transaction_verify_request' in local_var_params: + body_params = local_var_params['transaction_verify_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/transaction/verify', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transactions_get(self, **kwargs): # noqa: E501 + """Returns transactions that match the filters. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transactions_get(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addrs: command separated list of addresses + :param str confirmed: Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.transactions_get_with_http_info(**kwargs) # noqa: E501 + + def transactions_get_with_http_info(self, **kwargs): # noqa: E501 + """Returns transactions that match the filters. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transactions_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addrs: command separated list of addresses + :param str confirmed: Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['addrs', 'confirmed'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transactions_get" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'addrs' in local_var_params: + query_params.append(('addrs', local_var_params['addrs'])) # noqa: E501 + if 'confirmed' in local_var_params: + query_params.append(('confirmed', local_var_params['confirmed'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/transactions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def transactions_post(self, **kwargs): # noqa: E501 + """Returns transactions that match the filters. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transactions_post(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addrs: command separated list of addresses + :param str confirmed: Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.transactions_post_with_http_info(**kwargs) # noqa: E501 + + def transactions_post_with_http_info(self, **kwargs): # noqa: E501 + """Returns transactions that match the filters. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.transactions_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addrs: command separated list of addresses + :param str confirmed: Whether the transactions should be confirmed [optional, must be 0 or 1; if not provided, returns all] + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['addrs', 'confirmed'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method transactions_post" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'addrs' in local_var_params: + query_params.append(('addrs', local_var_params['addrs'])) # noqa: E501 + if 'confirmed' in local_var_params: + query_params.append(('confirmed', local_var_params['confirmed'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/transactions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def uxout(self, **kwargs): # noqa: E501 + """Returns an unspent output by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.uxout(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str uxid: uxid to filter by + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.uxout_with_http_info(**kwargs) # noqa: E501 + + def uxout_with_http_info(self, **kwargs): # noqa: E501 + """Returns an unspent output by ID. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.uxout_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str uxid: uxid to filter by + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['uxid'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method uxout" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'uxid' in local_var_params: + query_params.append(('uxid', local_var_params['uxid'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/uxout', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def verify_address(self, address, **kwargs): # noqa: E501 + """Verifies a Skycoin address. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.verify_address(address, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param Address address: Address id. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.verify_address_with_http_info(address, **kwargs) # noqa: E501 + + def verify_address_with_http_info(self, address, **kwargs): # noqa: E501 + """Verifies a Skycoin address. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.verify_address_with_http_info(address, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param Address address: Address id. (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['address'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method verify_address" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'address' is set + if ('address' not in local_var_params or + local_var_params['address'] is None): + raise ApiValueError("Missing the required parameter `address` when calling `verify_address`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'address' in local_var_params: + query_params.append(('address', local_var_params['address'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/address/verify', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def version(self, **kwargs): # noqa: E501 + """version # noqa: E501 + + versionHandler returns the application version info # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.version(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2005 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.version_with_http_info(**kwargs) # noqa: E501 + + def version_with_http_info(self, **kwargs): # noqa: E501 + """version # noqa: E501 + + versionHandler returns the application version info # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.version_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2005, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method version" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/version', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2005', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet(self, id, **kwargs): # noqa: E501 + """Returns a wallet by id. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: tags to filter by (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_with_http_info(id, **kwargs) # noqa: E501 + + def wallet_with_http_info(self, id, **kwargs): # noqa: E501 + """Returns a wallet by id. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: tags to filter by (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_balance(self, id, **kwargs): # noqa: E501 + """Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_balance(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: tags to filter by (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_balance_with_http_info(id, **kwargs) # noqa: E501 + + def wallet_balance_with_http_info(self, id, **kwargs): # noqa: E501 + """Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_balance_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: tags to filter by (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_balance" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_balance`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/balance', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_create(self, type, seed, label, **kwargs): # noqa: E501 + """wallet_create # noqa: E501 + + Create a wallet # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_create(type, seed, label, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str type: wallet seed passphrase [optional, bip44 type wallet only] (required) + :param str seed: Wallet seed. (required) + :param str label: Wallet label. (required) + :param str seed_passphrase: wallet seed passphrase [optional, bip44 type wallet only] + :param str bip44_coin: BIP44 coin type [optional, defaults to 8000 (skycoin's coin type), only valid if type is \"bip44\"] + :param str xpub: xpub key [required for xpub wallets] + :param int scan: The number of addresses to scan ahead for balances. + :param bool encrypt: Encrypt wallet. + :param str password: Wallet Password + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_create_with_http_info(type, seed, label, **kwargs) # noqa: E501 + + def wallet_create_with_http_info(self, type, seed, label, **kwargs): # noqa: E501 + """wallet_create # noqa: E501 + + Create a wallet # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_create_with_http_info(type, seed, label, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str type: wallet seed passphrase [optional, bip44 type wallet only] (required) + :param str seed: Wallet seed. (required) + :param str label: Wallet label. (required) + :param str seed_passphrase: wallet seed passphrase [optional, bip44 type wallet only] + :param str bip44_coin: BIP44 coin type [optional, defaults to 8000 (skycoin's coin type), only valid if type is \"bip44\"] + :param str xpub: xpub key [required for xpub wallets] + :param int scan: The number of addresses to scan ahead for balances. + :param bool encrypt: Encrypt wallet. + :param str password: Wallet Password + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['type', 'seed', 'label', 'seed_passphrase', 'bip44_coin', 'xpub', 'scan', 'encrypt', 'password'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_create" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'type' is set + if ('type' not in local_var_params or + local_var_params['type'] is None): + raise ApiValueError("Missing the required parameter `type` when calling `wallet_create`") # noqa: E501 + # verify the required parameter 'seed' is set + if ('seed' not in local_var_params or + local_var_params['seed'] is None): + raise ApiValueError("Missing the required parameter `seed` when calling `wallet_create`") # noqa: E501 + # verify the required parameter 'label' is set + if ('label' not in local_var_params or + local_var_params['label'] is None): + raise ApiValueError("Missing the required parameter `label` when calling `wallet_create`") # noqa: E501 + + if 'scan' in local_var_params and local_var_params['scan'] < 1: # noqa: E501 + raise ApiValueError("Invalid value for parameter `scan` when calling `wallet_create`, must be a value greater than or equal to `1`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'seed_passphrase' in local_var_params: + header_params['seed-passphrase'] = local_var_params['seed_passphrase'] # noqa: E501 + if 'type' in local_var_params: + header_params['type'] = local_var_params['type'] # noqa: E501 + if 'bip44_coin' in local_var_params: + header_params['bip44-coin'] = local_var_params['bip44_coin'] # noqa: E501 + if 'seed' in local_var_params: + header_params['seed'] = local_var_params['seed'] # noqa: E501 + if 'xpub' in local_var_params: + header_params['xpub'] = local_var_params['xpub'] # noqa: E501 + if 'label' in local_var_params: + header_params['label'] = local_var_params['label'] # noqa: E501 + if 'scan' in local_var_params: + header_params['scan'] = local_var_params['scan'] # noqa: E501 + if 'encrypt' in local_var_params: + header_params['encrypt'] = local_var_params['encrypt'] # noqa: E501 + if 'password' in local_var_params: + header_params['password'] = local_var_params['password'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/create', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_decrypt(self, id, password, **kwargs): # noqa: E501 + """Decrypts wallet. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_decrypt(id, password, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet id. (required) + :param str password: Wallet password. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_decrypt_with_http_info(id, password, **kwargs) # noqa: E501 + + def wallet_decrypt_with_http_info(self, id, password, **kwargs): # noqa: E501 + """Decrypts wallet. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_decrypt_with_http_info(id, password, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet id. (required) + :param str password: Wallet password. (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id', 'password'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_decrypt" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_decrypt`") # noqa: E501 + # verify the required parameter 'password' is set + if ('password' not in local_var_params or + local_var_params['password'] is None): + raise ApiValueError("Missing the required parameter `password` when calling `wallet_decrypt`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'id' in local_var_params: + header_params['id'] = local_var_params['id'] # noqa: E501 + if 'password' in local_var_params: + header_params['password'] = local_var_params['password'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/decrypt', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_encrypt(self, id, password, **kwargs): # noqa: E501 + """Encrypt wallet. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_encrypt(id, password, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet id. (required) + :param str password: Wallet password. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_encrypt_with_http_info(id, password, **kwargs) # noqa: E501 + + def wallet_encrypt_with_http_info(self, id, password, **kwargs): # noqa: E501 + """Encrypt wallet. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_encrypt_with_http_info(id, password, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet id. (required) + :param str password: Wallet password. (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id', 'password'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_encrypt" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_encrypt`") # noqa: E501 + # verify the required parameter 'password' is set + if ('password' not in local_var_params or + local_var_params['password'] is None): + raise ApiValueError("Missing the required parameter `password` when calling `wallet_encrypt`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'id' in local_var_params: + header_params['id'] = local_var_params['id'] # noqa: E501 + if 'password' in local_var_params: + header_params['password'] = local_var_params['password'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/encrypt', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_folder(self, addr, **kwargs): # noqa: E501 + """wallet_folder # noqa: E501 + + Returns the wallet directory path # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_folder(addr, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addr: Address port (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2007 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_folder_with_http_info(addr, **kwargs) # noqa: E501 + + def wallet_folder_with_http_info(self, addr, **kwargs): # noqa: E501 + """wallet_folder # noqa: E501 + + Returns the wallet directory path # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_folder_with_http_info(addr, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str addr: Address port (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2007, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['addr'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_folder" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'addr' is set + if ('addr' not in local_var_params or + local_var_params['addr'] is None): + raise ApiValueError("Missing the required parameter `addr` when calling `wallet_folder`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'addr' in local_var_params: + query_params.append(('addr', local_var_params['addr'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallets/folderName', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2007', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_new_address(self, id, **kwargs): # noqa: E501 + """wallet_new_address # noqa: E501 + + Generates new addresses # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_new_address(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id (required) + :param str num: The number you want to generate + :param str password: Wallet Password + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_new_address_with_http_info(id, **kwargs) # noqa: E501 + + def wallet_new_address_with_http_info(self, id, **kwargs): # noqa: E501 + """wallet_new_address # noqa: E501 + + Generates new addresses # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_new_address_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id (required) + :param str num: The number you want to generate + :param str password: Wallet Password + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id', 'num', 'password'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_new_address" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_new_address`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) # noqa: E501 + if 'num' in local_var_params: + query_params.append(('num', local_var_params['num'])) # noqa: E501 + if 'password' in local_var_params: + query_params.append(('password', local_var_params['password'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/newAddress', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_new_seed(self, **kwargs): # noqa: E501 + """wallet_new_seed # noqa: E501 + + Returns the wallet directory path # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_new_seed(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str entropy: Entropy bitSize. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_new_seed_with_http_info(**kwargs) # noqa: E501 + + def wallet_new_seed_with_http_info(self, **kwargs): # noqa: E501 + """wallet_new_seed # noqa: E501 + + Returns the wallet directory path # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_new_seed_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str entropy: Entropy bitSize. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['entropy'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_new_seed" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'entropy' in local_var_params: + query_params.append(('entropy', local_var_params['entropy'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/newSeed', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_recover(self, id, seed, **kwargs): # noqa: E501 + """Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. # noqa: E501 + + Recovers an encrypted wallet by providing the wallet seed and optional seed passphrase # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_recover(id, seed, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet id. (required) + :param str seed: Wallet seed. (required) + :param str seed_passphrase: Wallet seed-passphrase. + :param str password: Wallet password. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_recover_with_http_info(id, seed, **kwargs) # noqa: E501 + + def wallet_recover_with_http_info(self, id, seed, **kwargs): # noqa: E501 + """Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. # noqa: E501 + + Recovers an encrypted wallet by providing the wallet seed and optional seed passphrase # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_recover_with_http_info(id, seed, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet id. (required) + :param str seed: Wallet seed. (required) + :param str seed_passphrase: Wallet seed-passphrase. + :param str password: Wallet password. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id', 'seed', 'seed_passphrase', 'password'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_recover" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_recover`") # noqa: E501 + # verify the required parameter 'seed' is set + if ('seed' not in local_var_params or + local_var_params['seed'] is None): + raise ApiValueError("Missing the required parameter `seed` when calling `wallet_recover`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'id' in local_var_params: + header_params['id'] = local_var_params['id'] # noqa: E501 + if 'seed' in local_var_params: + header_params['seed'] = local_var_params['seed'] # noqa: E501 + if 'seed_passphrase' in local_var_params: + header_params['seed-passphrase'] = local_var_params['seed_passphrase'] # noqa: E501 + if 'password' in local_var_params: + header_params['password'] = local_var_params['password'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/wallet/recover', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_seed(self, id, password, **kwargs): # noqa: E501 + """This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_seed(id, password, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id. (required) + :param str password: Wallet password. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_seed_with_http_info(id, password, **kwargs) # noqa: E501 + + def wallet_seed_with_http_info(self, id, password, **kwargs): # noqa: E501 + """This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_seed_with_http_info(id, password, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id. (required) + :param str password: Wallet password. (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id', 'password'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_seed" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_seed`") # noqa: E501 + # verify the required parameter 'password' is set + if ('password' not in local_var_params or + local_var_params['password'] is None): + raise ApiValueError("Missing the required parameter `password` when calling `wallet_seed`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) # noqa: E501 + if 'password' in local_var_params: + query_params.append(('password', local_var_params['password'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/seed', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_seed_verify(self, **kwargs): # noqa: E501 + """Verifies a wallet seed. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_seed_verify(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str seed: Seed to be verified. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_seed_verify_with_http_info(**kwargs) # noqa: E501 + + def wallet_seed_verify_with_http_info(self, **kwargs): # noqa: E501 + """Verifies a wallet seed. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_seed_verify_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str seed: Seed to be verified. + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['seed'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_seed_verify" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'seed' in local_var_params: + header_params['seed'] = local_var_params['seed'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/wallet/seed/verify', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_transaction(self, wallet_transaction_request, **kwargs): # noqa: E501 + """Creates a signed transaction # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_transaction(wallet_transaction_request, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param WalletTransactionRequest wallet_transaction_request: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: object + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_transaction_with_http_info(wallet_transaction_request, **kwargs) # noqa: E501 + + def wallet_transaction_with_http_info(self, wallet_transaction_request, **kwargs): # noqa: E501 + """Creates a signed transaction # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_transaction_with_http_info(wallet_transaction_request, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param WalletTransactionRequest wallet_transaction_request: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(object, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['wallet_transaction_request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_transaction" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'wallet_transaction_request' is set + if ('wallet_transaction_request' not in local_var_params or + local_var_params['wallet_transaction_request'] is None): + raise ApiValueError("Missing the required parameter `wallet_transaction_request` when calling `wallet_transaction`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'wallet_transaction_request' in local_var_params: + body_params = local_var_params['wallet_transaction_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/transaction', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='object', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_transaction_sign(self, wallet_transaction_sign_request, **kwargs): # noqa: E501 + """Creates a signed transaction # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_transaction_sign(wallet_transaction_sign_request, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param WalletTransactionSignRequest wallet_transaction_sign_request: (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2009 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_transaction_sign_with_http_info(wallet_transaction_sign_request, **kwargs) # noqa: E501 + + def wallet_transaction_sign_with_http_info(self, wallet_transaction_sign_request, **kwargs): # noqa: E501 + """Creates a signed transaction # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_transaction_sign_with_http_info(wallet_transaction_sign_request, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param WalletTransactionSignRequest wallet_transaction_sign_request: (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2009, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['wallet_transaction_sign_request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_transaction_sign" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'wallet_transaction_sign_request' is set + if ('wallet_transaction_sign_request' not in local_var_params or + local_var_params['wallet_transaction_sign_request'] is None): + raise ApiValueError("Missing the required parameter `wallet_transaction_sign_request` when calling `wallet_transaction_sign`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'wallet_transaction_sign_request' in local_var_params: + body_params = local_var_params['wallet_transaction_sign_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v2/wallet/transaction/sign', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2009', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_transactions(self, id, **kwargs): # noqa: E501 + """wallet_transactions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_transactions(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: InlineResponse2006 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_transactions_with_http_info(id, **kwargs) # noqa: E501 + + def wallet_transactions_with_http_info(self, id, **kwargs): # noqa: E501 + """wallet_transactions # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_transactions_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id. (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(InlineResponse2006, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_transactions" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_transactions`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/transactions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2006', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_unload(self, id, **kwargs): # noqa: E501 + """Unloads wallet from the wallet service. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_unload(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_unload_with_http_info(id, **kwargs) # noqa: E501 + + def wallet_unload_with_http_info(self, id, **kwargs): # noqa: E501 + """Unloads wallet from the wallet service. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_unload_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id. (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_unload" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_unload`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'id' in local_var_params: + query_params.append(('id', local_var_params['id'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/unload', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallet_update(self, id, label, **kwargs): # noqa: E501 + """Update the wallet. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_update(id, label, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id. (required) + :param str label: The label the wallet will be updated to. (required) + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallet_update_with_http_info(id, label, **kwargs) # noqa: E501 + + def wallet_update_with_http_info(self, id, label, **kwargs): # noqa: E501 + """Update the wallet. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallet_update_with_http_info(id, label, async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param str id: Wallet Id. (required) + :param str label: The label the wallet will be updated to. (required) + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(str, status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = ['id', 'label'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallet_update" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in local_var_params or + local_var_params['id'] is None): + raise ApiValueError("Missing the required parameter `id` when calling `wallet_update`") # noqa: E501 + # verify the required parameter 'label' is set + if ('label' not in local_var_params or + local_var_params['label'] is None): + raise ApiValueError("Missing the required parameter `label` when calling `wallet_update`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + if 'id' in local_var_params: + header_params['id'] = local_var_params['id'] # noqa: E501 + if 'label' in local_var_params: + header_params['label'] = local_var_params['label'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'application/xml']) # noqa: E501 + + # Authentication setting + auth_settings = ['csrfAuth'] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallet/update', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) + + def wallets(self, **kwargs): # noqa: E501 + """wallets # noqa: E501 + + Returns all loaded wallets # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallets(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: list[object] + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + return self.wallets_with_http_info(**kwargs) # noqa: E501 + + def wallets_with_http_info(self, **kwargs): # noqa: E501 + """wallets # noqa: E501 + + Returns all loaded wallets # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.wallets_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: tuple(list[object], status_code(int), headers(HTTPHeaderDict)) + If the method is called asynchronously, + returns the request thread. + """ + + local_var_params = locals() + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + for key, val in six.iteritems(local_var_params['kwargs']): + if key not in all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method wallets" % key + ) + local_var_params[key] = val + del local_var_params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json', 'application/xml', ]) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/api/v1/wallets', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='list[object]', # noqa: E501 + auth_settings=auth_settings, + async_req=local_var_params.get('async_req'), + _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=local_var_params.get('_preload_content', True), + _request_timeout=local_var_params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/lib/skyapi/skyapi/skyapi/api_client.py b/lib/skyapi/skyapi/skyapi/api_client.py new file mode 100644 index 00000000..aae0670f --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/api_client.py @@ -0,0 +1,641 @@ +# coding: utf-8 +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + +from __future__ import absolute_import + +import datetime +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from skyapi.configuration import Configuration +import skyapi.models +from skyapi import rest +from skyapi.exceptions import ApiValueError + + +class ApiClient(object): + """Generic API client for OpenAPI client library builds. + + OpenAPI generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the OpenAPI + templates. + + NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + :param pool_threads: The number of threads to use for async requests + to the API. More threads means more concurrent API requests. + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + _pool = None + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None, pool_threads=1): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + self.pool_threads = pool_threads + + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'OpenAPI-Generator/0.27.0/python' + + def __del__(self): + if self._pool: + self._pool.close() + self._pool.join() + self._pool = None + + @property + def pool(self): + """Create thread pool on first request + avoids instantiating unused threadpool for blocking clients. + """ + if self._pool is None: + self._pool = ThreadPool(self.pool_threads) + return self._pool + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None, _host=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = post_params if post_params else [] + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + post_params.extend(self.files_parameters(files)) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + if _host is None: + url = self.configuration.host + resource_path + else: + # use server/host defined in path or operation instead + url = _host + resource_path + + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is OpenAPI model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.openapi_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(skyapi.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None, _host=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async_req request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout, _host) + else: + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, + _request_timeout, + _host)) + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ApiValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def files_parameters(self, files=None): + """Builds form parameters. + + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'cookie': + headers['Cookie'] = auth_setting['value'] + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ApiValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + + with open(path, "wb") as f: + f.write(response.data) + + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return an original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datatime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + if not klass.openapi_types and not hasattr(klass, + 'get_real_child_model'): + return data + + kwargs = {} + if klass.openapi_types is not None: + for attr, attr_type in six.iteritems(klass.openapi_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/lib/skyapi/skyapi/skyapi/configuration.py b/lib/skyapi/skyapi/skyapi/configuration.py new file mode 100644 index 00000000..b6e20c20 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/configuration.py @@ -0,0 +1,334 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +import six +from six.moves import http_client as httplib + + +class TypeWithDefault(type): + def __init__(cls, name, bases, dct): + super(TypeWithDefault, cls).__init__(name, bases, dct) + cls._default = None + + def __call__(cls, **kwargs): + if cls._default is None: + cls._default = type.__call__(cls, **kwargs) + return copy.copy(cls._default) + + def set_default(cls, default): + cls._default = copy.copy(default) + + +class Configuration(six.with_metaclass(TypeWithDefault, object)): + """NOTE: This class is auto generated by OpenAPI Generator + + Ref: https://openapi-generator.tech + Do not edit the class manually. + + :param host: Base url + :param api_key: Dict to store API key(s) + :param api_key_prefix: Dict to store API prefix (e.g. Bearer) + :param username: Username for HTTP basic authentication + :param password: Password for HTTP basic authentication + """ + + def __init__(self, host="http://127.0.0.1:6420", + api_key={}, api_key_prefix={}, + username="", password=""): + """Constructor + """ + self.host = host + """Default Base url + """ + self.temp_folder_path = None + """Temp file folder for downloading files + """ + # Authentication Settings + self.api_key = api_key + """dict to store API key(s) + """ + self.api_key_prefix = api_key_prefix + """dict to store API prefix (e.g. Bearer) + """ + self.refresh_api_key_hook = None + """function hook to refresh API key if expired + """ + self.username = username + """Username for HTTP basic authentication + """ + self.password = password + """Password for HTTP basic authentication + """ + self.logger = {} + """Logging Settings + """ + self.logger["package_logger"] = logging.getLogger("skyapi") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + """Log format + """ + self.logger_stream_handler = None + """Log stream handler + """ + self.logger_file_handler = None + """Log file handler + """ + self.logger_file = None + """Debug file location + """ + self.debug = False + """Debug switch + """ + + self.verify_ssl = True + """SSL/TLS verification + Set this to false to skip verifying SSL certificate when calling API + from https server. + """ + self.ssl_ca_cert = None + """Set this to customize the certificate file to verify the peer. + """ + self.cert_file = None + """client certificate file + """ + self.key_file = None + """client key file + """ + self.assert_hostname = None + """Set this to True/False to enable/disable SSL hostname verification. + """ + + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + """urllib3 connection pool's maximum number of connections saved + per pool. urllib3 uses 1 connection as default value, but this is + not the best value when you are making a lot of possibly parallel + requests to the same host, which is often the case here. + cpu_count * 5 is used as default value to increase performance. + """ + + self.proxy = None + """Proxy URL + """ + self.proxy_headers = None + """Proxy headers + """ + self.safe_chars_for_path_param = '' + """Safe chars for path_param + """ + self.retries = None + """Adding retries to override urllib3 default value 3 + """ + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook is not None: + self.refresh_api_key_hook(self) + key = self.api_key.get(identifier) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + 'csrfAuth': + { + 'type': 'api_key', + 'in': 'header', + 'key': 'X-CSRF-TOKEN', + 'value': self.get_api_key_with_prefix('X-CSRF-TOKEN') + }, + } + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: 0.27.0\n"\ + "SDK Package Version: 0.27.0".\ + format(env=sys.platform, pyversion=sys.version) + + def get_host_settings(self): + """Gets an array of host settings + + :return: An array of host settings + """ + return [ + { + 'url': "http://127.0.0.1:6420", + 'description': "No description provided", + }, + { + 'url': "https://skycoin.net", + 'description': "No description provided", + }, + { + 'url': "https://staging.node.skycoin.net", + 'description': "No description provided", + } + ] + + def get_host_from_settings(self, index, variables={}): + """Gets host URL based on the index and variables + :param index: array index of the host settings + :param variables: hash of variable and the corresponding value + :return: URL based on host settings + """ + + servers = self.get_host_settings() + + # check array index out of bound + if index < 0 or index >= len(servers): + raise ValueError( + "Invalid index {} when selecting the host settings. Must be less than {}" # noqa: E501 + .format(index, len(servers))) + + server = servers[index] + url = server['url'] + + # go through variable and assign a value + for variable_name in server['variables']: + if variable_name in variables: + if variables[variable_name] in server['variables'][ + variable_name]['enum_values']: + url = url.replace("{" + variable_name + "}", + variables[variable_name]) + else: + raise ValueError( + "The variable `{}` in the host URL has invalid value {}. Must be {}." # noqa: E501 + .format( + variable_name, variables[variable_name], + server['variables'][variable_name]['enum_values'])) + else: + # use default value + url = url.replace( + "{" + variable_name + "}", + server['variables'][variable_name]['default_value']) + + return url diff --git a/lib/skyapi/skyapi/skyapi/exceptions.py b/lib/skyapi/skyapi/skyapi/exceptions.py new file mode 100644 index 00000000..8b45cea3 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/exceptions.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import six + + +class OpenApiException(Exception): + """The base exception class for all OpenAPIExceptions""" + + +class ApiTypeError(OpenApiException, TypeError): + def __init__(self, msg, path_to_item=None, valid_classes=None, + key_type=None): + """ Raises an exception for TypeErrors + + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list): a list of keys an indices to get to the + current_item + None if unset + valid_classes (tuple): the primitive classes that current item + should be an instance of + None if unset + key_type (bool): False if our value is a value in a dict + True if it is a key in a dict + False if our item is an item in a list + None if unset + """ + self.path_to_item = path_to_item + self.valid_classes = valid_classes + self.key_type = key_type + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiTypeError, self).__init__(full_msg) + + +class ApiValueError(OpenApiException, ValueError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (list) the path to the exception in the + received_data dict. None if unset + """ + + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiValueError, self).__init__(full_msg) + + +class ApiKeyError(OpenApiException, KeyError): + def __init__(self, msg, path_to_item=None): + """ + Args: + msg (str): the exception message + + Keyword Args: + path_to_item (None/list) the path to the exception in the + received_data dict + """ + self.path_to_item = path_to_item + full_msg = msg + if path_to_item: + full_msg = "{0} at {1}".format(msg, render_path(path_to_item)) + super(ApiKeyError, self).__init__(full_msg) + + +class ApiException(OpenApiException): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message + + +def render_path(path_to_item): + """Returns a string representation of a path""" + result = "" + for pth in path_to_item: + if isinstance(pth, six.integer_types): + result += "[{0}]".format(pth) + else: + result += "['{0}']".format(pth) + return result diff --git a/lib/skyapi/skyapi/skyapi/models/__init__.py b/lib/skyapi/skyapi/skyapi/models/__init__.py new file mode 100644 index 00000000..b4c9f839 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/__init__.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +# flake8: noqa +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +# import models into model package +from skyapi.models.address import Address +from skyapi.models.api_v1_pending_txs_transaction import ApiV1PendingTxsTransaction +from skyapi.models.api_v1_pending_txs_transaction_outputs import ApiV1PendingTxsTransactionOutputs +from skyapi.models.block_schema import BlockSchema +from skyapi.models.block_schema_body import BlockSchemaBody +from skyapi.models.block_verbose_schema import BlockVerboseSchema +from skyapi.models.block_verbose_schema_body import BlockVerboseSchemaBody +from skyapi.models.block_verbose_schema_header import BlockVerboseSchemaHeader +from skyapi.models.inline_response200 import InlineResponse200 +from skyapi.models.inline_response2001 import InlineResponse2001 +from skyapi.models.inline_response20010 import InlineResponse20010 +from skyapi.models.inline_response2002 import InlineResponse2002 +from skyapi.models.inline_response2003 import InlineResponse2003 +from skyapi.models.inline_response2004 import InlineResponse2004 +from skyapi.models.inline_response2005 import InlineResponse2005 +from skyapi.models.inline_response2006 import InlineResponse2006 +from skyapi.models.inline_response2007 import InlineResponse2007 +from skyapi.models.inline_response2008 import InlineResponse2008 +from skyapi.models.inline_response2008_data import InlineResponse2008Data +from skyapi.models.inline_response2009 import InlineResponse2009 +from skyapi.models.inline_response_default import InlineResponseDefault +from skyapi.models.network_connection_schema import NetworkConnectionSchema +from skyapi.models.network_connection_schema_unconfirmed_verify_transaction import NetworkConnectionSchemaUnconfirmedVerifyTransaction +from skyapi.models.transaction import Transaction +from skyapi.models.transaction_encoded import TransactionEncoded +from skyapi.models.transaction_encoded_s import TransactionEncodedS +from skyapi.models.transaction_status import TransactionStatus +from skyapi.models.transaction_txn import TransactionTxn +from skyapi.models.transaction_v2_params_address import TransactionV2ParamsAddress +from skyapi.models.transaction_v2_params_address_hours_selection import TransactionV2ParamsAddressHoursSelection +from skyapi.models.transaction_v2_params_unspent import TransactionV2ParamsUnspent +from skyapi.models.transaction_v2_params_unspent_hours_selection import TransactionV2ParamsUnspentHoursSelection +from skyapi.models.transaction_v2_params_unspent_to import TransactionV2ParamsUnspentTo +from skyapi.models.transaction_verbose import TransactionVerbose +from skyapi.models.transaction_verbose_txn import TransactionVerboseTxn +from skyapi.models.transaction_verbose_txn_inputs import TransactionVerboseTxnInputs +from skyapi.models.transaction_verify_request import TransactionVerifyRequest +from skyapi.models.wallet_transaction_request import WalletTransactionRequest +from skyapi.models.wallet_transaction_request_hours_selection import WalletTransactionRequestHoursSelection +from skyapi.models.wallet_transaction_request_wallet import WalletTransactionRequestWallet +from skyapi.models.wallet_transaction_sign_request import WalletTransactionSignRequest diff --git a/lib/skyapi/skyapi/skyapi/models/address.py b/lib/skyapi/skyapi/skyapi/models/address.py new file mode 100644 index 00000000..d75134d0 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/address.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Address(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'address': 'str' + } + + attribute_map = { + 'address': 'address' + } + + def __init__(self, address=None): # noqa: E501 + """Address - a model defined in OpenAPI""" # noqa: E501 + + self._address = None + self.discriminator = None + + self.address = address + + @property + def address(self): + """Gets the address of this Address. # noqa: E501 + + + :return: The address of this Address. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this Address. + + + :param address: The address of this Address. # noqa: E501 + :type: str + """ + if address is None: + raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 + + self._address = address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Address): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/api_v1_pending_txs_transaction.py b/lib/skyapi/skyapi/skyapi/models/api_v1_pending_txs_transaction.py new file mode 100644 index 00000000..f411a8cc --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/api_v1_pending_txs_transaction.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiV1PendingTxsTransaction(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'length': 'int', + 'type': 'int', + 'txid': 'str', + 'inner_hash': 'str', + 'sigs': 'list[str]', + 'inputs': 'list[str]', + 'outputs': 'list[ApiV1PendingTxsTransactionOutputs]' + } + + attribute_map = { + 'length': 'length', + 'type': 'type', + 'txid': 'txid', + 'inner_hash': 'inner_hash', + 'sigs': 'sigs', + 'inputs': 'inputs', + 'outputs': 'outputs' + } + + def __init__(self, length=None, type=None, txid=None, inner_hash=None, sigs=None, inputs=None, outputs=None): # noqa: E501 + """ApiV1PendingTxsTransaction - a model defined in OpenAPI""" # noqa: E501 + + self._length = None + self._type = None + self._txid = None + self._inner_hash = None + self._sigs = None + self._inputs = None + self._outputs = None + self.discriminator = None + + if length is not None: + self.length = length + if type is not None: + self.type = type + if txid is not None: + self.txid = txid + if inner_hash is not None: + self.inner_hash = inner_hash + if sigs is not None: + self.sigs = sigs + if inputs is not None: + self.inputs = inputs + if outputs is not None: + self.outputs = outputs + + @property + def length(self): + """Gets the length of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The length of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this ApiV1PendingTxsTransaction. + + + :param length: The length of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: int + """ + + self._length = length + + @property + def type(self): + """Gets the type of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The type of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ApiV1PendingTxsTransaction. + + + :param type: The type of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: int + """ + + self._type = type + + @property + def txid(self): + """Gets the txid of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The txid of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: str + """ + return self._txid + + @txid.setter + def txid(self, txid): + """Sets the txid of this ApiV1PendingTxsTransaction. + + + :param txid: The txid of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: str + """ + + self._txid = txid + + @property + def inner_hash(self): + """Gets the inner_hash of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The inner_hash of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: str + """ + return self._inner_hash + + @inner_hash.setter + def inner_hash(self, inner_hash): + """Sets the inner_hash of this ApiV1PendingTxsTransaction. + + + :param inner_hash: The inner_hash of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: str + """ + + self._inner_hash = inner_hash + + @property + def sigs(self): + """Gets the sigs of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The sigs of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: list[str] + """ + return self._sigs + + @sigs.setter + def sigs(self, sigs): + """Sets the sigs of this ApiV1PendingTxsTransaction. + + + :param sigs: The sigs of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: list[str] + """ + + self._sigs = sigs + + @property + def inputs(self): + """Gets the inputs of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The inputs of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: list[str] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this ApiV1PendingTxsTransaction. + + + :param inputs: The inputs of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: list[str] + """ + + self._inputs = inputs + + @property + def outputs(self): + """Gets the outputs of this ApiV1PendingTxsTransaction. # noqa: E501 + + + :return: The outputs of this ApiV1PendingTxsTransaction. # noqa: E501 + :rtype: list[ApiV1PendingTxsTransactionOutputs] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this ApiV1PendingTxsTransaction. + + + :param outputs: The outputs of this ApiV1PendingTxsTransaction. # noqa: E501 + :type: list[ApiV1PendingTxsTransactionOutputs] + """ + + self._outputs = outputs + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiV1PendingTxsTransaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/api_v1_pending_txs_transaction_outputs.py b/lib/skyapi/skyapi/skyapi/models/api_v1_pending_txs_transaction_outputs.py new file mode 100644 index 00000000..723c9941 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/api_v1_pending_txs_transaction_outputs.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ApiV1PendingTxsTransactionOutputs(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'uxid': 'str', + 'dst': 'str', + 'coins': 'str', + 'hours': 'int' + } + + attribute_map = { + 'uxid': 'uxid', + 'dst': 'dst', + 'coins': 'coins', + 'hours': 'hours' + } + + def __init__(self, uxid=None, dst=None, coins=None, hours=None): # noqa: E501 + """ApiV1PendingTxsTransactionOutputs - a model defined in OpenAPI""" # noqa: E501 + + self._uxid = None + self._dst = None + self._coins = None + self._hours = None + self.discriminator = None + + if uxid is not None: + self.uxid = uxid + if dst is not None: + self.dst = dst + if coins is not None: + self.coins = coins + if hours is not None: + self.hours = hours + + @property + def uxid(self): + """Gets the uxid of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + + + :return: The uxid of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :rtype: str + """ + return self._uxid + + @uxid.setter + def uxid(self, uxid): + """Sets the uxid of this ApiV1PendingTxsTransactionOutputs. + + + :param uxid: The uxid of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :type: str + """ + + self._uxid = uxid + + @property + def dst(self): + """Gets the dst of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + + + :return: The dst of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :rtype: str + """ + return self._dst + + @dst.setter + def dst(self, dst): + """Sets the dst of this ApiV1PendingTxsTransactionOutputs. + + + :param dst: The dst of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :type: str + """ + + self._dst = dst + + @property + def coins(self): + """Gets the coins of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + + + :return: The coins of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :rtype: str + """ + return self._coins + + @coins.setter + def coins(self, coins): + """Sets the coins of this ApiV1PendingTxsTransactionOutputs. + + + :param coins: The coins of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :type: str + """ + + self._coins = coins + + @property + def hours(self): + """Gets the hours of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + + + :return: The hours of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :rtype: int + """ + return self._hours + + @hours.setter + def hours(self, hours): + """Sets the hours of this ApiV1PendingTxsTransactionOutputs. + + + :param hours: The hours of this ApiV1PendingTxsTransactionOutputs. # noqa: E501 + :type: int + """ + + self._hours = hours + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ApiV1PendingTxsTransactionOutputs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/block_schema.py b/lib/skyapi/skyapi/skyapi/models/block_schema.py new file mode 100644 index 00000000..e2b9964a --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/block_schema.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockSchema(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'header': 'BlockVerboseSchemaHeader', + 'body': 'BlockSchemaBody', + 'size': 'int' + } + + attribute_map = { + 'header': 'header', + 'body': 'body', + 'size': 'size' + } + + def __init__(self, header=None, body=None, size=None): # noqa: E501 + """BlockSchema - a model defined in OpenAPI""" # noqa: E501 + + self._header = None + self._body = None + self._size = None + self.discriminator = None + + if header is not None: + self.header = header + if body is not None: + self.body = body + if size is not None: + self.size = size + + @property + def header(self): + """Gets the header of this BlockSchema. # noqa: E501 + + + :return: The header of this BlockSchema. # noqa: E501 + :rtype: BlockVerboseSchemaHeader + """ + return self._header + + @header.setter + def header(self, header): + """Sets the header of this BlockSchema. + + + :param header: The header of this BlockSchema. # noqa: E501 + :type: BlockVerboseSchemaHeader + """ + + self._header = header + + @property + def body(self): + """Gets the body of this BlockSchema. # noqa: E501 + + + :return: The body of this BlockSchema. # noqa: E501 + :rtype: BlockSchemaBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BlockSchema. + + + :param body: The body of this BlockSchema. # noqa: E501 + :type: BlockSchemaBody + """ + + self._body = body + + @property + def size(self): + """Gets the size of this BlockSchema. # noqa: E501 + + + :return: The size of this BlockSchema. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this BlockSchema. + + + :param size: The size of this BlockSchema. # noqa: E501 + :type: int + """ + + self._size = size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockSchema): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/block_schema_body.py b/lib/skyapi/skyapi/skyapi/models/block_schema_body.py new file mode 100644 index 00000000..6d09dea8 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/block_schema_body.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockSchemaBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'txns': 'list[object]' + } + + attribute_map = { + 'txns': 'txns' + } + + def __init__(self, txns=None): # noqa: E501 + """BlockSchemaBody - a model defined in OpenAPI""" # noqa: E501 + + self._txns = None + self.discriminator = None + + if txns is not None: + self.txns = txns + + @property + def txns(self): + """Gets the txns of this BlockSchemaBody. # noqa: E501 + + + :return: The txns of this BlockSchemaBody. # noqa: E501 + :rtype: list[object] + """ + return self._txns + + @txns.setter + def txns(self, txns): + """Sets the txns of this BlockSchemaBody. + + + :param txns: The txns of this BlockSchemaBody. # noqa: E501 + :type: list[object] + """ + + self._txns = txns + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockSchemaBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/block_verbose_schema.py b/lib/skyapi/skyapi/skyapi/models/block_verbose_schema.py new file mode 100644 index 00000000..ff854e26 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/block_verbose_schema.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockVerboseSchema(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'header': 'BlockVerboseSchemaHeader', + 'body': 'BlockVerboseSchemaBody', + 'size': 'int' + } + + attribute_map = { + 'header': 'header', + 'body': 'body', + 'size': 'size' + } + + def __init__(self, header=None, body=None, size=None): # noqa: E501 + """BlockVerboseSchema - a model defined in OpenAPI""" # noqa: E501 + + self._header = None + self._body = None + self._size = None + self.discriminator = None + + if header is not None: + self.header = header + if body is not None: + self.body = body + if size is not None: + self.size = size + + @property + def header(self): + """Gets the header of this BlockVerboseSchema. # noqa: E501 + + + :return: The header of this BlockVerboseSchema. # noqa: E501 + :rtype: BlockVerboseSchemaHeader + """ + return self._header + + @header.setter + def header(self, header): + """Sets the header of this BlockVerboseSchema. + + + :param header: The header of this BlockVerboseSchema. # noqa: E501 + :type: BlockVerboseSchemaHeader + """ + + self._header = header + + @property + def body(self): + """Gets the body of this BlockVerboseSchema. # noqa: E501 + + + :return: The body of this BlockVerboseSchema. # noqa: E501 + :rtype: BlockVerboseSchemaBody + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this BlockVerboseSchema. + + + :param body: The body of this BlockVerboseSchema. # noqa: E501 + :type: BlockVerboseSchemaBody + """ + + self._body = body + + @property + def size(self): + """Gets the size of this BlockVerboseSchema. # noqa: E501 + + + :return: The size of this BlockVerboseSchema. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this BlockVerboseSchema. + + + :param size: The size of this BlockVerboseSchema. # noqa: E501 + :type: int + """ + + self._size = size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockVerboseSchema): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/block_verbose_schema_body.py b/lib/skyapi/skyapi/skyapi/models/block_verbose_schema_body.py new file mode 100644 index 00000000..f7bf5ecb --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/block_verbose_schema_body.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockVerboseSchemaBody(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'txns': 'list[object]' + } + + attribute_map = { + 'txns': 'txns' + } + + def __init__(self, txns=None): # noqa: E501 + """BlockVerboseSchemaBody - a model defined in OpenAPI""" # noqa: E501 + + self._txns = None + self.discriminator = None + + if txns is not None: + self.txns = txns + + @property + def txns(self): + """Gets the txns of this BlockVerboseSchemaBody. # noqa: E501 + + + :return: The txns of this BlockVerboseSchemaBody. # noqa: E501 + :rtype: list[object] + """ + return self._txns + + @txns.setter + def txns(self, txns): + """Sets the txns of this BlockVerboseSchemaBody. + + + :param txns: The txns of this BlockVerboseSchemaBody. # noqa: E501 + :type: list[object] + """ + + self._txns = txns + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockVerboseSchemaBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/block_verbose_schema_header.py b/lib/skyapi/skyapi/skyapi/models/block_verbose_schema_header.py new file mode 100644 index 00000000..31270875 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/block_verbose_schema_header.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BlockVerboseSchemaHeader(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'seq': 'int', + 'timestamp': 'int', + 'fee': 'int', + 'version': 'int', + 'block_hash': 'str', + 'previous_block_hash': 'str', + 'tx_body_hash': 'str', + 'ux_hash': 'str' + } + + attribute_map = { + 'seq': 'seq', + 'timestamp': 'timestamp', + 'fee': 'fee', + 'version': 'version', + 'block_hash': 'block_hash', + 'previous_block_hash': 'previous_block_hash', + 'tx_body_hash': 'tx_body_hash', + 'ux_hash': 'ux_hash' + } + + def __init__(self, seq=None, timestamp=None, fee=None, version=None, block_hash=None, previous_block_hash=None, tx_body_hash=None, ux_hash=None): # noqa: E501 + """BlockVerboseSchemaHeader - a model defined in OpenAPI""" # noqa: E501 + + self._seq = None + self._timestamp = None + self._fee = None + self._version = None + self._block_hash = None + self._previous_block_hash = None + self._tx_body_hash = None + self._ux_hash = None + self.discriminator = None + + if seq is not None: + self.seq = seq + if timestamp is not None: + self.timestamp = timestamp + if fee is not None: + self.fee = fee + if version is not None: + self.version = version + if block_hash is not None: + self.block_hash = block_hash + if previous_block_hash is not None: + self.previous_block_hash = previous_block_hash + if tx_body_hash is not None: + self.tx_body_hash = tx_body_hash + if ux_hash is not None: + self.ux_hash = ux_hash + + @property + def seq(self): + """Gets the seq of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The seq of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: int + """ + return self._seq + + @seq.setter + def seq(self, seq): + """Sets the seq of this BlockVerboseSchemaHeader. + + + :param seq: The seq of this BlockVerboseSchemaHeader. # noqa: E501 + :type: int + """ + + self._seq = seq + + @property + def timestamp(self): + """Gets the timestamp of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The timestamp of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this BlockVerboseSchemaHeader. + + + :param timestamp: The timestamp of this BlockVerboseSchemaHeader. # noqa: E501 + :type: int + """ + + self._timestamp = timestamp + + @property + def fee(self): + """Gets the fee of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The fee of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: int + """ + return self._fee + + @fee.setter + def fee(self, fee): + """Sets the fee of this BlockVerboseSchemaHeader. + + + :param fee: The fee of this BlockVerboseSchemaHeader. # noqa: E501 + :type: int + """ + + self._fee = fee + + @property + def version(self): + """Gets the version of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The version of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: int + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this BlockVerboseSchemaHeader. + + + :param version: The version of this BlockVerboseSchemaHeader. # noqa: E501 + :type: int + """ + + self._version = version + + @property + def block_hash(self): + """Gets the block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: str + """ + return self._block_hash + + @block_hash.setter + def block_hash(self, block_hash): + """Sets the block_hash of this BlockVerboseSchemaHeader. + + + :param block_hash: The block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :type: str + """ + + self._block_hash = block_hash + + @property + def previous_block_hash(self): + """Gets the previous_block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The previous_block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: str + """ + return self._previous_block_hash + + @previous_block_hash.setter + def previous_block_hash(self, previous_block_hash): + """Sets the previous_block_hash of this BlockVerboseSchemaHeader. + + + :param previous_block_hash: The previous_block_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :type: str + """ + + self._previous_block_hash = previous_block_hash + + @property + def tx_body_hash(self): + """Gets the tx_body_hash of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The tx_body_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: str + """ + return self._tx_body_hash + + @tx_body_hash.setter + def tx_body_hash(self, tx_body_hash): + """Sets the tx_body_hash of this BlockVerboseSchemaHeader. + + + :param tx_body_hash: The tx_body_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :type: str + """ + + self._tx_body_hash = tx_body_hash + + @property + def ux_hash(self): + """Gets the ux_hash of this BlockVerboseSchemaHeader. # noqa: E501 + + + :return: The ux_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :rtype: str + """ + return self._ux_hash + + @ux_hash.setter + def ux_hash(self, ux_hash): + """Sets the ux_hash of this BlockVerboseSchemaHeader. + + + :param ux_hash: The ux_hash of this BlockVerboseSchemaHeader. # noqa: E501 + :type: str + """ + + self._ux_hash = ux_hash + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BlockVerboseSchemaHeader): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response200.py b/lib/skyapi/skyapi/skyapi/models/inline_response200.py new file mode 100644 index 00000000..64ec1064 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response200.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse200(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'count': 'int' + } + + attribute_map = { + 'count': 'count' + } + + def __init__(self, count=None): # noqa: E501 + """InlineResponse200 - a model defined in OpenAPI""" # noqa: E501 + + self._count = None + self.discriminator = None + + if count is not None: + self.count = count + + @property + def count(self): + """Gets the count of this InlineResponse200. # noqa: E501 + + + :return: The count of this InlineResponse200. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this InlineResponse200. + + + :param count: The count of this InlineResponse200. # noqa: E501 + :type: int + """ + + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse200): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2001.py b/lib/skyapi/skyapi/skyapi/models/inline_response2001.py new file mode 100644 index 00000000..be1fc1df --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2001.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2001(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'blocks': 'list[BlockSchema]' + } + + attribute_map = { + 'blocks': 'blocks' + } + + def __init__(self, blocks=None): # noqa: E501 + """InlineResponse2001 - a model defined in OpenAPI""" # noqa: E501 + + self._blocks = None + self.discriminator = None + + if blocks is not None: + self.blocks = blocks + + @property + def blocks(self): + """Gets the blocks of this InlineResponse2001. # noqa: E501 + + + :return: The blocks of this InlineResponse2001. # noqa: E501 + :rtype: list[BlockSchema] + """ + return self._blocks + + @blocks.setter + def blocks(self, blocks): + """Sets the blocks of this InlineResponse2001. + + + :param blocks: The blocks of this InlineResponse2001. # noqa: E501 + :type: list[BlockSchema] + """ + + self._blocks = blocks + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2001): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response20010.py b/lib/skyapi/skyapi/skyapi/models/inline_response20010.py new file mode 100644 index 00000000..dd954c3c --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response20010.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse20010(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'transaction': 'ApiV1PendingTxsTransaction', + 'received': 'str', + 'checked': 'str', + 'announced': 'str', + 'is_valid': 'bool' + } + + attribute_map = { + 'transaction': 'transaction', + 'received': 'received', + 'checked': 'checked', + 'announced': 'announced', + 'is_valid': 'is_valid' + } + + def __init__(self, transaction=None, received=None, checked=None, announced=None, is_valid=None): # noqa: E501 + """InlineResponse20010 - a model defined in OpenAPI""" # noqa: E501 + + self._transaction = None + self._received = None + self._checked = None + self._announced = None + self._is_valid = None + self.discriminator = None + + if transaction is not None: + self.transaction = transaction + if received is not None: + self.received = received + if checked is not None: + self.checked = checked + if announced is not None: + self.announced = announced + if is_valid is not None: + self.is_valid = is_valid + + @property + def transaction(self): + """Gets the transaction of this InlineResponse20010. # noqa: E501 + + + :return: The transaction of this InlineResponse20010. # noqa: E501 + :rtype: ApiV1PendingTxsTransaction + """ + return self._transaction + + @transaction.setter + def transaction(self, transaction): + """Sets the transaction of this InlineResponse20010. + + + :param transaction: The transaction of this InlineResponse20010. # noqa: E501 + :type: ApiV1PendingTxsTransaction + """ + + self._transaction = transaction + + @property + def received(self): + """Gets the received of this InlineResponse20010. # noqa: E501 + + + :return: The received of this InlineResponse20010. # noqa: E501 + :rtype: str + """ + return self._received + + @received.setter + def received(self, received): + """Sets the received of this InlineResponse20010. + + + :param received: The received of this InlineResponse20010. # noqa: E501 + :type: str + """ + + self._received = received + + @property + def checked(self): + """Gets the checked of this InlineResponse20010. # noqa: E501 + + + :return: The checked of this InlineResponse20010. # noqa: E501 + :rtype: str + """ + return self._checked + + @checked.setter + def checked(self, checked): + """Sets the checked of this InlineResponse20010. + + + :param checked: The checked of this InlineResponse20010. # noqa: E501 + :type: str + """ + + self._checked = checked + + @property + def announced(self): + """Gets the announced of this InlineResponse20010. # noqa: E501 + + + :return: The announced of this InlineResponse20010. # noqa: E501 + :rtype: str + """ + return self._announced + + @announced.setter + def announced(self, announced): + """Sets the announced of this InlineResponse20010. + + + :param announced: The announced of this InlineResponse20010. # noqa: E501 + :type: str + """ + + self._announced = announced + + @property + def is_valid(self): + """Gets the is_valid of this InlineResponse20010. # noqa: E501 + + + :return: The is_valid of this InlineResponse20010. # noqa: E501 + :rtype: bool + """ + return self._is_valid + + @is_valid.setter + def is_valid(self, is_valid): + """Sets the is_valid of this InlineResponse20010. + + + :param is_valid: The is_valid of this InlineResponse20010. # noqa: E501 + :type: bool + """ + + self._is_valid = is_valid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20010): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2002.py b/lib/skyapi/skyapi/skyapi/models/inline_response2002.py new file mode 100644 index 00000000..e36ea7cb --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2002.py @@ -0,0 +1,283 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2002(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'current_coinhour_supply': 'str', + 'current_supply': 'str', + 'locked_distribution_addresses': 'list[str]', + 'max_supply': 'str', + 'total_coinhour_supply': 'str', + 'total_supply': 'str', + 'unlocked_distribution_addresses': 'list[str]' + } + + attribute_map = { + 'current_coinhour_supply': 'current_coinhour_supply', + 'current_supply': 'current_supply', + 'locked_distribution_addresses': 'locked_distribution_addresses', + 'max_supply': 'max_supply', + 'total_coinhour_supply': 'total_coinhour_supply', + 'total_supply': 'total_supply', + 'unlocked_distribution_addresses': 'unlocked_distribution_addresses' + } + + def __init__(self, current_coinhour_supply=None, current_supply=None, locked_distribution_addresses=None, max_supply=None, total_coinhour_supply=None, total_supply=None, unlocked_distribution_addresses=None): # noqa: E501 + """InlineResponse2002 - a model defined in OpenAPI""" # noqa: E501 + + self._current_coinhour_supply = None + self._current_supply = None + self._locked_distribution_addresses = None + self._max_supply = None + self._total_coinhour_supply = None + self._total_supply = None + self._unlocked_distribution_addresses = None + self.discriminator = None + + if current_coinhour_supply is not None: + self.current_coinhour_supply = current_coinhour_supply + if current_supply is not None: + self.current_supply = current_supply + if locked_distribution_addresses is not None: + self.locked_distribution_addresses = locked_distribution_addresses + if max_supply is not None: + self.max_supply = max_supply + if total_coinhour_supply is not None: + self.total_coinhour_supply = total_coinhour_supply + if total_supply is not None: + self.total_supply = total_supply + if unlocked_distribution_addresses is not None: + self.unlocked_distribution_addresses = unlocked_distribution_addresses + + @property + def current_coinhour_supply(self): + """Gets the current_coinhour_supply of this InlineResponse2002. # noqa: E501 + + CurrentCoinHourSupply is coins hours in non distribution addresses. # noqa: E501 + + :return: The current_coinhour_supply of this InlineResponse2002. # noqa: E501 + :rtype: str + """ + return self._current_coinhour_supply + + @current_coinhour_supply.setter + def current_coinhour_supply(self, current_coinhour_supply): + """Sets the current_coinhour_supply of this InlineResponse2002. + + CurrentCoinHourSupply is coins hours in non distribution addresses. # noqa: E501 + + :param current_coinhour_supply: The current_coinhour_supply of this InlineResponse2002. # noqa: E501 + :type: str + """ + + self._current_coinhour_supply = current_coinhour_supply + + @property + def current_supply(self): + """Gets the current_supply of this InlineResponse2002. # noqa: E501 + + Coins distributed beyond the project. # noqa: E501 + + :return: The current_supply of this InlineResponse2002. # noqa: E501 + :rtype: str + """ + return self._current_supply + + @current_supply.setter + def current_supply(self, current_supply): + """Sets the current_supply of this InlineResponse2002. + + Coins distributed beyond the project. # noqa: E501 + + :param current_supply: The current_supply of this InlineResponse2002. # noqa: E501 + :type: str + """ + + self._current_supply = current_supply + + @property + def locked_distribution_addresses(self): + """Gets the locked_distribution_addresses of this InlineResponse2002. # noqa: E501 + + Distribution addresses which are locked and do not count towards total supply. # noqa: E501 + + :return: The locked_distribution_addresses of this InlineResponse2002. # noqa: E501 + :rtype: list[str] + """ + return self._locked_distribution_addresses + + @locked_distribution_addresses.setter + def locked_distribution_addresses(self, locked_distribution_addresses): + """Sets the locked_distribution_addresses of this InlineResponse2002. + + Distribution addresses which are locked and do not count towards total supply. # noqa: E501 + + :param locked_distribution_addresses: The locked_distribution_addresses of this InlineResponse2002. # noqa: E501 + :type: list[str] + """ + + self._locked_distribution_addresses = locked_distribution_addresses + + @property + def max_supply(self): + """Gets the max_supply of this InlineResponse2002. # noqa: E501 + + MaxSupply is the maximum number of coins to be distributed ever. # noqa: E501 + + :return: The max_supply of this InlineResponse2002. # noqa: E501 + :rtype: str + """ + return self._max_supply + + @max_supply.setter + def max_supply(self, max_supply): + """Sets the max_supply of this InlineResponse2002. + + MaxSupply is the maximum number of coins to be distributed ever. # noqa: E501 + + :param max_supply: The max_supply of this InlineResponse2002. # noqa: E501 + :type: str + """ + + self._max_supply = max_supply + + @property + def total_coinhour_supply(self): + """Gets the total_coinhour_supply of this InlineResponse2002. # noqa: E501 + + TotalCoinHourSupply is coin hours in all addresses including unlocked distribution addresses. # noqa: E501 + + :return: The total_coinhour_supply of this InlineResponse2002. # noqa: E501 + :rtype: str + """ + return self._total_coinhour_supply + + @total_coinhour_supply.setter + def total_coinhour_supply(self, total_coinhour_supply): + """Sets the total_coinhour_supply of this InlineResponse2002. + + TotalCoinHourSupply is coin hours in all addresses including unlocked distribution addresses. # noqa: E501 + + :param total_coinhour_supply: The total_coinhour_supply of this InlineResponse2002. # noqa: E501 + :type: str + """ + + self._total_coinhour_supply = total_coinhour_supply + + @property + def total_supply(self): + """Gets the total_supply of this InlineResponse2002. # noqa: E501 + + TotalSupply is CurrentSupply plus coins held by the distribution addresses that are spendable. # noqa: E501 + + :return: The total_supply of this InlineResponse2002. # noqa: E501 + :rtype: str + """ + return self._total_supply + + @total_supply.setter + def total_supply(self, total_supply): + """Sets the total_supply of this InlineResponse2002. + + TotalSupply is CurrentSupply plus coins held by the distribution addresses that are spendable. # noqa: E501 + + :param total_supply: The total_supply of this InlineResponse2002. # noqa: E501 + :type: str + """ + + self._total_supply = total_supply + + @property + def unlocked_distribution_addresses(self): + """Gets the unlocked_distribution_addresses of this InlineResponse2002. # noqa: E501 + + Distribution addresses which count towards total supply. # noqa: E501 + + :return: The unlocked_distribution_addresses of this InlineResponse2002. # noqa: E501 + :rtype: list[str] + """ + return self._unlocked_distribution_addresses + + @unlocked_distribution_addresses.setter + def unlocked_distribution_addresses(self, unlocked_distribution_addresses): + """Sets the unlocked_distribution_addresses of this InlineResponse2002. + + Distribution addresses which count towards total supply. # noqa: E501 + + :param unlocked_distribution_addresses: The unlocked_distribution_addresses of this InlineResponse2002. # noqa: E501 + :type: list[str] + """ + + self._unlocked_distribution_addresses = unlocked_distribution_addresses + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2002): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2003.py b/lib/skyapi/skyapi/skyapi/models/inline_response2003.py new file mode 100644 index 00000000..2c0031ae --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2003.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2003(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'csrf_token': 'str' + } + + attribute_map = { + 'csrf_token': 'csrf_token' + } + + def __init__(self, csrf_token=None): # noqa: E501 + """InlineResponse2003 - a model defined in OpenAPI""" # noqa: E501 + + self._csrf_token = None + self.discriminator = None + + if csrf_token is not None: + self.csrf_token = csrf_token + + @property + def csrf_token(self): + """Gets the csrf_token of this InlineResponse2003. # noqa: E501 + + + :return: The csrf_token of this InlineResponse2003. # noqa: E501 + :rtype: str + """ + return self._csrf_token + + @csrf_token.setter + def csrf_token(self, csrf_token): + """Sets the csrf_token of this InlineResponse2003. + + + :param csrf_token: The csrf_token of this InlineResponse2003. # noqa: E501 + :type: str + """ + + self._csrf_token = csrf_token + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2003): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2004.py b/lib/skyapi/skyapi/skyapi/models/inline_response2004.py new file mode 100644 index 00000000..0b71f444 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2004.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2004(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'connections': 'list[NetworkConnectionSchema]' + } + + attribute_map = { + 'connections': 'connections' + } + + def __init__(self, connections=None): # noqa: E501 + """InlineResponse2004 - a model defined in OpenAPI""" # noqa: E501 + + self._connections = None + self.discriminator = None + + if connections is not None: + self.connections = connections + + @property + def connections(self): + """Gets the connections of this InlineResponse2004. # noqa: E501 + + + :return: The connections of this InlineResponse2004. # noqa: E501 + :rtype: list[NetworkConnectionSchema] + """ + return self._connections + + @connections.setter + def connections(self, connections): + """Sets the connections of this InlineResponse2004. + + + :param connections: The connections of this InlineResponse2004. # noqa: E501 + :type: list[NetworkConnectionSchema] + """ + + self._connections = connections + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2004): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2005.py b/lib/skyapi/skyapi/skyapi/models/inline_response2005.py new file mode 100644 index 00000000..e931dfeb --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2005.py @@ -0,0 +1,171 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2005(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'branch': 'str', + 'commit': 'str', + 'version': 'str' + } + + attribute_map = { + 'branch': 'branch', + 'commit': 'commit', + 'version': 'version' + } + + def __init__(self, branch=None, commit=None, version=None): # noqa: E501 + """InlineResponse2005 - a model defined in OpenAPI""" # noqa: E501 + + self._branch = None + self._commit = None + self._version = None + self.discriminator = None + + if branch is not None: + self.branch = branch + if commit is not None: + self.commit = commit + if version is not None: + self.version = version + + @property + def branch(self): + """Gets the branch of this InlineResponse2005. # noqa: E501 + + git branch name # noqa: E501 + + :return: The branch of this InlineResponse2005. # noqa: E501 + :rtype: str + """ + return self._branch + + @branch.setter + def branch(self, branch): + """Sets the branch of this InlineResponse2005. + + git branch name # noqa: E501 + + :param branch: The branch of this InlineResponse2005. # noqa: E501 + :type: str + """ + + self._branch = branch + + @property + def commit(self): + """Gets the commit of this InlineResponse2005. # noqa: E501 + + git commit id # noqa: E501 + + :return: The commit of this InlineResponse2005. # noqa: E501 + :rtype: str + """ + return self._commit + + @commit.setter + def commit(self, commit): + """Sets the commit of this InlineResponse2005. + + git commit id # noqa: E501 + + :param commit: The commit of this InlineResponse2005. # noqa: E501 + :type: str + """ + + self._commit = commit + + @property + def version(self): + """Gets the version of this InlineResponse2005. # noqa: E501 + + version number # noqa: E501 + + :return: The version of this InlineResponse2005. # noqa: E501 + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this InlineResponse2005. + + version number # noqa: E501 + + :param version: The version of this InlineResponse2005. # noqa: E501 + :type: str + """ + + self._version = version + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2005): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2006.py b/lib/skyapi/skyapi/skyapi/models/inline_response2006.py new file mode 100644 index 00000000..a4ed916e --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2006.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2006(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'transactions': 'list[TransactionEncoded]' + } + + attribute_map = { + 'transactions': 'transactions' + } + + def __init__(self, transactions=None): # noqa: E501 + """InlineResponse2006 - a model defined in OpenAPI""" # noqa: E501 + + self._transactions = None + self.discriminator = None + + if transactions is not None: + self.transactions = transactions + + @property + def transactions(self): + """Gets the transactions of this InlineResponse2006. # noqa: E501 + + + :return: The transactions of this InlineResponse2006. # noqa: E501 + :rtype: list[TransactionEncoded] + """ + return self._transactions + + @transactions.setter + def transactions(self, transactions): + """Sets the transactions of this InlineResponse2006. + + + :param transactions: The transactions of this InlineResponse2006. # noqa: E501 + :type: list[TransactionEncoded] + """ + + self._transactions = transactions + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2006): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2007.py b/lib/skyapi/skyapi/skyapi/models/inline_response2007.py new file mode 100644 index 00000000..3f2491b1 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2007.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2007(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'address': 'str' + } + + attribute_map = { + 'address': 'address' + } + + def __init__(self, address=None): # noqa: E501 + """InlineResponse2007 - a model defined in OpenAPI""" # noqa: E501 + + self._address = None + self.discriminator = None + + if address is not None: + self.address = address + + @property + def address(self): + """Gets the address of this InlineResponse2007. # noqa: E501 + + + :return: The address of this InlineResponse2007. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this InlineResponse2007. + + + :param address: The address of this InlineResponse2007. # noqa: E501 + :type: str + """ + + self._address = address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2007): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2008.py b/lib/skyapi/skyapi/skyapi/models/inline_response2008.py new file mode 100644 index 00000000..351e415e --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2008.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2008(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'InlineResponse2008Data' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): # noqa: E501 + """InlineResponse2008 - a model defined in OpenAPI""" # noqa: E501 + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this InlineResponse2008. # noqa: E501 + + + :return: The data of this InlineResponse2008. # noqa: E501 + :rtype: InlineResponse2008Data + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this InlineResponse2008. + + + :param data: The data of this InlineResponse2008. # noqa: E501 + :type: InlineResponse2008Data + """ + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2008): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2008_data.py b/lib/skyapi/skyapi/skyapi/models/inline_response2008_data.py new file mode 100644 index 00000000..fbca3083 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2008_data.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2008Data(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'transaction': 'Transaction' + } + + attribute_map = { + 'transaction': 'transaction' + } + + def __init__(self, transaction=None): # noqa: E501 + """InlineResponse2008Data - a model defined in OpenAPI""" # noqa: E501 + + self._transaction = None + self.discriminator = None + + if transaction is not None: + self.transaction = transaction + + @property + def transaction(self): + """Gets the transaction of this InlineResponse2008Data. # noqa: E501 + + + :return: The transaction of this InlineResponse2008Data. # noqa: E501 + :rtype: Transaction + """ + return self._transaction + + @transaction.setter + def transaction(self, transaction): + """Sets the transaction of this InlineResponse2008Data. + + + :param transaction: The transaction of this InlineResponse2008Data. # noqa: E501 + :type: Transaction + """ + + self._transaction = transaction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2008Data): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response2009.py b/lib/skyapi/skyapi/skyapi/models/inline_response2009.py new file mode 100644 index 00000000..ea83b848 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response2009.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2009(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'data': 'object' + } + + attribute_map = { + 'data': 'data' + } + + def __init__(self, data=None): # noqa: E501 + """InlineResponse2009 - a model defined in OpenAPI""" # noqa: E501 + + self._data = None + self.discriminator = None + + if data is not None: + self.data = data + + @property + def data(self): + """Gets the data of this InlineResponse2009. # noqa: E501 + + + :return: The data of this InlineResponse2009. # noqa: E501 + :rtype: object + """ + return self._data + + @data.setter + def data(self, data): + """Sets the data of this InlineResponse2009. + + + :param data: The data of this InlineResponse2009. # noqa: E501 + :type: object + """ + + self._data = data + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2009): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/inline_response_default.py b/lib/skyapi/skyapi/skyapi/models/inline_response_default.py new file mode 100644 index 00000000..f729ddb8 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/inline_response_default.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponseDefault(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'code': 'int', + 'message': 'str' + } + + attribute_map = { + 'code': 'code', + 'message': 'message' + } + + def __init__(self, code=None, message=None): # noqa: E501 + """InlineResponseDefault - a model defined in OpenAPI""" # noqa: E501 + + self._code = None + self._message = None + self.discriminator = None + + if code is not None: + self.code = code + if message is not None: + self.message = message + + @property + def code(self): + """Gets the code of this InlineResponseDefault. # noqa: E501 + + + :return: The code of this InlineResponseDefault. # noqa: E501 + :rtype: int + """ + return self._code + + @code.setter + def code(self, code): + """Sets the code of this InlineResponseDefault. + + + :param code: The code of this InlineResponseDefault. # noqa: E501 + :type: int + """ + + self._code = code + + @property + def message(self): + """Gets the message of this InlineResponseDefault. # noqa: E501 + + + :return: The message of this InlineResponseDefault. # noqa: E501 + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """Sets the message of this InlineResponseDefault. + + + :param message: The message of this InlineResponseDefault. # noqa: E501 + :type: str + """ + + self._message = message + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponseDefault): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/network_connection_schema.py b/lib/skyapi/skyapi/skyapi/models/network_connection_schema.py new file mode 100644 index 00000000..3e2afc28 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/network_connection_schema.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NetworkConnectionSchema(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'address': 'str', + 'connected_at': 'int', + 'height': 'int', + 'id': 'int', + 'is_trusted_peer': 'bool', + 'last_received': 'int', + 'last_sent': 'int', + 'listen_port': 'int', + 'mirror': 'int', + 'outgoing': 'bool', + 'state': 'str', + 'unconfirmed_verify_transaction': 'NetworkConnectionSchemaUnconfirmedVerifyTransaction', + 'user_agent': 'str' + } + + attribute_map = { + 'address': 'address', + 'connected_at': 'connected_at', + 'height': 'height', + 'id': 'id', + 'is_trusted_peer': 'is_trusted_peer', + 'last_received': 'last_received', + 'last_sent': 'last_sent', + 'listen_port': 'listen_port', + 'mirror': 'mirror', + 'outgoing': 'outgoing', + 'state': 'state', + 'unconfirmed_verify_transaction': 'unconfirmed_verify_transaction', + 'user_agent': 'user_agent' + } + + def __init__(self, address=None, connected_at=None, height=None, id=None, is_trusted_peer=None, last_received=None, last_sent=None, listen_port=None, mirror=None, outgoing=None, state=None, unconfirmed_verify_transaction=None, user_agent=None): # noqa: E501 + """NetworkConnectionSchema - a model defined in OpenAPI""" # noqa: E501 + + self._address = None + self._connected_at = None + self._height = None + self._id = None + self._is_trusted_peer = None + self._last_received = None + self._last_sent = None + self._listen_port = None + self._mirror = None + self._outgoing = None + self._state = None + self._unconfirmed_verify_transaction = None + self._user_agent = None + self.discriminator = None + + if address is not None: + self.address = address + if connected_at is not None: + self.connected_at = connected_at + if height is not None: + self.height = height + if id is not None: + self.id = id + if is_trusted_peer is not None: + self.is_trusted_peer = is_trusted_peer + if last_received is not None: + self.last_received = last_received + if last_sent is not None: + self.last_sent = last_sent + if listen_port is not None: + self.listen_port = listen_port + if mirror is not None: + self.mirror = mirror + if outgoing is not None: + self.outgoing = outgoing + if state is not None: + self.state = state + if unconfirmed_verify_transaction is not None: + self.unconfirmed_verify_transaction = unconfirmed_verify_transaction + if user_agent is not None: + self.user_agent = user_agent + + @property + def address(self): + """Gets the address of this NetworkConnectionSchema. # noqa: E501 + + + :return: The address of this NetworkConnectionSchema. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this NetworkConnectionSchema. + + + :param address: The address of this NetworkConnectionSchema. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def connected_at(self): + """Gets the connected_at of this NetworkConnectionSchema. # noqa: E501 + + + :return: The connected_at of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._connected_at + + @connected_at.setter + def connected_at(self, connected_at): + """Sets the connected_at of this NetworkConnectionSchema. + + + :param connected_at: The connected_at of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._connected_at = connected_at + + @property + def height(self): + """Gets the height of this NetworkConnectionSchema. # noqa: E501 + + + :return: The height of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this NetworkConnectionSchema. + + + :param height: The height of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._height = height + + @property + def id(self): + """Gets the id of this NetworkConnectionSchema. # noqa: E501 + + + :return: The id of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this NetworkConnectionSchema. + + + :param id: The id of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def is_trusted_peer(self): + """Gets the is_trusted_peer of this NetworkConnectionSchema. # noqa: E501 + + + :return: The is_trusted_peer of this NetworkConnectionSchema. # noqa: E501 + :rtype: bool + """ + return self._is_trusted_peer + + @is_trusted_peer.setter + def is_trusted_peer(self, is_trusted_peer): + """Sets the is_trusted_peer of this NetworkConnectionSchema. + + + :param is_trusted_peer: The is_trusted_peer of this NetworkConnectionSchema. # noqa: E501 + :type: bool + """ + + self._is_trusted_peer = is_trusted_peer + + @property + def last_received(self): + """Gets the last_received of this NetworkConnectionSchema. # noqa: E501 + + + :return: The last_received of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._last_received + + @last_received.setter + def last_received(self, last_received): + """Sets the last_received of this NetworkConnectionSchema. + + + :param last_received: The last_received of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._last_received = last_received + + @property + def last_sent(self): + """Gets the last_sent of this NetworkConnectionSchema. # noqa: E501 + + + :return: The last_sent of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._last_sent + + @last_sent.setter + def last_sent(self, last_sent): + """Sets the last_sent of this NetworkConnectionSchema. + + + :param last_sent: The last_sent of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._last_sent = last_sent + + @property + def listen_port(self): + """Gets the listen_port of this NetworkConnectionSchema. # noqa: E501 + + + :return: The listen_port of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._listen_port + + @listen_port.setter + def listen_port(self, listen_port): + """Sets the listen_port of this NetworkConnectionSchema. + + + :param listen_port: The listen_port of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._listen_port = listen_port + + @property + def mirror(self): + """Gets the mirror of this NetworkConnectionSchema. # noqa: E501 + + + :return: The mirror of this NetworkConnectionSchema. # noqa: E501 + :rtype: int + """ + return self._mirror + + @mirror.setter + def mirror(self, mirror): + """Sets the mirror of this NetworkConnectionSchema. + + + :param mirror: The mirror of this NetworkConnectionSchema. # noqa: E501 + :type: int + """ + + self._mirror = mirror + + @property + def outgoing(self): + """Gets the outgoing of this NetworkConnectionSchema. # noqa: E501 + + + :return: The outgoing of this NetworkConnectionSchema. # noqa: E501 + :rtype: bool + """ + return self._outgoing + + @outgoing.setter + def outgoing(self, outgoing): + """Sets the outgoing of this NetworkConnectionSchema. + + + :param outgoing: The outgoing of this NetworkConnectionSchema. # noqa: E501 + :type: bool + """ + + self._outgoing = outgoing + + @property + def state(self): + """Gets the state of this NetworkConnectionSchema. # noqa: E501 + + + :return: The state of this NetworkConnectionSchema. # noqa: E501 + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """Sets the state of this NetworkConnectionSchema. + + + :param state: The state of this NetworkConnectionSchema. # noqa: E501 + :type: str + """ + allowed_values = ["pending", "connected", "introduced"] # noqa: E501 + if state not in allowed_values: + raise ValueError( + "Invalid value for `state` ({0}), must be one of {1}" # noqa: E501 + .format(state, allowed_values) + ) + + self._state = state + + @property + def unconfirmed_verify_transaction(self): + """Gets the unconfirmed_verify_transaction of this NetworkConnectionSchema. # noqa: E501 + + + :return: The unconfirmed_verify_transaction of this NetworkConnectionSchema. # noqa: E501 + :rtype: NetworkConnectionSchemaUnconfirmedVerifyTransaction + """ + return self._unconfirmed_verify_transaction + + @unconfirmed_verify_transaction.setter + def unconfirmed_verify_transaction(self, unconfirmed_verify_transaction): + """Sets the unconfirmed_verify_transaction of this NetworkConnectionSchema. + + + :param unconfirmed_verify_transaction: The unconfirmed_verify_transaction of this NetworkConnectionSchema. # noqa: E501 + :type: NetworkConnectionSchemaUnconfirmedVerifyTransaction + """ + + self._unconfirmed_verify_transaction = unconfirmed_verify_transaction + + @property + def user_agent(self): + """Gets the user_agent of this NetworkConnectionSchema. # noqa: E501 + + + :return: The user_agent of this NetworkConnectionSchema. # noqa: E501 + :rtype: str + """ + return self._user_agent + + @user_agent.setter + def user_agent(self, user_agent): + """Sets the user_agent of this NetworkConnectionSchema. + + + :param user_agent: The user_agent of this NetworkConnectionSchema. # noqa: E501 + :type: str + """ + + self._user_agent = user_agent + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworkConnectionSchema): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/network_connection_schema_unconfirmed_verify_transaction.py b/lib/skyapi/skyapi/skyapi/models/network_connection_schema_unconfirmed_verify_transaction.py new file mode 100644 index 00000000..22e94fa6 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/network_connection_schema_unconfirmed_verify_transaction.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NetworkConnectionSchemaUnconfirmedVerifyTransaction(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'burn_factor': 'int', + 'max_decimals': 'int', + 'max_transaction_size': 'int' + } + + attribute_map = { + 'burn_factor': 'burn_factor', + 'max_decimals': 'max_decimals', + 'max_transaction_size': 'max_transaction_size' + } + + def __init__(self, burn_factor=None, max_decimals=None, max_transaction_size=None): # noqa: E501 + """NetworkConnectionSchemaUnconfirmedVerifyTransaction - a model defined in OpenAPI""" # noqa: E501 + + self._burn_factor = None + self._max_decimals = None + self._max_transaction_size = None + self.discriminator = None + + if burn_factor is not None: + self.burn_factor = burn_factor + if max_decimals is not None: + self.max_decimals = max_decimals + if max_transaction_size is not None: + self.max_transaction_size = max_transaction_size + + @property + def burn_factor(self): + """Gets the burn_factor of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + + + :return: The burn_factor of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + :rtype: int + """ + return self._burn_factor + + @burn_factor.setter + def burn_factor(self, burn_factor): + """Sets the burn_factor of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. + + + :param burn_factor: The burn_factor of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + :type: int + """ + + self._burn_factor = burn_factor + + @property + def max_decimals(self): + """Gets the max_decimals of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + + + :return: The max_decimals of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + :rtype: int + """ + return self._max_decimals + + @max_decimals.setter + def max_decimals(self, max_decimals): + """Sets the max_decimals of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. + + + :param max_decimals: The max_decimals of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + :type: int + """ + + self._max_decimals = max_decimals + + @property + def max_transaction_size(self): + """Gets the max_transaction_size of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + + + :return: The max_transaction_size of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + :rtype: int + """ + return self._max_transaction_size + + @max_transaction_size.setter + def max_transaction_size(self, max_transaction_size): + """Sets the max_transaction_size of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. + + + :param max_transaction_size: The max_transaction_size of this NetworkConnectionSchemaUnconfirmedVerifyTransaction. # noqa: E501 + :type: int + """ + + self._max_transaction_size = max_transaction_size + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, NetworkConnectionSchemaUnconfirmedVerifyTransaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction.py b/lib/skyapi/skyapi/skyapi/models/transaction.py new file mode 100644 index 00000000..d3e93fd4 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Transaction(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'status': 'TransactionStatus', + 'txn': 'TransactionTxn', + 'time': 'int' + } + + attribute_map = { + 'status': 'status', + 'txn': 'txn', + 'time': 'time' + } + + def __init__(self, status=None, txn=None, time=None): # noqa: E501 + """Transaction - a model defined in OpenAPI""" # noqa: E501 + + self._status = None + self._txn = None + self._time = None + self.discriminator = None + + if status is not None: + self.status = status + if txn is not None: + self.txn = txn + if time is not None: + self.time = time + + @property + def status(self): + """Gets the status of this Transaction. # noqa: E501 + + + :return: The status of this Transaction. # noqa: E501 + :rtype: TransactionStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Transaction. + + + :param status: The status of this Transaction. # noqa: E501 + :type: TransactionStatus + """ + + self._status = status + + @property + def txn(self): + """Gets the txn of this Transaction. # noqa: E501 + + + :return: The txn of this Transaction. # noqa: E501 + :rtype: TransactionTxn + """ + return self._txn + + @txn.setter + def txn(self, txn): + """Sets the txn of this Transaction. + + + :param txn: The txn of this Transaction. # noqa: E501 + :type: TransactionTxn + """ + + self._txn = txn + + @property + def time(self): + """Gets the time of this Transaction. # noqa: E501 + + + :return: The time of this Transaction. # noqa: E501 + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this Transaction. + + + :param time: The time of this Transaction. # noqa: E501 + :type: int + """ + + self._time = time + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Transaction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_encoded.py b/lib/skyapi/skyapi/skyapi/models/transaction_encoded.py new file mode 100644 index 00000000..ff36a17d --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_encoded.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionEncoded(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'transaction': 'ApiV1PendingTxsTransaction', + 'received': 'str', + 'checked': 'str', + 'announced': 'str', + 'is_valid': 'bool' + } + + attribute_map = { + 'transaction': 'transaction', + 'received': 'received', + 'checked': 'checked', + 'announced': 'announced', + 'is_valid': 'is_valid' + } + + def __init__(self, transaction=None, received=None, checked=None, announced=None, is_valid=None): # noqa: E501 + """TransactionEncoded - a model defined in OpenAPI""" # noqa: E501 + + self._transaction = None + self._received = None + self._checked = None + self._announced = None + self._is_valid = None + self.discriminator = None + + if transaction is not None: + self.transaction = transaction + if received is not None: + self.received = received + if checked is not None: + self.checked = checked + if announced is not None: + self.announced = announced + if is_valid is not None: + self.is_valid = is_valid + + @property + def transaction(self): + """Gets the transaction of this TransactionEncoded. # noqa: E501 + + + :return: The transaction of this TransactionEncoded. # noqa: E501 + :rtype: ApiV1PendingTxsTransaction + """ + return self._transaction + + @transaction.setter + def transaction(self, transaction): + """Sets the transaction of this TransactionEncoded. + + + :param transaction: The transaction of this TransactionEncoded. # noqa: E501 + :type: ApiV1PendingTxsTransaction + """ + + self._transaction = transaction + + @property + def received(self): + """Gets the received of this TransactionEncoded. # noqa: E501 + + + :return: The received of this TransactionEncoded. # noqa: E501 + :rtype: str + """ + return self._received + + @received.setter + def received(self, received): + """Sets the received of this TransactionEncoded. + + + :param received: The received of this TransactionEncoded. # noqa: E501 + :type: str + """ + + self._received = received + + @property + def checked(self): + """Gets the checked of this TransactionEncoded. # noqa: E501 + + + :return: The checked of this TransactionEncoded. # noqa: E501 + :rtype: str + """ + return self._checked + + @checked.setter + def checked(self, checked): + """Sets the checked of this TransactionEncoded. + + + :param checked: The checked of this TransactionEncoded. # noqa: E501 + :type: str + """ + + self._checked = checked + + @property + def announced(self): + """Gets the announced of this TransactionEncoded. # noqa: E501 + + + :return: The announced of this TransactionEncoded. # noqa: E501 + :rtype: str + """ + return self._announced + + @announced.setter + def announced(self, announced): + """Sets the announced of this TransactionEncoded. + + + :param announced: The announced of this TransactionEncoded. # noqa: E501 + :type: str + """ + + self._announced = announced + + @property + def is_valid(self): + """Gets the is_valid of this TransactionEncoded. # noqa: E501 + + + :return: The is_valid of this TransactionEncoded. # noqa: E501 + :rtype: bool + """ + return self._is_valid + + @is_valid.setter + def is_valid(self, is_valid): + """Sets the is_valid of this TransactionEncoded. + + + :param is_valid: The is_valid of this TransactionEncoded. # noqa: E501 + :type: bool + """ + + self._is_valid = is_valid + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionEncoded): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_encoded_s.py b/lib/skyapi/skyapi/skyapi/models/transaction_encoded_s.py new file mode 100644 index 00000000..56358cee --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_encoded_s.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionEncodedS(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'time': 'int', + 'status': 'TransactionStatus', + 'encoded_transaction': 'str' + } + + attribute_map = { + 'time': 'time', + 'status': 'status', + 'encoded_transaction': 'encoded_transaction' + } + + def __init__(self, time=None, status=None, encoded_transaction=None): # noqa: E501 + """TransactionEncodedS - a model defined in OpenAPI""" # noqa: E501 + + self._time = None + self._status = None + self._encoded_transaction = None + self.discriminator = None + + if time is not None: + self.time = time + if status is not None: + self.status = status + if encoded_transaction is not None: + self.encoded_transaction = encoded_transaction + + @property + def time(self): + """Gets the time of this TransactionEncodedS. # noqa: E501 + + + :return: The time of this TransactionEncodedS. # noqa: E501 + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this TransactionEncodedS. + + + :param time: The time of this TransactionEncodedS. # noqa: E501 + :type: int + """ + + self._time = time + + @property + def status(self): + """Gets the status of this TransactionEncodedS. # noqa: E501 + + + :return: The status of this TransactionEncodedS. # noqa: E501 + :rtype: TransactionStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TransactionEncodedS. + + + :param status: The status of this TransactionEncodedS. # noqa: E501 + :type: TransactionStatus + """ + + self._status = status + + @property + def encoded_transaction(self): + """Gets the encoded_transaction of this TransactionEncodedS. # noqa: E501 + + + :return: The encoded_transaction of this TransactionEncodedS. # noqa: E501 + :rtype: str + """ + return self._encoded_transaction + + @encoded_transaction.setter + def encoded_transaction(self, encoded_transaction): + """Sets the encoded_transaction of this TransactionEncodedS. + + + :param encoded_transaction: The encoded_transaction of this TransactionEncodedS. # noqa: E501 + :type: str + """ + + self._encoded_transaction = encoded_transaction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionEncodedS): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_status.py b/lib/skyapi/skyapi/skyapi/models/transaction_status.py new file mode 100644 index 00000000..0e9ea730 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_status.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionStatus(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'block_seq': 'int', + 'confirmed': 'bool', + 'height': 'int', + 'unconfirmed': 'bool' + } + + attribute_map = { + 'block_seq': 'block_seq', + 'confirmed': 'confirmed', + 'height': 'height', + 'unconfirmed': 'unconfirmed' + } + + def __init__(self, block_seq=None, confirmed=None, height=None, unconfirmed=None): # noqa: E501 + """TransactionStatus - a model defined in OpenAPI""" # noqa: E501 + + self._block_seq = None + self._confirmed = None + self._height = None + self._unconfirmed = None + self.discriminator = None + + if block_seq is not None: + self.block_seq = block_seq + if confirmed is not None: + self.confirmed = confirmed + if height is not None: + self.height = height + if unconfirmed is not None: + self.unconfirmed = unconfirmed + + @property + def block_seq(self): + """Gets the block_seq of this TransactionStatus. # noqa: E501 + + If confirmed, the sequence of the block in which the transaction was executed # noqa: E501 + + :return: The block_seq of this TransactionStatus. # noqa: E501 + :rtype: int + """ + return self._block_seq + + @block_seq.setter + def block_seq(self, block_seq): + """Sets the block_seq of this TransactionStatus. + + If confirmed, the sequence of the block in which the transaction was executed # noqa: E501 + + :param block_seq: The block_seq of this TransactionStatus. # noqa: E501 + :type: int + """ + + self._block_seq = block_seq + + @property + def confirmed(self): + """Gets the confirmed of this TransactionStatus. # noqa: E501 + + + :return: The confirmed of this TransactionStatus. # noqa: E501 + :rtype: bool + """ + return self._confirmed + + @confirmed.setter + def confirmed(self, confirmed): + """Sets the confirmed of this TransactionStatus. + + + :param confirmed: The confirmed of this TransactionStatus. # noqa: E501 + :type: bool + """ + + self._confirmed = confirmed + + @property + def height(self): + """Gets the height of this TransactionStatus. # noqa: E501 + + If confirmed, how many blocks deep in the chain it is. Will be at least 1 if confirmed # noqa: E501 + + :return: The height of this TransactionStatus. # noqa: E501 + :rtype: int + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this TransactionStatus. + + If confirmed, how many blocks deep in the chain it is. Will be at least 1 if confirmed # noqa: E501 + + :param height: The height of this TransactionStatus. # noqa: E501 + :type: int + """ + + self._height = height + + @property + def unconfirmed(self): + """Gets the unconfirmed of this TransactionStatus. # noqa: E501 + + + :return: The unconfirmed of this TransactionStatus. # noqa: E501 + :rtype: bool + """ + return self._unconfirmed + + @unconfirmed.setter + def unconfirmed(self, unconfirmed): + """Sets the unconfirmed of this TransactionStatus. + + + :param unconfirmed: The unconfirmed of this TransactionStatus. # noqa: E501 + :type: bool + """ + + self._unconfirmed = unconfirmed + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_txn.py b/lib/skyapi/skyapi/skyapi/models/transaction_txn.py new file mode 100644 index 00000000..92cba760 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_txn.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionTxn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'inner_hash': 'str', + 'inputs': 'list[str]', + 'length': 'int', + 'outputs': 'list[object]', + 'sigs': 'list[str]', + 'timestamp': 'int', + 'txid': 'str', + 'type': 'int' + } + + attribute_map = { + 'inner_hash': 'inner_hash', + 'inputs': 'inputs', + 'length': 'length', + 'outputs': 'outputs', + 'sigs': 'sigs', + 'timestamp': 'timestamp', + 'txid': 'txid', + 'type': 'type' + } + + def __init__(self, inner_hash=None, inputs=None, length=None, outputs=None, sigs=None, timestamp=None, txid=None, type=None): # noqa: E501 + """TransactionTxn - a model defined in OpenAPI""" # noqa: E501 + + self._inner_hash = None + self._inputs = None + self._length = None + self._outputs = None + self._sigs = None + self._timestamp = None + self._txid = None + self._type = None + self.discriminator = None + + if inner_hash is not None: + self.inner_hash = inner_hash + if inputs is not None: + self.inputs = inputs + if length is not None: + self.length = length + if outputs is not None: + self.outputs = outputs + if sigs is not None: + self.sigs = sigs + if timestamp is not None: + self.timestamp = timestamp + if txid is not None: + self.txid = txid + if type is not None: + self.type = type + + @property + def inner_hash(self): + """Gets the inner_hash of this TransactionTxn. # noqa: E501 + + + :return: The inner_hash of this TransactionTxn. # noqa: E501 + :rtype: str + """ + return self._inner_hash + + @inner_hash.setter + def inner_hash(self, inner_hash): + """Sets the inner_hash of this TransactionTxn. + + + :param inner_hash: The inner_hash of this TransactionTxn. # noqa: E501 + :type: str + """ + + self._inner_hash = inner_hash + + @property + def inputs(self): + """Gets the inputs of this TransactionTxn. # noqa: E501 + + + :return: The inputs of this TransactionTxn. # noqa: E501 + :rtype: list[str] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this TransactionTxn. + + + :param inputs: The inputs of this TransactionTxn. # noqa: E501 + :type: list[str] + """ + + self._inputs = inputs + + @property + def length(self): + """Gets the length of this TransactionTxn. # noqa: E501 + + + :return: The length of this TransactionTxn. # noqa: E501 + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this TransactionTxn. + + + :param length: The length of this TransactionTxn. # noqa: E501 + :type: int + """ + + self._length = length + + @property + def outputs(self): + """Gets the outputs of this TransactionTxn. # noqa: E501 + + + :return: The outputs of this TransactionTxn. # noqa: E501 + :rtype: list[object] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this TransactionTxn. + + + :param outputs: The outputs of this TransactionTxn. # noqa: E501 + :type: list[object] + """ + + self._outputs = outputs + + @property + def sigs(self): + """Gets the sigs of this TransactionTxn. # noqa: E501 + + + :return: The sigs of this TransactionTxn. # noqa: E501 + :rtype: list[str] + """ + return self._sigs + + @sigs.setter + def sigs(self, sigs): + """Sets the sigs of this TransactionTxn. + + + :param sigs: The sigs of this TransactionTxn. # noqa: E501 + :type: list[str] + """ + + self._sigs = sigs + + @property + def timestamp(self): + """Gets the timestamp of this TransactionTxn. # noqa: E501 + + + :return: The timestamp of this TransactionTxn. # noqa: E501 + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this TransactionTxn. + + + :param timestamp: The timestamp of this TransactionTxn. # noqa: E501 + :type: int + """ + + self._timestamp = timestamp + + @property + def txid(self): + """Gets the txid of this TransactionTxn. # noqa: E501 + + + :return: The txid of this TransactionTxn. # noqa: E501 + :rtype: str + """ + return self._txid + + @txid.setter + def txid(self, txid): + """Sets the txid of this TransactionTxn. + + + :param txid: The txid of this TransactionTxn. # noqa: E501 + :type: str + """ + + self._txid = txid + + @property + def type(self): + """Gets the type of this TransactionTxn. # noqa: E501 + + + :return: The type of this TransactionTxn. # noqa: E501 + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TransactionTxn. + + + :param type: The type of this TransactionTxn. # noqa: E501 + :type: int + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionTxn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_address.py b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_address.py new file mode 100644 index 00000000..901b68ab --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_address.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsAddress(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'hours_selection': 'TransactionV2ParamsAddressHoursSelection' + } + + attribute_map = { + 'hours_selection': 'hours_selection' + } + + def __init__(self, hours_selection=None): # noqa: E501 + """TransactionV2ParamsAddress - a model defined in OpenAPI""" # noqa: E501 + + self._hours_selection = None + self.discriminator = None + + if hours_selection is not None: + self.hours_selection = hours_selection + + @property + def hours_selection(self): + """Gets the hours_selection of this TransactionV2ParamsAddress. # noqa: E501 + + + :return: The hours_selection of this TransactionV2ParamsAddress. # noqa: E501 + :rtype: TransactionV2ParamsAddressHoursSelection + """ + return self._hours_selection + + @hours_selection.setter + def hours_selection(self, hours_selection): + """Sets the hours_selection of this TransactionV2ParamsAddress. + + + :param hours_selection: The hours_selection of this TransactionV2ParamsAddress. # noqa: E501 + :type: TransactionV2ParamsAddressHoursSelection + """ + + self._hours_selection = hours_selection + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsAddress): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_address_hours_selection.py b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_address_hours_selection.py new file mode 100644 index 00000000..96b0457d --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_address_hours_selection.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsAddressHoursSelection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str' + } + + attribute_map = { + 'type': 'type' + } + + def __init__(self, type=None): # noqa: E501 + """TransactionV2ParamsAddressHoursSelection - a model defined in OpenAPI""" # noqa: E501 + + self._type = None + self.discriminator = None + + if type is not None: + self.type = type + + @property + def type(self): + """Gets the type of this TransactionV2ParamsAddressHoursSelection. # noqa: E501 + + + :return: The type of this TransactionV2ParamsAddressHoursSelection. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TransactionV2ParamsAddressHoursSelection. + + + :param type: The type of this TransactionV2ParamsAddressHoursSelection. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsAddressHoursSelection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent.py b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent.py new file mode 100644 index 00000000..f88a8c9e --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsUnspent(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'hours_selection': 'TransactionV2ParamsUnspentHoursSelection', + 'unspents': 'list[str]', + 'change_address': 'str', + 'to': 'list[TransactionV2ParamsUnspentTo]' + } + + attribute_map = { + 'hours_selection': 'hours_selection', + 'unspents': 'unspents', + 'change_address': 'change_address', + 'to': 'to' + } + + def __init__(self, hours_selection=None, unspents=None, change_address=None, to=None): # noqa: E501 + """TransactionV2ParamsUnspent - a model defined in OpenAPI""" # noqa: E501 + + self._hours_selection = None + self._unspents = None + self._change_address = None + self._to = None + self.discriminator = None + + if hours_selection is not None: + self.hours_selection = hours_selection + if unspents is not None: + self.unspents = unspents + if change_address is not None: + self.change_address = change_address + if to is not None: + self.to = to + + @property + def hours_selection(self): + """Gets the hours_selection of this TransactionV2ParamsUnspent. # noqa: E501 + + + :return: The hours_selection of this TransactionV2ParamsUnspent. # noqa: E501 + :rtype: TransactionV2ParamsUnspentHoursSelection + """ + return self._hours_selection + + @hours_selection.setter + def hours_selection(self, hours_selection): + """Sets the hours_selection of this TransactionV2ParamsUnspent. + + + :param hours_selection: The hours_selection of this TransactionV2ParamsUnspent. # noqa: E501 + :type: TransactionV2ParamsUnspentHoursSelection + """ + + self._hours_selection = hours_selection + + @property + def unspents(self): + """Gets the unspents of this TransactionV2ParamsUnspent. # noqa: E501 + + + :return: The unspents of this TransactionV2ParamsUnspent. # noqa: E501 + :rtype: list[str] + """ + return self._unspents + + @unspents.setter + def unspents(self, unspents): + """Sets the unspents of this TransactionV2ParamsUnspent. + + + :param unspents: The unspents of this TransactionV2ParamsUnspent. # noqa: E501 + :type: list[str] + """ + + self._unspents = unspents + + @property + def change_address(self): + """Gets the change_address of this TransactionV2ParamsUnspent. # noqa: E501 + + + :return: The change_address of this TransactionV2ParamsUnspent. # noqa: E501 + :rtype: str + """ + return self._change_address + + @change_address.setter + def change_address(self, change_address): + """Sets the change_address of this TransactionV2ParamsUnspent. + + + :param change_address: The change_address of this TransactionV2ParamsUnspent. # noqa: E501 + :type: str + """ + + self._change_address = change_address + + @property + def to(self): + """Gets the to of this TransactionV2ParamsUnspent. # noqa: E501 + + + :return: The to of this TransactionV2ParamsUnspent. # noqa: E501 + :rtype: list[TransactionV2ParamsUnspentTo] + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this TransactionV2ParamsUnspent. + + + :param to: The to of this TransactionV2ParamsUnspent. # noqa: E501 + :type: list[TransactionV2ParamsUnspentTo] + """ + + self._to = to + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsUnspent): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent_hours_selection.py b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent_hours_selection.py new file mode 100644 index 00000000..4030d712 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent_hours_selection.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsUnspentHoursSelection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'type': 'str', + 'mode': 'str', + 'share_factor': 'str' + } + + attribute_map = { + 'type': 'type', + 'mode': 'mode', + 'share_factor': 'share_factor' + } + + def __init__(self, type=None, mode=None, share_factor=None): # noqa: E501 + """TransactionV2ParamsUnspentHoursSelection - a model defined in OpenAPI""" # noqa: E501 + + self._type = None + self._mode = None + self._share_factor = None + self.discriminator = None + + if type is not None: + self.type = type + if mode is not None: + self.mode = mode + if share_factor is not None: + self.share_factor = share_factor + + @property + def type(self): + """Gets the type of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + + + :return: The type of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TransactionV2ParamsUnspentHoursSelection. + + + :param type: The type of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def mode(self): + """Gets the mode of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + + + :return: The mode of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this TransactionV2ParamsUnspentHoursSelection. + + + :param mode: The mode of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :type: str + """ + + self._mode = mode + + @property + def share_factor(self): + """Gets the share_factor of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + + + :return: The share_factor of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :rtype: str + """ + return self._share_factor + + @share_factor.setter + def share_factor(self, share_factor): + """Sets the share_factor of this TransactionV2ParamsUnspentHoursSelection. + + + :param share_factor: The share_factor of this TransactionV2ParamsUnspentHoursSelection. # noqa: E501 + :type: str + """ + + self._share_factor = share_factor + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsUnspentHoursSelection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent_to.py b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent_to.py new file mode 100644 index 00000000..11758a29 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_v2_params_unspent_to.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionV2ParamsUnspentTo(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'address': 'str', + 'coins': 'str' + } + + attribute_map = { + 'address': 'address', + 'coins': 'coins' + } + + def __init__(self, address=None, coins=None): # noqa: E501 + """TransactionV2ParamsUnspentTo - a model defined in OpenAPI""" # noqa: E501 + + self._address = None + self._coins = None + self.discriminator = None + + if address is not None: + self.address = address + if coins is not None: + self.coins = coins + + @property + def address(self): + """Gets the address of this TransactionV2ParamsUnspentTo. # noqa: E501 + + + :return: The address of this TransactionV2ParamsUnspentTo. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this TransactionV2ParamsUnspentTo. + + + :param address: The address of this TransactionV2ParamsUnspentTo. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def coins(self): + """Gets the coins of this TransactionV2ParamsUnspentTo. # noqa: E501 + + + :return: The coins of this TransactionV2ParamsUnspentTo. # noqa: E501 + :rtype: str + """ + return self._coins + + @coins.setter + def coins(self, coins): + """Sets the coins of this TransactionV2ParamsUnspentTo. + + + :param coins: The coins of this TransactionV2ParamsUnspentTo. # noqa: E501 + :type: str + """ + + self._coins = coins + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionV2ParamsUnspentTo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_verbose.py b/lib/skyapi/skyapi/skyapi/models/transaction_verbose.py new file mode 100644 index 00000000..a660757d --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_verbose.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionVerbose(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'time': 'int', + 'status': 'TransactionStatus', + 'txn': 'TransactionVerboseTxn' + } + + attribute_map = { + 'time': 'time', + 'status': 'status', + 'txn': 'txn' + } + + def __init__(self, time=None, status=None, txn=None): # noqa: E501 + """TransactionVerbose - a model defined in OpenAPI""" # noqa: E501 + + self._time = None + self._status = None + self._txn = None + self.discriminator = None + + if time is not None: + self.time = time + if status is not None: + self.status = status + if txn is not None: + self.txn = txn + + @property + def time(self): + """Gets the time of this TransactionVerbose. # noqa: E501 + + + :return: The time of this TransactionVerbose. # noqa: E501 + :rtype: int + """ + return self._time + + @time.setter + def time(self, time): + """Sets the time of this TransactionVerbose. + + + :param time: The time of this TransactionVerbose. # noqa: E501 + :type: int + """ + + self._time = time + + @property + def status(self): + """Gets the status of this TransactionVerbose. # noqa: E501 + + + :return: The status of this TransactionVerbose. # noqa: E501 + :rtype: TransactionStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TransactionVerbose. + + + :param status: The status of this TransactionVerbose. # noqa: E501 + :type: TransactionStatus + """ + + self._status = status + + @property + def txn(self): + """Gets the txn of this TransactionVerbose. # noqa: E501 + + + :return: The txn of this TransactionVerbose. # noqa: E501 + :rtype: TransactionVerboseTxn + """ + return self._txn + + @txn.setter + def txn(self, txn): + """Sets the txn of this TransactionVerbose. + + + :param txn: The txn of this TransactionVerbose. # noqa: E501 + :type: TransactionVerboseTxn + """ + + self._txn = txn + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionVerbose): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_verbose_txn.py b/lib/skyapi/skyapi/skyapi/models/transaction_verbose_txn.py new file mode 100644 index 00000000..d4af6600 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_verbose_txn.py @@ -0,0 +1,347 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionVerboseTxn(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'status': 'TransactionStatus', + 'fee': 'int', + 'inner_hash': 'str', + 'inputs': 'list[TransactionVerboseTxnInputs]', + 'length': 'int', + 'outputs': 'list[object]', + 'sigs': 'list[str]', + 'timestamp': 'int', + 'txid': 'str', + 'type': 'int' + } + + attribute_map = { + 'status': 'status', + 'fee': 'fee', + 'inner_hash': 'inner_hash', + 'inputs': 'inputs', + 'length': 'length', + 'outputs': 'outputs', + 'sigs': 'sigs', + 'timestamp': 'timestamp', + 'txid': 'txid', + 'type': 'type' + } + + def __init__(self, status=None, fee=None, inner_hash=None, inputs=None, length=None, outputs=None, sigs=None, timestamp=None, txid=None, type=None): # noqa: E501 + """TransactionVerboseTxn - a model defined in OpenAPI""" # noqa: E501 + + self._status = None + self._fee = None + self._inner_hash = None + self._inputs = None + self._length = None + self._outputs = None + self._sigs = None + self._timestamp = None + self._txid = None + self._type = None + self.discriminator = None + + if status is not None: + self.status = status + if fee is not None: + self.fee = fee + if inner_hash is not None: + self.inner_hash = inner_hash + if inputs is not None: + self.inputs = inputs + if length is not None: + self.length = length + if outputs is not None: + self.outputs = outputs + if sigs is not None: + self.sigs = sigs + if timestamp is not None: + self.timestamp = timestamp + if txid is not None: + self.txid = txid + if type is not None: + self.type = type + + @property + def status(self): + """Gets the status of this TransactionVerboseTxn. # noqa: E501 + + + :return: The status of this TransactionVerboseTxn. # noqa: E501 + :rtype: TransactionStatus + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this TransactionVerboseTxn. + + + :param status: The status of this TransactionVerboseTxn. # noqa: E501 + :type: TransactionStatus + """ + + self._status = status + + @property + def fee(self): + """Gets the fee of this TransactionVerboseTxn. # noqa: E501 + + + :return: The fee of this TransactionVerboseTxn. # noqa: E501 + :rtype: int + """ + return self._fee + + @fee.setter + def fee(self, fee): + """Sets the fee of this TransactionVerboseTxn. + + + :param fee: The fee of this TransactionVerboseTxn. # noqa: E501 + :type: int + """ + + self._fee = fee + + @property + def inner_hash(self): + """Gets the inner_hash of this TransactionVerboseTxn. # noqa: E501 + + + :return: The inner_hash of this TransactionVerboseTxn. # noqa: E501 + :rtype: str + """ + return self._inner_hash + + @inner_hash.setter + def inner_hash(self, inner_hash): + """Sets the inner_hash of this TransactionVerboseTxn. + + + :param inner_hash: The inner_hash of this TransactionVerboseTxn. # noqa: E501 + :type: str + """ + + self._inner_hash = inner_hash + + @property + def inputs(self): + """Gets the inputs of this TransactionVerboseTxn. # noqa: E501 + + + :return: The inputs of this TransactionVerboseTxn. # noqa: E501 + :rtype: list[TransactionVerboseTxnInputs] + """ + return self._inputs + + @inputs.setter + def inputs(self, inputs): + """Sets the inputs of this TransactionVerboseTxn. + + + :param inputs: The inputs of this TransactionVerboseTxn. # noqa: E501 + :type: list[TransactionVerboseTxnInputs] + """ + + self._inputs = inputs + + @property + def length(self): + """Gets the length of this TransactionVerboseTxn. # noqa: E501 + + + :return: The length of this TransactionVerboseTxn. # noqa: E501 + :rtype: int + """ + return self._length + + @length.setter + def length(self, length): + """Sets the length of this TransactionVerboseTxn. + + + :param length: The length of this TransactionVerboseTxn. # noqa: E501 + :type: int + """ + + self._length = length + + @property + def outputs(self): + """Gets the outputs of this TransactionVerboseTxn. # noqa: E501 + + + :return: The outputs of this TransactionVerboseTxn. # noqa: E501 + :rtype: list[object] + """ + return self._outputs + + @outputs.setter + def outputs(self, outputs): + """Sets the outputs of this TransactionVerboseTxn. + + + :param outputs: The outputs of this TransactionVerboseTxn. # noqa: E501 + :type: list[object] + """ + + self._outputs = outputs + + @property + def sigs(self): + """Gets the sigs of this TransactionVerboseTxn. # noqa: E501 + + + :return: The sigs of this TransactionVerboseTxn. # noqa: E501 + :rtype: list[str] + """ + return self._sigs + + @sigs.setter + def sigs(self, sigs): + """Sets the sigs of this TransactionVerboseTxn. + + + :param sigs: The sigs of this TransactionVerboseTxn. # noqa: E501 + :type: list[str] + """ + + self._sigs = sigs + + @property + def timestamp(self): + """Gets the timestamp of this TransactionVerboseTxn. # noqa: E501 + + + :return: The timestamp of this TransactionVerboseTxn. # noqa: E501 + :rtype: int + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """Sets the timestamp of this TransactionVerboseTxn. + + + :param timestamp: The timestamp of this TransactionVerboseTxn. # noqa: E501 + :type: int + """ + + self._timestamp = timestamp + + @property + def txid(self): + """Gets the txid of this TransactionVerboseTxn. # noqa: E501 + + + :return: The txid of this TransactionVerboseTxn. # noqa: E501 + :rtype: str + """ + return self._txid + + @txid.setter + def txid(self, txid): + """Sets the txid of this TransactionVerboseTxn. + + + :param txid: The txid of this TransactionVerboseTxn. # noqa: E501 + :type: str + """ + + self._txid = txid + + @property + def type(self): + """Gets the type of this TransactionVerboseTxn. # noqa: E501 + + + :return: The type of this TransactionVerboseTxn. # noqa: E501 + :rtype: int + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this TransactionVerboseTxn. + + + :param type: The type of this TransactionVerboseTxn. # noqa: E501 + :type: int + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionVerboseTxn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_verbose_txn_inputs.py b/lib/skyapi/skyapi/skyapi/models/transaction_verbose_txn_inputs.py new file mode 100644 index 00000000..dfdce0a4 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_verbose_txn_inputs.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionVerboseTxnInputs(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'uxid': 'str', + 'owner': 'str', + 'coins': 'str', + 'hours': 'int', + 'calculated_hours': 'int' + } + + attribute_map = { + 'uxid': 'uxid', + 'owner': 'owner', + 'coins': 'coins', + 'hours': 'hours', + 'calculated_hours': 'calculated_hours' + } + + def __init__(self, uxid=None, owner=None, coins=None, hours=None, calculated_hours=None): # noqa: E501 + """TransactionVerboseTxnInputs - a model defined in OpenAPI""" # noqa: E501 + + self._uxid = None + self._owner = None + self._coins = None + self._hours = None + self._calculated_hours = None + self.discriminator = None + + if uxid is not None: + self.uxid = uxid + if owner is not None: + self.owner = owner + if coins is not None: + self.coins = coins + if hours is not None: + self.hours = hours + if calculated_hours is not None: + self.calculated_hours = calculated_hours + + @property + def uxid(self): + """Gets the uxid of this TransactionVerboseTxnInputs. # noqa: E501 + + + :return: The uxid of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: str + """ + return self._uxid + + @uxid.setter + def uxid(self, uxid): + """Sets the uxid of this TransactionVerboseTxnInputs. + + + :param uxid: The uxid of this TransactionVerboseTxnInputs. # noqa: E501 + :type: str + """ + + self._uxid = uxid + + @property + def owner(self): + """Gets the owner of this TransactionVerboseTxnInputs. # noqa: E501 + + + :return: The owner of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: str + """ + return self._owner + + @owner.setter + def owner(self, owner): + """Sets the owner of this TransactionVerboseTxnInputs. + + + :param owner: The owner of this TransactionVerboseTxnInputs. # noqa: E501 + :type: str + """ + + self._owner = owner + + @property + def coins(self): + """Gets the coins of this TransactionVerboseTxnInputs. # noqa: E501 + + + :return: The coins of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: str + """ + return self._coins + + @coins.setter + def coins(self, coins): + """Sets the coins of this TransactionVerboseTxnInputs. + + + :param coins: The coins of this TransactionVerboseTxnInputs. # noqa: E501 + :type: str + """ + + self._coins = coins + + @property + def hours(self): + """Gets the hours of this TransactionVerboseTxnInputs. # noqa: E501 + + + :return: The hours of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: int + """ + return self._hours + + @hours.setter + def hours(self, hours): + """Sets the hours of this TransactionVerboseTxnInputs. + + + :param hours: The hours of this TransactionVerboseTxnInputs. # noqa: E501 + :type: int + """ + + self._hours = hours + + @property + def calculated_hours(self): + """Gets the calculated_hours of this TransactionVerboseTxnInputs. # noqa: E501 + + + :return: The calculated_hours of this TransactionVerboseTxnInputs. # noqa: E501 + :rtype: int + """ + return self._calculated_hours + + @calculated_hours.setter + def calculated_hours(self, calculated_hours): + """Sets the calculated_hours of this TransactionVerboseTxnInputs. + + + :param calculated_hours: The calculated_hours of this TransactionVerboseTxnInputs. # noqa: E501 + :type: int + """ + + self._calculated_hours = calculated_hours + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionVerboseTxnInputs): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/transaction_verify_request.py b/lib/skyapi/skyapi/skyapi/models/transaction_verify_request.py new file mode 100644 index 00000000..563ee1e2 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/transaction_verify_request.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TransactionVerifyRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'unsigned': 'bool', + 'encoded_transaction': 'str' + } + + attribute_map = { + 'unsigned': 'unsigned', + 'encoded_transaction': 'encoded_transaction' + } + + def __init__(self, unsigned=None, encoded_transaction=None): # noqa: E501 + """TransactionVerifyRequest - a model defined in OpenAPI""" # noqa: E501 + + self._unsigned = None + self._encoded_transaction = None + self.discriminator = None + + if unsigned is not None: + self.unsigned = unsigned + if encoded_transaction is not None: + self.encoded_transaction = encoded_transaction + + @property + def unsigned(self): + """Gets the unsigned of this TransactionVerifyRequest. # noqa: E501 + + + :return: The unsigned of this TransactionVerifyRequest. # noqa: E501 + :rtype: bool + """ + return self._unsigned + + @unsigned.setter + def unsigned(self, unsigned): + """Sets the unsigned of this TransactionVerifyRequest. + + + :param unsigned: The unsigned of this TransactionVerifyRequest. # noqa: E501 + :type: bool + """ + + self._unsigned = unsigned + + @property + def encoded_transaction(self): + """Gets the encoded_transaction of this TransactionVerifyRequest. # noqa: E501 + + + :return: The encoded_transaction of this TransactionVerifyRequest. # noqa: E501 + :rtype: str + """ + return self._encoded_transaction + + @encoded_transaction.setter + def encoded_transaction(self, encoded_transaction): + """Sets the encoded_transaction of this TransactionVerifyRequest. + + + :param encoded_transaction: The encoded_transaction of this TransactionVerifyRequest. # noqa: E501 + :type: str + """ + + self._encoded_transaction = encoded_transaction + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, TransactionVerifyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request.py b/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request.py new file mode 100644 index 00000000..ac276e42 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request.py @@ -0,0 +1,217 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WalletTransactionRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'change_address': 'str', + 'hours_selection': 'WalletTransactionRequestHoursSelection', + 'ignore_unconfirmed': 'bool', + 'to': 'list[object]', + 'wallet': 'WalletTransactionRequestWallet' + } + + attribute_map = { + 'change_address': 'change_address', + 'hours_selection': 'hours_selection', + 'ignore_unconfirmed': 'ignore_unconfirmed', + 'to': 'to', + 'wallet': 'wallet' + } + + def __init__(self, change_address=None, hours_selection=None, ignore_unconfirmed=None, to=None, wallet=None): # noqa: E501 + """WalletTransactionRequest - a model defined in OpenAPI""" # noqa: E501 + + self._change_address = None + self._hours_selection = None + self._ignore_unconfirmed = None + self._to = None + self._wallet = None + self.discriminator = None + + if change_address is not None: + self.change_address = change_address + if hours_selection is not None: + self.hours_selection = hours_selection + if ignore_unconfirmed is not None: + self.ignore_unconfirmed = ignore_unconfirmed + if to is not None: + self.to = to + if wallet is not None: + self.wallet = wallet + + @property + def change_address(self): + """Gets the change_address of this WalletTransactionRequest. # noqa: E501 + + + :return: The change_address of this WalletTransactionRequest. # noqa: E501 + :rtype: str + """ + return self._change_address + + @change_address.setter + def change_address(self, change_address): + """Sets the change_address of this WalletTransactionRequest. + + + :param change_address: The change_address of this WalletTransactionRequest. # noqa: E501 + :type: str + """ + + self._change_address = change_address + + @property + def hours_selection(self): + """Gets the hours_selection of this WalletTransactionRequest. # noqa: E501 + + + :return: The hours_selection of this WalletTransactionRequest. # noqa: E501 + :rtype: WalletTransactionRequestHoursSelection + """ + return self._hours_selection + + @hours_selection.setter + def hours_selection(self, hours_selection): + """Sets the hours_selection of this WalletTransactionRequest. + + + :param hours_selection: The hours_selection of this WalletTransactionRequest. # noqa: E501 + :type: WalletTransactionRequestHoursSelection + """ + + self._hours_selection = hours_selection + + @property + def ignore_unconfirmed(self): + """Gets the ignore_unconfirmed of this WalletTransactionRequest. # noqa: E501 + + + :return: The ignore_unconfirmed of this WalletTransactionRequest. # noqa: E501 + :rtype: bool + """ + return self._ignore_unconfirmed + + @ignore_unconfirmed.setter + def ignore_unconfirmed(self, ignore_unconfirmed): + """Sets the ignore_unconfirmed of this WalletTransactionRequest. + + + :param ignore_unconfirmed: The ignore_unconfirmed of this WalletTransactionRequest. # noqa: E501 + :type: bool + """ + + self._ignore_unconfirmed = ignore_unconfirmed + + @property + def to(self): + """Gets the to of this WalletTransactionRequest. # noqa: E501 + + + :return: The to of this WalletTransactionRequest. # noqa: E501 + :rtype: list[object] + """ + return self._to + + @to.setter + def to(self, to): + """Sets the to of this WalletTransactionRequest. + + + :param to: The to of this WalletTransactionRequest. # noqa: E501 + :type: list[object] + """ + + self._to = to + + @property + def wallet(self): + """Gets the wallet of this WalletTransactionRequest. # noqa: E501 + + + :return: The wallet of this WalletTransactionRequest. # noqa: E501 + :rtype: WalletTransactionRequestWallet + """ + return self._wallet + + @wallet.setter + def wallet(self, wallet): + """Sets the wallet of this WalletTransactionRequest. + + + :param wallet: The wallet of this WalletTransactionRequest. # noqa: E501 + :type: WalletTransactionRequestWallet + """ + + self._wallet = wallet + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WalletTransactionRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request_hours_selection.py b/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request_hours_selection.py new file mode 100644 index 00000000..128adf4b --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request_hours_selection.py @@ -0,0 +1,165 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WalletTransactionRequestHoursSelection(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'mode': 'str', + 'share_factor': 'str', + 'type': 'str' + } + + attribute_map = { + 'mode': 'mode', + 'share_factor': 'share_factor', + 'type': 'type' + } + + def __init__(self, mode=None, share_factor=None, type=None): # noqa: E501 + """WalletTransactionRequestHoursSelection - a model defined in OpenAPI""" # noqa: E501 + + self._mode = None + self._share_factor = None + self._type = None + self.discriminator = None + + if mode is not None: + self.mode = mode + if share_factor is not None: + self.share_factor = share_factor + if type is not None: + self.type = type + + @property + def mode(self): + """Gets the mode of this WalletTransactionRequestHoursSelection. # noqa: E501 + + + :return: The mode of this WalletTransactionRequestHoursSelection. # noqa: E501 + :rtype: str + """ + return self._mode + + @mode.setter + def mode(self, mode): + """Sets the mode of this WalletTransactionRequestHoursSelection. + + + :param mode: The mode of this WalletTransactionRequestHoursSelection. # noqa: E501 + :type: str + """ + + self._mode = mode + + @property + def share_factor(self): + """Gets the share_factor of this WalletTransactionRequestHoursSelection. # noqa: E501 + + + :return: The share_factor of this WalletTransactionRequestHoursSelection. # noqa: E501 + :rtype: str + """ + return self._share_factor + + @share_factor.setter + def share_factor(self, share_factor): + """Sets the share_factor of this WalletTransactionRequestHoursSelection. + + + :param share_factor: The share_factor of this WalletTransactionRequestHoursSelection. # noqa: E501 + :type: str + """ + + self._share_factor = share_factor + + @property + def type(self): + """Gets the type of this WalletTransactionRequestHoursSelection. # noqa: E501 + + + :return: The type of this WalletTransactionRequestHoursSelection. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this WalletTransactionRequestHoursSelection. + + + :param type: The type of this WalletTransactionRequestHoursSelection. # noqa: E501 + :type: str + """ + + self._type = type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WalletTransactionRequestHoursSelection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request_wallet.py b/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request_wallet.py new file mode 100644 index 00000000..3d50c977 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/wallet_transaction_request_wallet.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WalletTransactionRequestWallet(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'addresses': 'list[str]', + 'id': 'str', + 'password': 'str', + 'unspents': 'list[str]' + } + + attribute_map = { + 'addresses': 'addresses', + 'id': 'id', + 'password': 'password', + 'unspents': 'unspents' + } + + def __init__(self, addresses=None, id=None, password=None, unspents=None): # noqa: E501 + """WalletTransactionRequestWallet - a model defined in OpenAPI""" # noqa: E501 + + self._addresses = None + self._id = None + self._password = None + self._unspents = None + self.discriminator = None + + if addresses is not None: + self.addresses = addresses + if id is not None: + self.id = id + if password is not None: + self.password = password + if unspents is not None: + self.unspents = unspents + + @property + def addresses(self): + """Gets the addresses of this WalletTransactionRequestWallet. # noqa: E501 + + + :return: The addresses of this WalletTransactionRequestWallet. # noqa: E501 + :rtype: list[str] + """ + return self._addresses + + @addresses.setter + def addresses(self, addresses): + """Sets the addresses of this WalletTransactionRequestWallet. + + + :param addresses: The addresses of this WalletTransactionRequestWallet. # noqa: E501 + :type: list[str] + """ + + self._addresses = addresses + + @property + def id(self): + """Gets the id of this WalletTransactionRequestWallet. # noqa: E501 + + + :return: The id of this WalletTransactionRequestWallet. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this WalletTransactionRequestWallet. + + + :param id: The id of this WalletTransactionRequestWallet. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def password(self): + """Gets the password of this WalletTransactionRequestWallet. # noqa: E501 + + + :return: The password of this WalletTransactionRequestWallet. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this WalletTransactionRequestWallet. + + + :param password: The password of this WalletTransactionRequestWallet. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def unspents(self): + """Gets the unspents of this WalletTransactionRequestWallet. # noqa: E501 + + + :return: The unspents of this WalletTransactionRequestWallet. # noqa: E501 + :rtype: list[str] + """ + return self._unspents + + @unspents.setter + def unspents(self, unspents): + """Sets the unspents of this WalletTransactionRequestWallet. + + + :param unspents: The unspents of this WalletTransactionRequestWallet. # noqa: E501 + :type: list[str] + """ + + self._unspents = unspents + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WalletTransactionRequestWallet): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/models/wallet_transaction_sign_request.py b/lib/skyapi/skyapi/skyapi/models/wallet_transaction_sign_request.py new file mode 100644 index 00000000..9d3b8663 --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/models/wallet_transaction_sign_request.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WalletTransactionSignRequest(object): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + """ + Attributes: + openapi_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + openapi_types = { + 'wallet_id': 'str', + 'password': 'str', + 'encoded_transaction': 'str', + 'sign_indexes': 'list[int]' + } + + attribute_map = { + 'wallet_id': 'wallet_id', + 'password': 'password', + 'encoded_transaction': 'encoded_transaction', + 'sign_indexes': 'sign_indexes' + } + + def __init__(self, wallet_id=None, password=None, encoded_transaction=None, sign_indexes=None): # noqa: E501 + """WalletTransactionSignRequest - a model defined in OpenAPI""" # noqa: E501 + + self._wallet_id = None + self._password = None + self._encoded_transaction = None + self._sign_indexes = None + self.discriminator = None + + if wallet_id is not None: + self.wallet_id = wallet_id + if password is not None: + self.password = password + if encoded_transaction is not None: + self.encoded_transaction = encoded_transaction + if sign_indexes is not None: + self.sign_indexes = sign_indexes + + @property + def wallet_id(self): + """Gets the wallet_id of this WalletTransactionSignRequest. # noqa: E501 + + + :return: The wallet_id of this WalletTransactionSignRequest. # noqa: E501 + :rtype: str + """ + return self._wallet_id + + @wallet_id.setter + def wallet_id(self, wallet_id): + """Sets the wallet_id of this WalletTransactionSignRequest. + + + :param wallet_id: The wallet_id of this WalletTransactionSignRequest. # noqa: E501 + :type: str + """ + + self._wallet_id = wallet_id + + @property + def password(self): + """Gets the password of this WalletTransactionSignRequest. # noqa: E501 + + + :return: The password of this WalletTransactionSignRequest. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this WalletTransactionSignRequest. + + + :param password: The password of this WalletTransactionSignRequest. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def encoded_transaction(self): + """Gets the encoded_transaction of this WalletTransactionSignRequest. # noqa: E501 + + + :return: The encoded_transaction of this WalletTransactionSignRequest. # noqa: E501 + :rtype: str + """ + return self._encoded_transaction + + @encoded_transaction.setter + def encoded_transaction(self, encoded_transaction): + """Sets the encoded_transaction of this WalletTransactionSignRequest. + + + :param encoded_transaction: The encoded_transaction of this WalletTransactionSignRequest. # noqa: E501 + :type: str + """ + + self._encoded_transaction = encoded_transaction + + @property + def sign_indexes(self): + """Gets the sign_indexes of this WalletTransactionSignRequest. # noqa: E501 + + + :return: The sign_indexes of this WalletTransactionSignRequest. # noqa: E501 + :rtype: list[int] + """ + return self._sign_indexes + + @sign_indexes.setter + def sign_indexes(self, sign_indexes): + """Sets the sign_indexes of this WalletTransactionSignRequest. + + + :param sign_indexes: The sign_indexes of this WalletTransactionSignRequest. # noqa: E501 + :type: list[int] + """ + + self._sign_indexes = sign_indexes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.openapi_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WalletTransactionSignRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/lib/skyapi/skyapi/skyapi/rest.py b/lib/skyapi/skyapi/skyapi/rest.py new file mode 100644 index 00000000..0ba0413b --- /dev/null +++ b/lib/skyapi/skyapi/skyapi/rest.py @@ -0,0 +1,297 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import io +import json +import logging +import re +import ssl + +import certifi +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import urlencode +import urllib3 + +from skyapi.exceptions import ApiException, ApiValueError + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if configuration.retries is not None: + addition_pool_args['retries'] = configuration.retries + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + proxy_headers=configuration.proxy_headers, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ApiValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = None + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str) or isinstance(body, bytes): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # In the python 3, the response.data is bytes. + # we need to decode it to string. + if six.PY3: + r.data = r.data.decode('utf8') + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) diff --git a/lib/skyapi/skyapi/test-requirements.txt b/lib/skyapi/skyapi/test-requirements.txt new file mode 100644 index 00000000..2702246c --- /dev/null +++ b/lib/skyapi/skyapi/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/lib/skyapi/skyapi/test/__init__.py b/lib/skyapi/skyapi/test/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/lib/skyapi/skyapi/test/test_address.py b/lib/skyapi/skyapi/test/test_address.py new file mode 100644 index 00000000..82a7d690 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_address.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.address import Address # noqa: E501 +from skyapi.rest import ApiException + + +class TestAddress(unittest.TestCase): + """Address unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAddress(self): + """Test Address""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.address.Address() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_api_v1_pending_txs_transaction.py b/lib/skyapi/skyapi/test/test_api_v1_pending_txs_transaction.py new file mode 100644 index 00000000..30b00b7a --- /dev/null +++ b/lib/skyapi/skyapi/test/test_api_v1_pending_txs_transaction.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.api_v1_pending_txs_transaction import ApiV1PendingTxsTransaction # noqa: E501 +from skyapi.rest import ApiException + + +class TestApiV1PendingTxsTransaction(unittest.TestCase): + """ApiV1PendingTxsTransaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiV1PendingTxsTransaction(self): + """Test ApiV1PendingTxsTransaction""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.api_v1_pending_txs_transaction.ApiV1PendingTxsTransaction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_api_v1_pending_txs_transaction_outputs.py b/lib/skyapi/skyapi/test/test_api_v1_pending_txs_transaction_outputs.py new file mode 100644 index 00000000..79b75f18 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_api_v1_pending_txs_transaction_outputs.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.api_v1_pending_txs_transaction_outputs import ApiV1PendingTxsTransactionOutputs # noqa: E501 +from skyapi.rest import ApiException + + +class TestApiV1PendingTxsTransactionOutputs(unittest.TestCase): + """ApiV1PendingTxsTransactionOutputs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testApiV1PendingTxsTransactionOutputs(self): + """Test ApiV1PendingTxsTransactionOutputs""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.api_v1_pending_txs_transaction_outputs.ApiV1PendingTxsTransactionOutputs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_block_schema.py b/lib/skyapi/skyapi/test/test_block_schema.py new file mode 100644 index 00000000..b51211b2 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_block_schema.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.block_schema import BlockSchema # noqa: E501 +from skyapi.rest import ApiException + + +class TestBlockSchema(unittest.TestCase): + """BlockSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlockSchema(self): + """Test BlockSchema""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.block_schema.BlockSchema() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_block_schema_body.py b/lib/skyapi/skyapi/test/test_block_schema_body.py new file mode 100644 index 00000000..0c2e9280 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_block_schema_body.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.block_schema_body import BlockSchemaBody # noqa: E501 +from skyapi.rest import ApiException + + +class TestBlockSchemaBody(unittest.TestCase): + """BlockSchemaBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlockSchemaBody(self): + """Test BlockSchemaBody""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.block_schema_body.BlockSchemaBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_block_verbose_schema.py b/lib/skyapi/skyapi/test/test_block_verbose_schema.py new file mode 100644 index 00000000..6130c32e --- /dev/null +++ b/lib/skyapi/skyapi/test/test_block_verbose_schema.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.block_verbose_schema import BlockVerboseSchema # noqa: E501 +from skyapi.rest import ApiException + + +class TestBlockVerboseSchema(unittest.TestCase): + """BlockVerboseSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlockVerboseSchema(self): + """Test BlockVerboseSchema""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.block_verbose_schema.BlockVerboseSchema() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_block_verbose_schema_body.py b/lib/skyapi/skyapi/test/test_block_verbose_schema_body.py new file mode 100644 index 00000000..98a72181 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_block_verbose_schema_body.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.block_verbose_schema_body import BlockVerboseSchemaBody # noqa: E501 +from skyapi.rest import ApiException + + +class TestBlockVerboseSchemaBody(unittest.TestCase): + """BlockVerboseSchemaBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlockVerboseSchemaBody(self): + """Test BlockVerboseSchemaBody""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.block_verbose_schema_body.BlockVerboseSchemaBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_block_verbose_schema_header.py b/lib/skyapi/skyapi/test/test_block_verbose_schema_header.py new file mode 100644 index 00000000..8a01013d --- /dev/null +++ b/lib/skyapi/skyapi/test/test_block_verbose_schema_header.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.block_verbose_schema_header import BlockVerboseSchemaHeader # noqa: E501 +from skyapi.rest import ApiException + + +class TestBlockVerboseSchemaHeader(unittest.TestCase): + """BlockVerboseSchemaHeader unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBlockVerboseSchemaHeader(self): + """Test BlockVerboseSchemaHeader""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.block_verbose_schema_header.BlockVerboseSchemaHeader() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_default_api.py b/lib/skyapi/skyapi/test/test_default_api.py new file mode 100644 index 00000000..3460ff3f --- /dev/null +++ b/lib/skyapi/skyapi/test/test_default_api.py @@ -0,0 +1,403 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.api.default_api import DefaultApi # noqa: E501 +from skyapi.rest import ApiException + + +class TestDefaultApi(unittest.TestCase): + """DefaultApi unit test stubs""" + + def setUp(self): + self.api = skyapi.api.default_api.DefaultApi() # noqa: E501 + + def tearDown(self): + pass + + def test_address_count(self): + """Test case for address_count + + Returns the total number of unique address that have coins. # noqa: E501 + """ + pass + + def test_address_uxouts(self): + """Test case for address_uxouts + + """ + pass + + def test_api_v1_rawtx_get(self): + """Test case for api_v1_rawtx_get + + """ + pass + + def test_api_v2_metrics_get(self): + """Test case for api_v2_metrics_get + + """ + pass + + def test_balance_get(self): + """Test case for balance_get + + Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + """ + pass + + def test_balance_post(self): + """Test case for balance_post + + Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + """ + pass + + def test_block(self): + """Test case for block + + Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + """ + pass + + def test_blockchain_metadata(self): + """Test case for blockchain_metadata + + Returns the blockchain metadata. # noqa: E501 + """ + pass + + def test_blockchain_progress(self): + """Test case for blockchain_progress + + Returns the blockchain sync progress. # noqa: E501 + """ + pass + + def test_blocks(self): + """Test case for blocks + + Returns the balance of one or more addresses, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + """ + pass + + def test_coin_supply(self): + """Test case for coin_supply + + """ + pass + + def test_csrf(self): + """Test case for csrf + + Creates a new CSRF token. Previous CSRF tokens are invalidated by this call. # noqa: E501 + """ + pass + + def test_data_delete(self): + """Test case for data_delete + + """ + pass + + def test_data_get(self): + """Test case for data_get + + """ + pass + + def test_data_post(self): + """Test case for data_post + + """ + pass + + def test_default_connections(self): + """Test case for default_connections + + defaultConnectionsHandler returns the list of default hardcoded bootstrap addresses.\\n They are not necessarily connected to. # noqa: E501 + """ + pass + + def test_health(self): + """Test case for health + + Returns node health data. # noqa: E501 + """ + pass + + def test_last_blocks(self): + """Test case for last_blocks + + """ + pass + + def test_network_connection(self): + """Test case for network_connection + + This endpoint returns a specific connection. # noqa: E501 + """ + pass + + def test_network_connections(self): + """Test case for network_connections + + This endpoint returns all outgoings connections. # noqa: E501 + """ + pass + + def test_network_connections_disconnect(self): + """Test case for network_connections_disconnect + + """ + pass + + def test_network_connections_exchange(self): + """Test case for network_connections_exchange + + """ + pass + + def test_network_connections_trust(self): + """Test case for network_connections_trust + + trustConnectionsHandler returns all trusted connections.\\n They are not necessarily connected to. In the default configuration, these will be a subset of the default hardcoded bootstrap addresses. # noqa: E501 + """ + pass + + def test_outputs_get(self): + """Test case for outputs_get + + If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. # noqa: E501 + """ + pass + + def test_outputs_post(self): + """Test case for outputs_post + + If neither addrs nor hashes are specificed, return all unspent outputs. If only one filter is specified, then return outputs match the filter. Both filters cannot be specified. # noqa: E501 + """ + pass + + def test_pending_txs(self): + """Test case for pending_txs + + """ + pass + + def test_resend_unconfirmed_txns(self): + """Test case for resend_unconfirmed_txns + + """ + pass + + def test_richlist(self): + """Test case for richlist + + Returns the top skycoin holders. # noqa: E501 + """ + pass + + def test_transaction(self): + """Test case for transaction + + """ + pass + + def test_transaction_inject(self): + """Test case for transaction_inject + + Broadcast a hex-encoded, serialized transaction to the network. # noqa: E501 + """ + pass + + def test_transaction_post(self): + """Test case for transaction_post + + """ + pass + + def test_transaction_post_unspent(self): + """Test case for transaction_post_unspent + + """ + pass + + def test_transaction_raw(self): + """Test case for transaction_raw + + Returns the hex-encoded byte serialization of a transaction. The transaction may be confirmed or unconfirmed. # noqa: E501 + """ + pass + + def test_transaction_verify(self): + """Test case for transaction_verify + + """ + pass + + def test_transactions_get(self): + """Test case for transactions_get + + Returns transactions that match the filters. # noqa: E501 + """ + pass + + def test_transactions_post(self): + """Test case for transactions_post + + Returns transactions that match the filters. # noqa: E501 + """ + pass + + def test_uxout(self): + """Test case for uxout + + Returns an unspent output by ID. # noqa: E501 + """ + pass + + def test_verify_address(self): + """Test case for verify_address + + Verifies a Skycoin address. # noqa: E501 + """ + pass + + def test_version(self): + """Test case for version + + """ + pass + + def test_wallet(self): + """Test case for wallet + + Returns a wallet by id. # noqa: E501 + """ + pass + + def test_wallet_balance(self): + """Test case for wallet_balance + + Returns the wallet's balance, both confirmed and predicted. The predicted balance is the confirmed balance minus the pending spends. # noqa: E501 + """ + pass + + def test_wallet_create(self): + """Test case for wallet_create + + """ + pass + + def test_wallet_decrypt(self): + """Test case for wallet_decrypt + + Decrypts wallet. # noqa: E501 + """ + pass + + def test_wallet_encrypt(self): + """Test case for wallet_encrypt + + Encrypt wallet. # noqa: E501 + """ + pass + + def test_wallet_folder(self): + """Test case for wallet_folder + + """ + pass + + def test_wallet_new_address(self): + """Test case for wallet_new_address + + """ + pass + + def test_wallet_new_seed(self): + """Test case for wallet_new_seed + + """ + pass + + def test_wallet_recover(self): + """Test case for wallet_recover + + Recovers an encrypted wallet by providing the seed. The first address will be generated from seed and compared to the first address of the specified wallet. If they match, the wallet will be regenerated with an optional password. If the wallet is not encrypted, an error is returned. # noqa: E501 + """ + pass + + def test_wallet_seed(self): + """Test case for wallet_seed + + This endpoint only works for encrypted wallets. If the wallet is unencrypted, The seed will be not returned. # noqa: E501 + """ + pass + + def test_wallet_seed_verify(self): + """Test case for wallet_seed_verify + + Verifies a wallet seed. # noqa: E501 + """ + pass + + def test_wallet_transaction(self): + """Test case for wallet_transaction + + Creates a signed transaction # noqa: E501 + """ + pass + + def test_wallet_transaction_sign(self): + """Test case for wallet_transaction_sign + + Creates a signed transaction # noqa: E501 + """ + pass + + def test_wallet_transactions(self): + """Test case for wallet_transactions + + """ + pass + + def test_wallet_unload(self): + """Test case for wallet_unload + + Unloads wallet from the wallet service. # noqa: E501 + """ + pass + + def test_wallet_update(self): + """Test case for wallet_update + + Update the wallet. # noqa: E501 + """ + pass + + def test_wallets(self): + """Test case for wallets + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response200.py b/lib/skyapi/skyapi/test/test_inline_response200.py new file mode 100644 index 00000000..46204813 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response200.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response200 import InlineResponse200 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse200(unittest.TestCase): + """InlineResponse200 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse200(self): + """Test InlineResponse200""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response200.InlineResponse200() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2001.py b/lib/skyapi/skyapi/test/test_inline_response2001.py new file mode 100644 index 00000000..8104a401 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2001.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2001 import InlineResponse2001 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2001(unittest.TestCase): + """InlineResponse2001 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2001(self): + """Test InlineResponse2001""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2001.InlineResponse2001() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response20010.py b/lib/skyapi/skyapi/test/test_inline_response20010.py new file mode 100644 index 00000000..83d889e2 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response20010.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response20010 import InlineResponse20010 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse20010(unittest.TestCase): + """InlineResponse20010 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20010(self): + """Test InlineResponse20010""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response20010.InlineResponse20010() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2002.py b/lib/skyapi/skyapi/test/test_inline_response2002.py new file mode 100644 index 00000000..fdc53ba7 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2002.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2002 import InlineResponse2002 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2002(unittest.TestCase): + """InlineResponse2002 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2002(self): + """Test InlineResponse2002""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2002.InlineResponse2002() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2003.py b/lib/skyapi/skyapi/test/test_inline_response2003.py new file mode 100644 index 00000000..db94178e --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2003.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2003 import InlineResponse2003 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2003(unittest.TestCase): + """InlineResponse2003 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2003(self): + """Test InlineResponse2003""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2003.InlineResponse2003() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2004.py b/lib/skyapi/skyapi/test/test_inline_response2004.py new file mode 100644 index 00000000..7dc00ec5 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2004.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2004 import InlineResponse2004 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2004(unittest.TestCase): + """InlineResponse2004 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2004(self): + """Test InlineResponse2004""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2004.InlineResponse2004() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2005.py b/lib/skyapi/skyapi/test/test_inline_response2005.py new file mode 100644 index 00000000..0612b495 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2005.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2005 import InlineResponse2005 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2005(unittest.TestCase): + """InlineResponse2005 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2005(self): + """Test InlineResponse2005""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2005.InlineResponse2005() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2006.py b/lib/skyapi/skyapi/test/test_inline_response2006.py new file mode 100644 index 00000000..958a672d --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2006.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2006 import InlineResponse2006 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2006(unittest.TestCase): + """InlineResponse2006 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2006(self): + """Test InlineResponse2006""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2006.InlineResponse2006() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2007.py b/lib/skyapi/skyapi/test/test_inline_response2007.py new file mode 100644 index 00000000..ba35168b --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2007.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2007 import InlineResponse2007 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2007(unittest.TestCase): + """InlineResponse2007 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2007(self): + """Test InlineResponse2007""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2007.InlineResponse2007() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2008.py b/lib/skyapi/skyapi/test/test_inline_response2008.py new file mode 100644 index 00000000..2760655a --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2008.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2008 import InlineResponse2008 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2008(unittest.TestCase): + """InlineResponse2008 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2008(self): + """Test InlineResponse2008""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2008.InlineResponse2008() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2008_data.py b/lib/skyapi/skyapi/test/test_inline_response2008_data.py new file mode 100644 index 00000000..78af027a --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2008_data.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2008_data import InlineResponse2008Data # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2008Data(unittest.TestCase): + """InlineResponse2008Data unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2008Data(self): + """Test InlineResponse2008Data""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2008_data.InlineResponse2008Data() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response2009.py b/lib/skyapi/skyapi/test/test_inline_response2009.py new file mode 100644 index 00000000..ceddc308 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response2009.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response2009 import InlineResponse2009 # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponse2009(unittest.TestCase): + """InlineResponse2009 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2009(self): + """Test InlineResponse2009""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response2009.InlineResponse2009() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_inline_response_default.py b/lib/skyapi/skyapi/test/test_inline_response_default.py new file mode 100644 index 00000000..e9df887d --- /dev/null +++ b/lib/skyapi/skyapi/test/test_inline_response_default.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.inline_response_default import InlineResponseDefault # noqa: E501 +from skyapi.rest import ApiException + + +class TestInlineResponseDefault(unittest.TestCase): + """InlineResponseDefault unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponseDefault(self): + """Test InlineResponseDefault""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.inline_response_default.InlineResponseDefault() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_network_connection_schema.py b/lib/skyapi/skyapi/test/test_network_connection_schema.py new file mode 100644 index 00000000..22bf59e2 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_network_connection_schema.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.network_connection_schema import NetworkConnectionSchema # noqa: E501 +from skyapi.rest import ApiException + + +class TestNetworkConnectionSchema(unittest.TestCase): + """NetworkConnectionSchema unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkConnectionSchema(self): + """Test NetworkConnectionSchema""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.network_connection_schema.NetworkConnectionSchema() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_network_connection_schema_unconfirmed_verify_transaction.py b/lib/skyapi/skyapi/test/test_network_connection_schema_unconfirmed_verify_transaction.py new file mode 100644 index 00000000..035d56d0 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_network_connection_schema_unconfirmed_verify_transaction.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.network_connection_schema_unconfirmed_verify_transaction import NetworkConnectionSchemaUnconfirmedVerifyTransaction # noqa: E501 +from skyapi.rest import ApiException + + +class TestNetworkConnectionSchemaUnconfirmedVerifyTransaction(unittest.TestCase): + """NetworkConnectionSchemaUnconfirmedVerifyTransaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNetworkConnectionSchemaUnconfirmedVerifyTransaction(self): + """Test NetworkConnectionSchemaUnconfirmedVerifyTransaction""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.network_connection_schema_unconfirmed_verify_transaction.NetworkConnectionSchemaUnconfirmedVerifyTransaction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction.py b/lib/skyapi/skyapi/test/test_transaction.py new file mode 100644 index 00000000..e2a95a97 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction import Transaction # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransaction(unittest.TestCase): + """Transaction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransaction(self): + """Test Transaction""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction.Transaction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_encoded.py b/lib/skyapi/skyapi/test/test_transaction_encoded.py new file mode 100644 index 00000000..970f4e51 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_encoded.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_encoded import TransactionEncoded # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionEncoded(unittest.TestCase): + """TransactionEncoded unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionEncoded(self): + """Test TransactionEncoded""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_encoded.TransactionEncoded() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_encoded_s.py b/lib/skyapi/skyapi/test/test_transaction_encoded_s.py new file mode 100644 index 00000000..c070baf7 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_encoded_s.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_encoded_s import TransactionEncodedS # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionEncodedS(unittest.TestCase): + """TransactionEncodedS unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionEncodedS(self): + """Test TransactionEncodedS""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_encoded_s.TransactionEncodedS() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_status.py b/lib/skyapi/skyapi/test/test_transaction_status.py new file mode 100644 index 00000000..e6110432 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_status import TransactionStatus # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionStatus(unittest.TestCase): + """TransactionStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionStatus(self): + """Test TransactionStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_status.TransactionStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_txn.py b/lib/skyapi/skyapi/test/test_transaction_txn.py new file mode 100644 index 00000000..03079530 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_txn.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_txn import TransactionTxn # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionTxn(unittest.TestCase): + """TransactionTxn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionTxn(self): + """Test TransactionTxn""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_txn.TransactionTxn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_v2_params_address.py b/lib/skyapi/skyapi/test/test_transaction_v2_params_address.py new file mode 100644 index 00000000..1e79bb22 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_v2_params_address.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_v2_params_address import TransactionV2ParamsAddress # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionV2ParamsAddress(unittest.TestCase): + """TransactionV2ParamsAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionV2ParamsAddress(self): + """Test TransactionV2ParamsAddress""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_v2_params_address.TransactionV2ParamsAddress() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_v2_params_address_hours_selection.py b/lib/skyapi/skyapi/test/test_transaction_v2_params_address_hours_selection.py new file mode 100644 index 00000000..e80db1cb --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_v2_params_address_hours_selection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_v2_params_address_hours_selection import TransactionV2ParamsAddressHoursSelection # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionV2ParamsAddressHoursSelection(unittest.TestCase): + """TransactionV2ParamsAddressHoursSelection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionV2ParamsAddressHoursSelection(self): + """Test TransactionV2ParamsAddressHoursSelection""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_v2_params_address_hours_selection.TransactionV2ParamsAddressHoursSelection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent.py b/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent.py new file mode 100644 index 00000000..372fed26 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_v2_params_unspent import TransactionV2ParamsUnspent # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionV2ParamsUnspent(unittest.TestCase): + """TransactionV2ParamsUnspent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionV2ParamsUnspent(self): + """Test TransactionV2ParamsUnspent""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_v2_params_unspent.TransactionV2ParamsUnspent() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent_hours_selection.py b/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent_hours_selection.py new file mode 100644 index 00000000..8a7dcfe6 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent_hours_selection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_v2_params_unspent_hours_selection import TransactionV2ParamsUnspentHoursSelection # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionV2ParamsUnspentHoursSelection(unittest.TestCase): + """TransactionV2ParamsUnspentHoursSelection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionV2ParamsUnspentHoursSelection(self): + """Test TransactionV2ParamsUnspentHoursSelection""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_v2_params_unspent_hours_selection.TransactionV2ParamsUnspentHoursSelection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent_to.py b/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent_to.py new file mode 100644 index 00000000..eccff834 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_v2_params_unspent_to.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_v2_params_unspent_to import TransactionV2ParamsUnspentTo # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionV2ParamsUnspentTo(unittest.TestCase): + """TransactionV2ParamsUnspentTo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionV2ParamsUnspentTo(self): + """Test TransactionV2ParamsUnspentTo""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_v2_params_unspent_to.TransactionV2ParamsUnspentTo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_verbose.py b/lib/skyapi/skyapi/test/test_transaction_verbose.py new file mode 100644 index 00000000..87e615b4 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_verbose.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_verbose import TransactionVerbose # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionVerbose(unittest.TestCase): + """TransactionVerbose unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionVerbose(self): + """Test TransactionVerbose""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_verbose.TransactionVerbose() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_verbose_txn.py b/lib/skyapi/skyapi/test/test_transaction_verbose_txn.py new file mode 100644 index 00000000..7e2f0f2c --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_verbose_txn.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_verbose_txn import TransactionVerboseTxn # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionVerboseTxn(unittest.TestCase): + """TransactionVerboseTxn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionVerboseTxn(self): + """Test TransactionVerboseTxn""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_verbose_txn.TransactionVerboseTxn() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_verbose_txn_inputs.py b/lib/skyapi/skyapi/test/test_transaction_verbose_txn_inputs.py new file mode 100644 index 00000000..8977ff32 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_verbose_txn_inputs.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_verbose_txn_inputs import TransactionVerboseTxnInputs # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionVerboseTxnInputs(unittest.TestCase): + """TransactionVerboseTxnInputs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionVerboseTxnInputs(self): + """Test TransactionVerboseTxnInputs""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_verbose_txn_inputs.TransactionVerboseTxnInputs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_transaction_verify_request.py b/lib/skyapi/skyapi/test/test_transaction_verify_request.py new file mode 100644 index 00000000..43e84fdb --- /dev/null +++ b/lib/skyapi/skyapi/test/test_transaction_verify_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.transaction_verify_request import TransactionVerifyRequest # noqa: E501 +from skyapi.rest import ApiException + + +class TestTransactionVerifyRequest(unittest.TestCase): + """TransactionVerifyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTransactionVerifyRequest(self): + """Test TransactionVerifyRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.transaction_verify_request.TransactionVerifyRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_wallet_transaction_request.py b/lib/skyapi/skyapi/test/test_wallet_transaction_request.py new file mode 100644 index 00000000..c6a7a77f --- /dev/null +++ b/lib/skyapi/skyapi/test/test_wallet_transaction_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.wallet_transaction_request import WalletTransactionRequest # noqa: E501 +from skyapi.rest import ApiException + + +class TestWalletTransactionRequest(unittest.TestCase): + """WalletTransactionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWalletTransactionRequest(self): + """Test WalletTransactionRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.wallet_transaction_request.WalletTransactionRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_wallet_transaction_request_hours_selection.py b/lib/skyapi/skyapi/test/test_wallet_transaction_request_hours_selection.py new file mode 100644 index 00000000..d3ce1172 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_wallet_transaction_request_hours_selection.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.wallet_transaction_request_hours_selection import WalletTransactionRequestHoursSelection # noqa: E501 +from skyapi.rest import ApiException + + +class TestWalletTransactionRequestHoursSelection(unittest.TestCase): + """WalletTransactionRequestHoursSelection unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWalletTransactionRequestHoursSelection(self): + """Test WalletTransactionRequestHoursSelection""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.wallet_transaction_request_hours_selection.WalletTransactionRequestHoursSelection() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_wallet_transaction_request_wallet.py b/lib/skyapi/skyapi/test/test_wallet_transaction_request_wallet.py new file mode 100644 index 00000000..9e35efd1 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_wallet_transaction_request_wallet.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.wallet_transaction_request_wallet import WalletTransactionRequestWallet # noqa: E501 +from skyapi.rest import ApiException + + +class TestWalletTransactionRequestWallet(unittest.TestCase): + """WalletTransactionRequestWallet unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWalletTransactionRequestWallet(self): + """Test WalletTransactionRequestWallet""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.wallet_transaction_request_wallet.WalletTransactionRequestWallet() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/test/test_wallet_transaction_sign_request.py b/lib/skyapi/skyapi/test/test_wallet_transaction_sign_request.py new file mode 100644 index 00000000..0be6a255 --- /dev/null +++ b/lib/skyapi/skyapi/test/test_wallet_transaction_sign_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Skycoin REST API. + + Skycoin is a next-generation cryptocurrency. # noqa: E501 + + The version of the OpenAPI document: 0.27.0 + Contact: contact@skycoin.net + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest + +import skyapi +from skyapi.models.wallet_transaction_sign_request import WalletTransactionSignRequest # noqa: E501 +from skyapi.rest import ApiException + + +class TestWalletTransactionSignRequest(unittest.TestCase): + """WalletTransactionSignRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWalletTransactionSignRequest(self): + """Test WalletTransactionSignRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = skyapi.models.wallet_transaction_sign_request.WalletTransactionSignRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/lib/skyapi/skyapi/tox.ini b/lib/skyapi/skyapi/tox.ini new file mode 100644 index 00000000..3d0be613 --- /dev/null +++ b/lib/skyapi/skyapi/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py27, py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + [] diff --git a/skycoin/skycoin.py b/skycoin/skycoin.py index 4a849b68..e34bf91d 100644 --- a/skycoin/skycoin.py +++ b/skycoin/skycoin.py @@ -135,10 +135,6 @@ def SKY_params_GetUnlockedDistributionAddresses(): def SKY_params_GetLockedDistributionAddresses(): return _skycoin.SKY_params_GetLockedDistributionAddresses() SKY_params_GetLockedDistributionAddresses = _skycoin.SKY_params_GetLockedDistributionAddresses - -def SKY_coin_VerifyInputSignatures(handle, __uxIn): - return _skycoin.SKY_coin_VerifyInputSignatures(handle, __uxIn) -SKY_coin_VerifyInputSignatures = _skycoin.SKY_coin_VerifyInputSignatures class cipher_PubKey(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, cipher_PubKey, name, value) @@ -645,317 +641,265 @@ def __init__(self): GoSlice_swigregister(GoSlice) -def SKY_cli_GenerateWallet(p0, p2): - return _skycoin.SKY_cli_GenerateWallet(p0, p2) -SKY_cli_GenerateWallet = _skycoin.SKY_cli_GenerateWallet +def SKY_fee_VerifyTransactionFee(p0, p1, p2): + return _skycoin.SKY_fee_VerifyTransactionFee(p0, p1, p2) +SKY_fee_VerifyTransactionFee = _skycoin.SKY_fee_VerifyTransactionFee -def SKY_cli_MakeAlphanumericSeed(): - return _skycoin.SKY_cli_MakeAlphanumericSeed() -SKY_cli_MakeAlphanumericSeed = _skycoin.SKY_cli_MakeAlphanumericSeed +def SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2): + return _skycoin.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2) +SKY_fee_VerifyTransactionFeeForHours = _skycoin.SKY_fee_VerifyTransactionFeeForHours -def SKY_testutil_MakeAddress(p0): - return _skycoin.SKY_testutil_MakeAddress(p0) -SKY_testutil_MakeAddress = _skycoin.SKY_testutil_MakeAddress +def SKY_fee_RequiredFee(p0, p1): + return _skycoin.SKY_fee_RequiredFee(p0, p1) +SKY_fee_RequiredFee = _skycoin.SKY_fee_RequiredFee -def SKY_api_NewClient(p0): - return _skycoin.SKY_api_NewClient(p0) -SKY_api_NewClient = _skycoin.SKY_api_NewClient +def SKY_fee_RemainingHours(p0, p1): + return _skycoin.SKY_fee_RemainingHours(p0, p1) +SKY_fee_RemainingHours = _skycoin.SKY_fee_RemainingHours -def SKY_api_Client_CSRF(p0): - return _skycoin.SKY_api_Client_CSRF(p0) -SKY_api_Client_CSRF = _skycoin.SKY_api_Client_CSRF +def SKY_fee_TransactionFee(*args): + return _skycoin.SKY_fee_TransactionFee(*args) +SKY_fee_TransactionFee = _skycoin.SKY_fee_TransactionFee -def SKY_api_Client_Version(p0): - return _skycoin.SKY_api_Client_Version(p0) -SKY_api_Client_Version = _skycoin.SKY_api_Client_Version +def SKY_JsonEncode_Handle(p0): + return _skycoin.SKY_JsonEncode_Handle(p0) +SKY_JsonEncode_Handle = _skycoin.SKY_JsonEncode_Handle -def SKY_api_Client_Outputs(p0): - return _skycoin.SKY_api_Client_Outputs(p0) -SKY_api_Client_Outputs = _skycoin.SKY_api_Client_Outputs +def SKY_Handle_Progress_GetCurrent(p0): + return _skycoin.SKY_Handle_Progress_GetCurrent(p0) +SKY_Handle_Progress_GetCurrent = _skycoin.SKY_Handle_Progress_GetCurrent -def SKY_api_Client_OutputsForAddresses(p0, p1): - return _skycoin.SKY_api_Client_OutputsForAddresses(p0, p1) -SKY_api_Client_OutputsForAddresses = _skycoin.SKY_api_Client_OutputsForAddresses +def SKY_Handle_Block_GetHeadSeq(p0): + return _skycoin.SKY_Handle_Block_GetHeadSeq(p0) +SKY_Handle_Block_GetHeadSeq = _skycoin.SKY_Handle_Block_GetHeadSeq -def SKY_api_Client_OutputsForHashes(p0, p1): - return _skycoin.SKY_api_Client_OutputsForHashes(p0, p1) -SKY_api_Client_OutputsForHashes = _skycoin.SKY_api_Client_OutputsForHashes +def SKY_Handle_Block_GetHeadHash(p0): + return _skycoin.SKY_Handle_Block_GetHeadHash(p0) +SKY_Handle_Block_GetHeadHash = _skycoin.SKY_Handle_Block_GetHeadHash -def SKY_api_Client_CoinSupply(p0): - return _skycoin.SKY_api_Client_CoinSupply(p0) -SKY_api_Client_CoinSupply = _skycoin.SKY_api_Client_CoinSupply +def SKY_Handle_Block_GetPreviousBlockHash(p0): + return _skycoin.SKY_Handle_Block_GetPreviousBlockHash(p0) +SKY_Handle_Block_GetPreviousBlockHash = _skycoin.SKY_Handle_Block_GetPreviousBlockHash -def SKY_api_Client_BlockByHash(p0, p1): - return _skycoin.SKY_api_Client_BlockByHash(p0, p1) -SKY_api_Client_BlockByHash = _skycoin.SKY_api_Client_BlockByHash +def SKY_Handle_Blocks_GetAt(p0, p1): + return _skycoin.SKY_Handle_Blocks_GetAt(p0, p1) +SKY_Handle_Blocks_GetAt = _skycoin.SKY_Handle_Blocks_GetAt -def SKY_api_Client_BlockBySeq(p0, p1): - return _skycoin.SKY_api_Client_BlockBySeq(p0, p1) -SKY_api_Client_BlockBySeq = _skycoin.SKY_api_Client_BlockBySeq +def SKY_Handle_Blocks_GetCount(p0): + return _skycoin.SKY_Handle_Blocks_GetCount(p0) +SKY_Handle_Blocks_GetCount = _skycoin.SKY_Handle_Blocks_GetCount -def SKY_api_Client_Blocks(p0, p1): - return _skycoin.SKY_api_Client_Blocks(p0, p1) -SKY_api_Client_Blocks = _skycoin.SKY_api_Client_Blocks +def SKY_Handle_Connections_GetCount(p0): + return _skycoin.SKY_Handle_Connections_GetCount(p0) +SKY_Handle_Connections_GetCount = _skycoin.SKY_Handle_Connections_GetCount -def SKY_api_Client_LastBlocks(p0, p1): - return _skycoin.SKY_api_Client_LastBlocks(p0, p1) -SKY_api_Client_LastBlocks = _skycoin.SKY_api_Client_LastBlocks +def SKY_Handle_Strings_GetCount(p0): + return _skycoin.SKY_Handle_Strings_GetCount(p0) +SKY_Handle_Strings_GetCount = _skycoin.SKY_Handle_Strings_GetCount -def SKY_api_Client_BlockchainMetadata(p0): - return _skycoin.SKY_api_Client_BlockchainMetadata(p0) -SKY_api_Client_BlockchainMetadata = _skycoin.SKY_api_Client_BlockchainMetadata +def SKY_Handle_Strings_Sort(p0): + return _skycoin.SKY_Handle_Strings_Sort(p0) +SKY_Handle_Strings_Sort = _skycoin.SKY_Handle_Strings_Sort -def SKY_api_Client_BlockchainProgress(p0): - return _skycoin.SKY_api_Client_BlockchainProgress(p0) -SKY_api_Client_BlockchainProgress = _skycoin.SKY_api_Client_BlockchainProgress +def SKY_Handle_Strings_GetAt(p0, p1): + return _skycoin.SKY_Handle_Strings_GetAt(p0, p1) +SKY_Handle_Strings_GetAt = _skycoin.SKY_Handle_Strings_GetAt -def SKY_api_Client_Balance(p0, p1, p2): - return _skycoin.SKY_api_Client_Balance(p0, p1, p2) -SKY_api_Client_Balance = _skycoin.SKY_api_Client_Balance +def SKY_api_Handle_Client_GetWalletDir(p0): + return _skycoin.SKY_api_Handle_Client_GetWalletDir(p0) +SKY_api_Handle_Client_GetWalletDir = _skycoin.SKY_api_Handle_Client_GetWalletDir -def SKY_api_Client_UxOut(p0, p1): - return _skycoin.SKY_api_Client_UxOut(p0, p1) -SKY_api_Client_UxOut = _skycoin.SKY_api_Client_UxOut +def SKY_api_Handle_Client_GetWalletFileName(p0): + return _skycoin.SKY_api_Handle_Client_GetWalletFileName(p0) +SKY_api_Handle_Client_GetWalletFileName = _skycoin.SKY_api_Handle_Client_GetWalletFileName -def SKY_api_Client_AddressUxOuts(p0, p1): - return _skycoin.SKY_api_Client_AddressUxOuts(p0, p1) -SKY_api_Client_AddressUxOuts = _skycoin.SKY_api_Client_AddressUxOuts +def SKY_api_Handle_Client_GetWalletLabel(p0): + return _skycoin.SKY_api_Handle_Client_GetWalletLabel(p0) +SKY_api_Handle_Client_GetWalletLabel = _skycoin.SKY_api_Handle_Client_GetWalletLabel -def SKY_api_Client_Wallet(p0, p1): - return _skycoin.SKY_api_Client_Wallet(p0, p1) -SKY_api_Client_Wallet = _skycoin.SKY_api_Client_Wallet +def SKY_api_Handle_Client_GetWalletFullPath(p0, p1): + return _skycoin.SKY_api_Handle_Client_GetWalletFullPath(p0, p1) +SKY_api_Handle_Client_GetWalletFullPath = _skycoin.SKY_api_Handle_Client_GetWalletFullPath -def SKY_api_Client_Wallets(p0): - return _skycoin.SKY_api_Client_Wallets(p0) -SKY_api_Client_Wallets = _skycoin.SKY_api_Client_Wallets +def SKY_api_Handle_GetWalletMeta(p0): + return _skycoin.SKY_api_Handle_GetWalletMeta(p0) +SKY_api_Handle_GetWalletMeta = _skycoin.SKY_api_Handle_GetWalletMeta -def SKY_api_Client_CreateUnencryptedWallet(p0, p1, p2, p3): - return _skycoin.SKY_api_Client_CreateUnencryptedWallet(p0, p1, p2, p3) -SKY_api_Client_CreateUnencryptedWallet = _skycoin.SKY_api_Client_CreateUnencryptedWallet +def SKY_api_Handle_GetWalletEntriesCount(p0): + return _skycoin.SKY_api_Handle_GetWalletEntriesCount(p0) +SKY_api_Handle_GetWalletEntriesCount = _skycoin.SKY_api_Handle_GetWalletEntriesCount -def SKY_api_Client_CreateEncryptedWallet(p0, p1, p2, p3, p4): - return _skycoin.SKY_api_Client_CreateEncryptedWallet(p0, p1, p2, p3, p4) -SKY_api_Client_CreateEncryptedWallet = _skycoin.SKY_api_Client_CreateEncryptedWallet +def SKY_api_Handle_Client_GetWalletResponseEntriesCount(p0): + return _skycoin.SKY_api_Handle_Client_GetWalletResponseEntriesCount(p0) +SKY_api_Handle_Client_GetWalletResponseEntriesCount = _skycoin.SKY_api_Handle_Client_GetWalletResponseEntriesCount -def SKY_api_Client_NewWalletAddress(p0, p1, p2, p3): - return _skycoin.SKY_api_Client_NewWalletAddress(p0, p1, p2, p3) -SKY_api_Client_NewWalletAddress = _skycoin.SKY_api_Client_NewWalletAddress +def SKY_api_Handle_WalletGetEntry(p0, p1, p2, p3): + return _skycoin.SKY_api_Handle_WalletGetEntry(p0, p1, p2, p3) +SKY_api_Handle_WalletGetEntry = _skycoin.SKY_api_Handle_WalletGetEntry -def SKY_api_Client_WalletBalance(p0, p1, p2): - return _skycoin.SKY_api_Client_WalletBalance(p0, p1, p2) -SKY_api_Client_WalletBalance = _skycoin.SKY_api_Client_WalletBalance +def SKY_api_Handle_WalletResponseGetEntry(p0, p1): + return _skycoin.SKY_api_Handle_WalletResponseGetEntry(p0, p1) +SKY_api_Handle_WalletResponseGetEntry = _skycoin.SKY_api_Handle_WalletResponseGetEntry -def SKY_api_Client_Spend(p0, p1, p2, p3, p4): - return _skycoin.SKY_api_Client_Spend(p0, p1, p2, p3, p4) -SKY_api_Client_Spend = _skycoin.SKY_api_Client_Spend +def SKY_api_Handle_WalletResponseIsEncrypted(p0): + return _skycoin.SKY_api_Handle_WalletResponseIsEncrypted(p0) +SKY_api_Handle_WalletResponseIsEncrypted = _skycoin.SKY_api_Handle_WalletResponseIsEncrypted -def SKY_api_Client_CreateTransaction(p0): - return _skycoin.SKY_api_Client_CreateTransaction(p0) -SKY_api_Client_CreateTransaction = _skycoin.SKY_api_Client_CreateTransaction +def SKY_api_Handle_WalletResponseGetCryptoType(p0): + return _skycoin.SKY_api_Handle_WalletResponseGetCryptoType(p0) +SKY_api_Handle_WalletResponseGetCryptoType = _skycoin.SKY_api_Handle_WalletResponseGetCryptoType -def SKY_api_Client_UpdateWallet(p0, p1, p2): - return _skycoin.SKY_api_Client_UpdateWallet(p0, p1, p2) -SKY_api_Client_UpdateWallet = _skycoin.SKY_api_Client_UpdateWallet +def SKY_api_Handle_WalletsResponseGetCount(p0): + return _skycoin.SKY_api_Handle_WalletsResponseGetCount(p0) +SKY_api_Handle_WalletsResponseGetCount = _skycoin.SKY_api_Handle_WalletsResponseGetCount -def SKY_api_Client_WalletFolderName(p0): - return _skycoin.SKY_api_Client_WalletFolderName(p0) -SKY_api_Client_WalletFolderName = _skycoin.SKY_api_Client_WalletFolderName +def SKY_api_Handle_WalletsResponseGetAt(p0, p1): + return _skycoin.SKY_api_Handle_WalletsResponseGetAt(p0, p1) +SKY_api_Handle_WalletsResponseGetAt = _skycoin.SKY_api_Handle_WalletsResponseGetAt -def SKY_api_Client_NewSeed(p0, p1): - return _skycoin.SKY_api_Client_NewSeed(p0, p1) -SKY_api_Client_NewSeed = _skycoin.SKY_api_Client_NewSeed +def SKY_api_Handle_GetWalletFolderAddress(p0): + return _skycoin.SKY_api_Handle_GetWalletFolderAddress(p0) +SKY_api_Handle_GetWalletFolderAddress = _skycoin.SKY_api_Handle_GetWalletFolderAddress -def SKY_api_Client_WalletSeed(p0, p1, p2): - return _skycoin.SKY_api_Client_WalletSeed(p0, p1, p2) -SKY_api_Client_WalletSeed = _skycoin.SKY_api_Client_WalletSeed +def SKY_api_Handle_GetWalletSeed(p0): + return _skycoin.SKY_api_Handle_GetWalletSeed(p0) +SKY_api_Handle_GetWalletSeed = _skycoin.SKY_api_Handle_GetWalletSeed -def SKY_api_Client_NetworkConnection(p0, p1): - return _skycoin.SKY_api_Client_NetworkConnection(p0, p1) -SKY_api_Client_NetworkConnection = _skycoin.SKY_api_Client_NetworkConnection +def SKY_api_Handle_GetWalletLastSeed(p0): + return _skycoin.SKY_api_Handle_GetWalletLastSeed(p0) +SKY_api_Handle_GetWalletLastSeed = _skycoin.SKY_api_Handle_GetWalletLastSeed -def SKY_api_Client_NetworkConnections(p0, p1): - return _skycoin.SKY_api_Client_NetworkConnections(p0, p1) -SKY_api_Client_NetworkConnections = _skycoin.SKY_api_Client_NetworkConnections +def SKY_api_Handle_GetBuildInfoData(p0): + return _skycoin.SKY_api_Handle_GetBuildInfoData(p0) +SKY_api_Handle_GetBuildInfoData = _skycoin.SKY_api_Handle_GetBuildInfoData -def SKY_api_Client_NetworkDefaultPeers(p0): - return _skycoin.SKY_api_Client_NetworkDefaultPeers(p0) -SKY_api_Client_NetworkDefaultPeers = _skycoin.SKY_api_Client_NetworkDefaultPeers +def SKY_httphelper_Address_UnmarshalJSON(p0, p1): + return _skycoin.SKY_httphelper_Address_UnmarshalJSON(p0, p1) +SKY_httphelper_Address_UnmarshalJSON = _skycoin.SKY_httphelper_Address_UnmarshalJSON -def SKY_api_Client_NetworkTrustedPeers(p0): - return _skycoin.SKY_api_Client_NetworkTrustedPeers(p0) -SKY_api_Client_NetworkTrustedPeers = _skycoin.SKY_api_Client_NetworkTrustedPeers +def SKY_httphelper_Address_MarshalJSON(p0): + return _skycoin.SKY_httphelper_Address_MarshalJSON(p0) +SKY_httphelper_Address_MarshalJSON = _skycoin.SKY_httphelper_Address_MarshalJSON -def SKY_api_Client_NetworkExchangedPeers(p0): - return _skycoin.SKY_api_Client_NetworkExchangedPeers(p0) -SKY_api_Client_NetworkExchangedPeers = _skycoin.SKY_api_Client_NetworkExchangedPeers +def SKY_httphelper_Coins_UnmarshalJSON(p1): + return _skycoin.SKY_httphelper_Coins_UnmarshalJSON(p1) +SKY_httphelper_Coins_UnmarshalJSON = _skycoin.SKY_httphelper_Coins_UnmarshalJSON -def SKY_api_Client_PendingTransactions(p0): - return _skycoin.SKY_api_Client_PendingTransactions(p0) -SKY_api_Client_PendingTransactions = _skycoin.SKY_api_Client_PendingTransactions +def SKY_httphelper_Coins_MarshalJSON(): + return _skycoin.SKY_httphelper_Coins_MarshalJSON() +SKY_httphelper_Coins_MarshalJSON = _skycoin.SKY_httphelper_Coins_MarshalJSON -def SKY_api_Client_Transaction(p0, p1): - return _skycoin.SKY_api_Client_Transaction(p0, p1) -SKY_api_Client_Transaction = _skycoin.SKY_api_Client_Transaction +def SKY_httphelper_Coins_Value(): + return _skycoin.SKY_httphelper_Coins_Value() +SKY_httphelper_Coins_Value = _skycoin.SKY_httphelper_Coins_Value -def SKY_api_Client_Transactions(p0, p1): - return _skycoin.SKY_api_Client_Transactions(p0, p1) -SKY_api_Client_Transactions = _skycoin.SKY_api_Client_Transactions +def SKY_httphelper_Hours_UnmarshalJSON(p1): + return _skycoin.SKY_httphelper_Hours_UnmarshalJSON(p1) +SKY_httphelper_Hours_UnmarshalJSON = _skycoin.SKY_httphelper_Hours_UnmarshalJSON -def SKY_api_Client_ConfirmedTransactions(p0, p1): - return _skycoin.SKY_api_Client_ConfirmedTransactions(p0, p1) -SKY_api_Client_ConfirmedTransactions = _skycoin.SKY_api_Client_ConfirmedTransactions +def SKY_httphelper_Hours_MarshalJSON(): + return _skycoin.SKY_httphelper_Hours_MarshalJSON() +SKY_httphelper_Hours_MarshalJSON = _skycoin.SKY_httphelper_Hours_MarshalJSON -def SKY_api_Client_UnconfirmedTransactions(p0, p1): - return _skycoin.SKY_api_Client_UnconfirmedTransactions(p0, p1) -SKY_api_Client_UnconfirmedTransactions = _skycoin.SKY_api_Client_UnconfirmedTransactions +def SKY_httphelper_Hours_Value(): + return _skycoin.SKY_httphelper_Hours_Value() +SKY_httphelper_Hours_Value = _skycoin.SKY_httphelper_Hours_Value -def SKY_api_Client_InjectTransaction(p0, p1): - return _skycoin.SKY_api_Client_InjectTransaction(p0, p1) -SKY_api_Client_InjectTransaction = _skycoin.SKY_api_Client_InjectTransaction +def SKY_util_AddUint64(p0, p1): + return _skycoin.SKY_util_AddUint64(p0, p1) +SKY_util_AddUint64 = _skycoin.SKY_util_AddUint64 -def SKY_api_Client_ResendUnconfirmedTransactions(p0): - return _skycoin.SKY_api_Client_ResendUnconfirmedTransactions(p0) -SKY_api_Client_ResendUnconfirmedTransactions = _skycoin.SKY_api_Client_ResendUnconfirmedTransactions +def SKY_util_Uint64ToInt64(p0): + return _skycoin.SKY_util_Uint64ToInt64(p0) +SKY_util_Uint64ToInt64 = _skycoin.SKY_util_Uint64ToInt64 -def SKY_api_Client_RawTransaction(p0, p1): - return _skycoin.SKY_api_Client_RawTransaction(p0, p1) -SKY_api_Client_RawTransaction = _skycoin.SKY_api_Client_RawTransaction +def SKY_util_Int64ToUint64(p0): + return _skycoin.SKY_util_Int64ToUint64(p0) +SKY_util_Int64ToUint64 = _skycoin.SKY_util_Int64ToUint64 -def SKY_api_Client_AddressTransactions(p0, p1): - return _skycoin.SKY_api_Client_AddressTransactions(p0, p1) -SKY_api_Client_AddressTransactions = _skycoin.SKY_api_Client_AddressTransactions +def SKY_util_IntToUint32(p0): + return _skycoin.SKY_util_IntToUint32(p0) +SKY_util_IntToUint32 = _skycoin.SKY_util_IntToUint32 -def SKY_api_Client_Richlist(p0, p1): - return _skycoin.SKY_api_Client_Richlist(p0, p1) -SKY_api_Client_Richlist = _skycoin.SKY_api_Client_Richlist - -def SKY_api_Client_AddressCount(p0): - return _skycoin.SKY_api_Client_AddressCount(p0) -SKY_api_Client_AddressCount = _skycoin.SKY_api_Client_AddressCount - -def SKY_api_Client_UnloadWallet(p0, p1): - return _skycoin.SKY_api_Client_UnloadWallet(p0, p1) -SKY_api_Client_UnloadWallet = _skycoin.SKY_api_Client_UnloadWallet - -def SKY_api_Client_Health(p0): - return _skycoin.SKY_api_Client_Health(p0) -SKY_api_Client_Health = _skycoin.SKY_api_Client_Health - -def SKY_api_Client_EncryptWallet(p0, p1, p2): - return _skycoin.SKY_api_Client_EncryptWallet(p0, p1, p2) -SKY_api_Client_EncryptWallet = _skycoin.SKY_api_Client_EncryptWallet - -def SKY_api_Client_DecryptWallet(p0, p1, p2): - return _skycoin.SKY_api_Client_DecryptWallet(p0, p1, p2) -SKY_api_Client_DecryptWallet = _skycoin.SKY_api_Client_DecryptWallet - -def SKY_api_NewCreateTransactionResponse(p0, p1): - return _skycoin.SKY_api_NewCreateTransactionResponse(p0, p1) -SKY_api_NewCreateTransactionResponse = _skycoin.SKY_api_NewCreateTransactionResponse - -def SKY_api_NewCreatedTransaction(p0, p1): - return _skycoin.SKY_api_NewCreatedTransaction(p0, p1) -SKY_api_NewCreatedTransaction = _skycoin.SKY_api_NewCreatedTransaction - -def SKY_api_CreatedTransaction_ToTransaction(p0): - return _skycoin.SKY_api_CreatedTransaction_ToTransaction(p0) -SKY_api_CreatedTransaction_ToTransaction = _skycoin.SKY_api_CreatedTransaction_ToTransaction - -def SKY_api_NewCreatedTransactionOutput(p0, p1): - return _skycoin.SKY_api_NewCreatedTransactionOutput(p0, p1) -SKY_api_NewCreatedTransactionOutput = _skycoin.SKY_api_NewCreatedTransactionOutput - -def SKY_api_NewCreatedTransactionInput(p0): - return _skycoin.SKY_api_NewCreatedTransactionInput(p0) -SKY_api_NewCreatedTransactionInput = _skycoin.SKY_api_NewCreatedTransactionInput - -def SKY_api_NewWalletResponse(p0): - return _skycoin.SKY_api_NewWalletResponse(p0) -SKY_api_NewWalletResponse = _skycoin.SKY_api_NewWalletResponse - -def SKY_webrpc_NewClient(p0): - return _skycoin.SKY_webrpc_NewClient(p0) -SKY_webrpc_NewClient = _skycoin.SKY_webrpc_NewClient - -def SKY_webrpc_Client_CSRF(p0): - return _skycoin.SKY_webrpc_Client_CSRF(p0) -SKY_webrpc_Client_CSRF = _skycoin.SKY_webrpc_Client_CSRF +def SKY_cli_AddPrivateKey(p0, p1): + return _skycoin.SKY_cli_AddPrivateKey(p0, p1) +SKY_cli_AddPrivateKey = _skycoin.SKY_cli_AddPrivateKey -def SKY_webrpc_Client_InjectTransaction(p0, p1): - return _skycoin.SKY_webrpc_Client_InjectTransaction(p0, p1) -SKY_webrpc_Client_InjectTransaction = _skycoin.SKY_webrpc_Client_InjectTransaction +def SKY_cli_AddPrivateKeyToFile(p0, p1, p2): + return _skycoin.SKY_cli_AddPrivateKeyToFile(p0, p1, p2) +SKY_cli_AddPrivateKeyToFile = _skycoin.SKY_cli_AddPrivateKeyToFile -def SKY_webrpc_Client_GetStatus(p0): - return _skycoin.SKY_webrpc_Client_GetStatus(p0) -SKY_webrpc_Client_GetStatus = _skycoin.SKY_webrpc_Client_GetStatus +def SKY_wallet_CreateOptionsHandle(p0, p1, p2, p3, p4, p5, p6): + return _skycoin.SKY_wallet_CreateOptionsHandle(p0, p1, p2, p3, p4, p5, p6) +SKY_wallet_CreateOptionsHandle = _skycoin.SKY_wallet_CreateOptionsHandle -def SKY_webrpc_Client_GetTransactionByID(p0, p1): - return _skycoin.SKY_webrpc_Client_GetTransactionByID(p0, p1) -SKY_webrpc_Client_GetTransactionByID = _skycoin.SKY_webrpc_Client_GetTransactionByID +def SKY_wallet_Entry_Verify(p0): + return _skycoin.SKY_wallet_Entry_Verify(p0) +SKY_wallet_Entry_Verify = _skycoin.SKY_wallet_Entry_Verify -def SKY_webrpc_Client_GetAddressUxOuts(p0, p1): - return _skycoin.SKY_webrpc_Client_GetAddressUxOuts(p0, p1) -SKY_webrpc_Client_GetAddressUxOuts = _skycoin.SKY_webrpc_Client_GetAddressUxOuts +def SKY_wallet_Entry_VerifyPublic(p0): + return _skycoin.SKY_wallet_Entry_VerifyPublic(p0) +SKY_wallet_Entry_VerifyPublic = _skycoin.SKY_wallet_Entry_VerifyPublic -def SKY_webrpc_Client_GetBlocksInRange(p0, p1, p2): - return _skycoin.SKY_webrpc_Client_GetBlocksInRange(p0, p1, p2) -SKY_webrpc_Client_GetBlocksInRange = _skycoin.SKY_webrpc_Client_GetBlocksInRange +def SKY_logging_EnableColors(): + return _skycoin.SKY_logging_EnableColors() +SKY_logging_EnableColors = _skycoin.SKY_logging_EnableColors -def SKY_webrpc_Client_GetBlocksBySeq(p0, p1): - return _skycoin.SKY_webrpc_Client_GetBlocksBySeq(p0, p1) -SKY_webrpc_Client_GetBlocksBySeq = _skycoin.SKY_webrpc_Client_GetBlocksBySeq +def SKY_logging_DisableColors(): + return _skycoin.SKY_logging_DisableColors() +SKY_logging_DisableColors = _skycoin.SKY_logging_DisableColors -def SKY_webrpc_Client_GetLastBlocks(p0, p1): - return _skycoin.SKY_webrpc_Client_GetLastBlocks(p0, p1) -SKY_webrpc_Client_GetLastBlocks = _skycoin.SKY_webrpc_Client_GetLastBlocks +def SKY_logging_Disable(): + return _skycoin.SKY_logging_Disable() +SKY_logging_Disable = _skycoin.SKY_logging_Disable -def SKY_cipher_DecodeBase58Address(p0, p1): - return _skycoin.SKY_cipher_DecodeBase58Address(p0, p1) -SKY_cipher_DecodeBase58Address = _skycoin.SKY_cipher_DecodeBase58Address +def SKY_cli_CLI_Run(p0): + return _skycoin.SKY_cli_CLI_Run(p0) +SKY_cli_CLI_Run = _skycoin.SKY_cli_CLI_Run -def SKY_cipher_AddressFromBytes(p0, p1): - return _skycoin.SKY_cipher_AddressFromBytes(p0, p1) -SKY_cipher_AddressFromBytes = _skycoin.SKY_cipher_AddressFromBytes +def SKY_cli_Config_GetCoin(p0): + return _skycoin.SKY_cli_Config_GetCoin(p0) +SKY_cli_Config_GetCoin = _skycoin.SKY_cli_Config_GetCoin -def SKY_cipher_AddressFromPubKey(p0, p1): - return _skycoin.SKY_cipher_AddressFromPubKey(p0, p1) -SKY_cipher_AddressFromPubKey = _skycoin.SKY_cipher_AddressFromPubKey +def SKY_cli_Config_GetRPCAddress(p0): + return _skycoin.SKY_cli_Config_GetRPCAddress(p0) +SKY_cli_Config_GetRPCAddress = _skycoin.SKY_cli_Config_GetRPCAddress -def SKY_cipher_AddressFromSecKey(p0, p1): - return _skycoin.SKY_cipher_AddressFromSecKey(p0, p1) -SKY_cipher_AddressFromSecKey = _skycoin.SKY_cipher_AddressFromSecKey +def SKY_cli_Getenv(p0): + return _skycoin.SKY_cli_Getenv(p0) +SKY_cli_Getenv = _skycoin.SKY_cli_Getenv -def SKY_cipher_Address_Null(p0): - return _skycoin.SKY_cipher_Address_Null(p0) -SKY_cipher_Address_Null = _skycoin.SKY_cipher_Address_Null +def SKY_cli_Setenv(p0, p1): + return _skycoin.SKY_cli_Setenv(p0, p1) +SKY_cli_Setenv = _skycoin.SKY_cli_Setenv -def SKY_cipher_Address_Bytes(p0): - return _skycoin.SKY_cipher_Address_Bytes(p0) -SKY_cipher_Address_Bytes = _skycoin.SKY_cipher_Address_Bytes +def SKY_wallet_NewBalance(p0, p1, p2): + return _skycoin.SKY_wallet_NewBalance(p0, p1, p2) +SKY_wallet_NewBalance = _skycoin.SKY_wallet_NewBalance -def SKY_cipher_Address_Verify(p0, p1): - return _skycoin.SKY_cipher_Address_Verify(p0, p1) -SKY_cipher_Address_Verify = _skycoin.SKY_cipher_Address_Verify +def SKY_wallet_NewBalanceFromUxOut(p0, p1, p2): + return _skycoin.SKY_wallet_NewBalanceFromUxOut(p0, p1, p2) +SKY_wallet_NewBalanceFromUxOut = _skycoin.SKY_wallet_NewBalanceFromUxOut -def SKY_cipher_Address_String(p0): - return _skycoin.SKY_cipher_Address_String(p0) -SKY_cipher_Address_String = _skycoin.SKY_cipher_Address_String +def SKY_wallet_Balance_Add(p0, p1, p2): + return _skycoin.SKY_wallet_Balance_Add(p0, p1, p2) +SKY_wallet_Balance_Add = _skycoin.SKY_wallet_Balance_Add -def SKY_cipher_Address_Checksum(p0, p1): - return _skycoin.SKY_cipher_Address_Checksum(p0, p1) -SKY_cipher_Address_Checksum = _skycoin.SKY_cipher_Address_Checksum +def SKY_wallet_Balance_Sub(p0, p1, p2): + return _skycoin.SKY_wallet_Balance_Sub(p0, p1, p2) +SKY_wallet_Balance_Sub = _skycoin.SKY_wallet_Balance_Sub -def SKY_base58_Hex2Base58(p0): - return _skycoin.SKY_base58_Hex2Base58(p0) -SKY_base58_Hex2Base58 = _skycoin.SKY_base58_Hex2Base58 +def SKY_wallet_Balance_Equals(p0, p1): + return _skycoin.SKY_wallet_Balance_Equals(p0, p1) +SKY_wallet_Balance_Equals = _skycoin.SKY_wallet_Balance_Equals -def SKY_base58_Encode(p0): - return _skycoin.SKY_base58_Encode(p0) -SKY_base58_Encode = _skycoin.SKY_base58_Encode +def SKY_wallet_Balance_IsZero(p0): + return _skycoin.SKY_wallet_Balance_IsZero(p0) +SKY_wallet_Balance_IsZero = _skycoin.SKY_wallet_Balance_IsZero -def SKY_base58_Decode(p0): - return _skycoin.SKY_base58_Decode(p0) -SKY_base58_Decode = _skycoin.SKY_base58_Decode +def SKY_certutil_NewTLSCertPair(p0, p1, p2): + return _skycoin.SKY_certutil_NewTLSCertPair(p0, p1, p2) +SKY_certutil_NewTLSCertPair = _skycoin.SKY_certutil_NewTLSCertPair def SKY_cipher_DecodeBase58BitcoinAddress(p0, p1): return _skycoin.SKY_cipher_DecodeBase58BitcoinAddress(p0, p1) @@ -1001,6 +945,74 @@ def SKY_cipher_BitcoinAddress_Checksum(p0, p1): return _skycoin.SKY_cipher_BitcoinAddress_Checksum(p0, p1) SKY_cipher_BitcoinAddress_Checksum = _skycoin.SKY_cipher_BitcoinAddress_Checksum +def SKY_transaction_ChooseSpendsMaximizeUxOuts(p0, p1, p2): + return _skycoin.SKY_transaction_ChooseSpendsMaximizeUxOuts(p0, p1, p2) +SKY_transaction_ChooseSpendsMaximizeUxOuts = _skycoin.SKY_transaction_ChooseSpendsMaximizeUxOuts + +def SKY_transaction_ChooseSpendsMinimizeUxOuts(p0, p1, p2): + return _skycoin.SKY_transaction_ChooseSpendsMinimizeUxOuts(p0, p1, p2) +SKY_transaction_ChooseSpendsMinimizeUxOuts = _skycoin.SKY_transaction_ChooseSpendsMinimizeUxOuts + +def SKY_transaction_NewUxBalance(p0, p1, p2): + return _skycoin.SKY_transaction_NewUxBalance(p0, p1, p2) +SKY_transaction_NewUxBalance = _skycoin.SKY_transaction_NewUxBalance + +def SKY_transaction_NewUxBalances(p0): + return _skycoin.SKY_transaction_NewUxBalances(p0) +SKY_transaction_NewUxBalances = _skycoin.SKY_transaction_NewUxBalances + +def SKY_cli_GenerateWallet(p0, p2): + return _skycoin.SKY_cli_GenerateWallet(p0, p2) +SKY_cli_GenerateWallet = _skycoin.SKY_cli_GenerateWallet + +def SKY_cli_MakeAlphanumericSeed(): + return _skycoin.SKY_cli_MakeAlphanumericSeed() +SKY_cli_MakeAlphanumericSeed = _skycoin.SKY_cli_MakeAlphanumericSeed + +def SKY_testutil_MakeAddress(p0): + return _skycoin.SKY_testutil_MakeAddress(p0) +SKY_testutil_MakeAddress = _skycoin.SKY_testutil_MakeAddress + +def SKY_cli_LoadConfig(): + return _skycoin.SKY_cli_LoadConfig() +SKY_cli_LoadConfig = _skycoin.SKY_cli_LoadConfig + +def SKY_cli_Config_FullWalletPath(p0): + return _skycoin.SKY_cli_Config_FullWalletPath(p0) +SKY_cli_Config_FullWalletPath = _skycoin.SKY_cli_Config_FullWalletPath + +def SKY_cli_Config_FullDBPath(p0): + return _skycoin.SKY_cli_Config_FullDBPath(p0) +SKY_cli_Config_FullDBPath = _skycoin.SKY_cli_Config_FullDBPath + +def SKY_cli_NewCLI(p0): + return _skycoin.SKY_cli_NewCLI(p0) +SKY_cli_NewCLI = _skycoin.SKY_cli_NewCLI + +def SKY_cli_NewPasswordReader(p0): + return _skycoin.SKY_cli_NewPasswordReader(p0) +SKY_cli_NewPasswordReader = _skycoin.SKY_cli_NewPasswordReader + +def SKY_cli_PasswordFromBytes_Password(): + return _skycoin.SKY_cli_PasswordFromBytes_Password() +SKY_cli_PasswordFromBytes_Password = _skycoin.SKY_cli_PasswordFromBytes_Password + +def SKY_cli_PasswordFromTerm_Password(): + return _skycoin.SKY_cli_PasswordFromTerm_Password() +SKY_cli_PasswordFromTerm_Password = _skycoin.SKY_cli_PasswordFromTerm_Password + +def SKY_apputil_CatchInterruptPanic(): + return _skycoin.SKY_apputil_CatchInterruptPanic() +SKY_apputil_CatchInterruptPanic = _skycoin.SKY_apputil_CatchInterruptPanic + +def SKY_apputil_CatchDebug(): + return _skycoin.SKY_apputil_CatchDebug() +SKY_apputil_CatchDebug = _skycoin.SKY_apputil_CatchDebug + +def SKY_apputil_PrintProgramStatus(): + return _skycoin.SKY_apputil_PrintProgramStatus() +SKY_apputil_PrintProgramStatus = _skycoin.SKY_apputil_PrintProgramStatus + def SKY_cipher_RandByte(p0): return _skycoin.SKY_cipher_RandByte(p0) SKY_cipher_RandByte = _skycoin.SKY_cipher_RandByte @@ -1073,10 +1085,6 @@ def SKY_cipher_VerifyAddressSignedHash(p0, p1, p2): return _skycoin.SKY_cipher_VerifyAddressSignedHash(p0, p1, p2) SKY_cipher_VerifyAddressSignedHash = _skycoin.SKY_cipher_VerifyAddressSignedHash -def SKY_cipher_VerifySignedHash(p0, p1): - return _skycoin.SKY_cipher_VerifySignedHash(p0, p1) -SKY_cipher_VerifySignedHash = _skycoin.SKY_cipher_VerifySignedHash - def SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2): return _skycoin.SKY_cipher_VerifyPubKeySignedHash(p0, p1, p2) SKY_cipher_VerifyPubKeySignedHash = _skycoin.SKY_cipher_VerifyPubKeySignedHash @@ -1109,181 +1117,53 @@ def SKY_cipher_CheckSecKeyHash(p0, p1): return _skycoin.SKY_cipher_CheckSecKeyHash(p0, p1) SKY_cipher_CheckSecKeyHash = _skycoin.SKY_cipher_CheckSecKeyHash -def SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2): - return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2) -SKY_encrypt_ScryptChacha20poly1305_Encrypt = _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt +def SKY_secp256k1_PubkeyFromSeckey(p0): + return _skycoin.SKY_secp256k1_PubkeyFromSeckey(p0) +SKY_secp256k1_PubkeyFromSeckey = _skycoin.SKY_secp256k1_PubkeyFromSeckey -def SKY_encrypt_ScryptChacha20poly1305_Decrypt(p0, p1, p2): - return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt(p0, p1, p2) -SKY_encrypt_ScryptChacha20poly1305_Decrypt = _skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt +def SKY_secp256k1_VerifyPubkey(p0): + return _skycoin.SKY_secp256k1_VerifyPubkey(p0) +SKY_secp256k1_VerifyPubkey = _skycoin.SKY_secp256k1_VerifyPubkey -def SKY_bip39_NewDefaultMnemomic(): - return _skycoin.SKY_bip39_NewDefaultMnemomic() -SKY_bip39_NewDefaultMnemomic = _skycoin.SKY_bip39_NewDefaultMnemomic +def SKY_secp256k1_VerifySecKey(p0): + return _skycoin.SKY_secp256k1_VerifySecKey(p0) +SKY_secp256k1_VerifySecKey = _skycoin.SKY_secp256k1_VerifySecKey -def SKY_bip39_NewEntropy(p0): - return _skycoin.SKY_bip39_NewEntropy(p0) -SKY_bip39_NewEntropy = _skycoin.SKY_bip39_NewEntropy +def SKY_secp256k1_ECDH(p0, p1): + return _skycoin.SKY_secp256k1_ECDH(p0, p1) +SKY_secp256k1_ECDH = _skycoin.SKY_secp256k1_ECDH -def SKY_bip39_NewMnemonic(p0): - return _skycoin.SKY_bip39_NewMnemonic(p0) -SKY_bip39_NewMnemonic = _skycoin.SKY_bip39_NewMnemonic +def SKY_file_InitDataDir(p0): + return _skycoin.SKY_file_InitDataDir(p0) +SKY_file_InitDataDir = _skycoin.SKY_file_InitDataDir -def SKY_bip39_MnemonicToByteArray(p0): - return _skycoin.SKY_bip39_MnemonicToByteArray(p0) -SKY_bip39_MnemonicToByteArray = _skycoin.SKY_bip39_MnemonicToByteArray +def SKY_file_UserHome(): + return _skycoin.SKY_file_UserHome() +SKY_file_UserHome = _skycoin.SKY_file_UserHome -def SKY_bip39_IsMnemonicValid(p0): - return _skycoin.SKY_bip39_IsMnemonicValid(p0) -SKY_bip39_IsMnemonicValid = _skycoin.SKY_bip39_IsMnemonicValid +def SKY_file_ResolveResourceDirectory(p0): + return _skycoin.SKY_file_ResolveResourceDirectory(p0) +SKY_file_ResolveResourceDirectory = _skycoin.SKY_file_ResolveResourceDirectory -def SKY_cipher_Ripemd160_Set(p0, p1): - return _skycoin.SKY_cipher_Ripemd160_Set(p0, p1) -SKY_cipher_Ripemd160_Set = _skycoin.SKY_cipher_Ripemd160_Set +def SKY_file_DetermineResourcePath(p0, p1, p2): + return _skycoin.SKY_file_DetermineResourcePath(p0, p1, p2) +SKY_file_DetermineResourcePath = _skycoin.SKY_file_DetermineResourcePath -def SKY_cipher_HashRipemd160(p0, p1): - return _skycoin.SKY_cipher_HashRipemd160(p0, p1) -SKY_cipher_HashRipemd160 = _skycoin.SKY_cipher_HashRipemd160 +def SKY_api_NewWalletResponse(p0): + return _skycoin.SKY_api_NewWalletResponse(p0) +SKY_api_NewWalletResponse = _skycoin.SKY_api_NewWalletResponse -def SKY_cipher_SHA256_Set(p0, p1): - return _skycoin.SKY_cipher_SHA256_Set(p0, p1) -SKY_cipher_SHA256_Set = _skycoin.SKY_cipher_SHA256_Set +def SKY_map_Get(p1): + return _skycoin.SKY_map_Get(p1) +SKY_map_Get = _skycoin.SKY_map_Get -def SKY_cipher_SHA256_Hex(p0): - return _skycoin.SKY_cipher_SHA256_Hex(p0) -SKY_cipher_SHA256_Hex = _skycoin.SKY_cipher_SHA256_Hex +def SKY_map_HasKey(p1): + return _skycoin.SKY_map_HasKey(p1) +SKY_map_HasKey = _skycoin.SKY_map_HasKey -def SKY_cipher_SHA256_Xor(p0, p1, p2): - return _skycoin.SKY_cipher_SHA256_Xor(p0, p1, p2) -SKY_cipher_SHA256_Xor = _skycoin.SKY_cipher_SHA256_Xor - -def SKY_cipher_SumSHA256(p0, p1): - return _skycoin.SKY_cipher_SumSHA256(p0, p1) -SKY_cipher_SumSHA256 = _skycoin.SKY_cipher_SumSHA256 - -def SKY_cipher_SHA256FromHex(p0, p1): - return _skycoin.SKY_cipher_SHA256FromHex(p0, p1) -SKY_cipher_SHA256FromHex = _skycoin.SKY_cipher_SHA256FromHex - -def SKY_cipher_DoubleSHA256(p0, p1): - return _skycoin.SKY_cipher_DoubleSHA256(p0, p1) -SKY_cipher_DoubleSHA256 = _skycoin.SKY_cipher_DoubleSHA256 - -def SKY_cipher_AddSHA256(p0, p1, p2): - return _skycoin.SKY_cipher_AddSHA256(p0, p1, p2) -SKY_cipher_AddSHA256 = _skycoin.SKY_cipher_AddSHA256 - -def SKY_cipher_Merkle(p0, p1): - return _skycoin.SKY_cipher_Merkle(p0, p1) -SKY_cipher_Merkle = _skycoin.SKY_cipher_Merkle - -def SKY_cipher_SHA256_Null(p0): - return _skycoin.SKY_cipher_SHA256_Null(p0) -SKY_cipher_SHA256_Null = _skycoin.SKY_cipher_SHA256_Null - -def SKY_cli_AddPrivateKey(p0, p1): - return _skycoin.SKY_cli_AddPrivateKey(p0, p1) -SKY_cli_AddPrivateKey = _skycoin.SKY_cli_AddPrivateKey - -def SKY_cli_AddPrivateKeyToFile(p0, p1, p2): - return _skycoin.SKY_cli_AddPrivateKeyToFile(p0, p1, p2) -SKY_cli_AddPrivateKeyToFile = _skycoin.SKY_cli_AddPrivateKeyToFile - -def SKY_cli_CheckWalletBalance(p0, p1): - return _skycoin.SKY_cli_CheckWalletBalance(p0, p1) -SKY_cli_CheckWalletBalance = _skycoin.SKY_cli_CheckWalletBalance - -def SKY_cli_GetBalanceOfAddresses(p0, p1): - return _skycoin.SKY_cli_GetBalanceOfAddresses(p0, p1) -SKY_cli_GetBalanceOfAddresses = _skycoin.SKY_cli_GetBalanceOfAddresses - -def SKY_cli_LoadConfig(): - return _skycoin.SKY_cli_LoadConfig() -SKY_cli_LoadConfig = _skycoin.SKY_cli_LoadConfig - -def SKY_cli_Config_FullWalletPath(p0): - return _skycoin.SKY_cli_Config_FullWalletPath(p0) -SKY_cli_Config_FullWalletPath = _skycoin.SKY_cli_Config_FullWalletPath - -def SKY_cli_Config_FullDBPath(p0): - return _skycoin.SKY_cli_Config_FullDBPath(p0) -SKY_cli_Config_FullDBPath = _skycoin.SKY_cli_Config_FullDBPath - -def SKY_cli_NewCLI(p0): - return _skycoin.SKY_cli_NewCLI(p0) -SKY_cli_NewCLI = _skycoin.SKY_cli_NewCLI - -def SKY_cli_NewPasswordReader(p0): - return _skycoin.SKY_cli_NewPasswordReader(p0) -SKY_cli_NewPasswordReader = _skycoin.SKY_cli_NewPasswordReader - -def SKY_cli_PasswordFromBytes_Password(): - return _skycoin.SKY_cli_PasswordFromBytes_Password() -SKY_cli_PasswordFromBytes_Password = _skycoin.SKY_cli_PasswordFromBytes_Password - -def SKY_cli_PasswordFromTerm_Password(): - return _skycoin.SKY_cli_PasswordFromTerm_Password() -SKY_cli_PasswordFromTerm_Password = _skycoin.SKY_cli_PasswordFromTerm_Password - -def SKY_cli_CreateRawTxFromWallet(p0, p1, p2, p3, p4): - return _skycoin.SKY_cli_CreateRawTxFromWallet(p0, p1, p2, p3, p4) -SKY_cli_CreateRawTxFromWallet = _skycoin.SKY_cli_CreateRawTxFromWallet - -def SKY_cli_CreateRawTxFromAddress(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_cli_CreateRawTxFromAddress(p0, p1, p2, p3, p4, p5) -SKY_cli_CreateRawTxFromAddress = _skycoin.SKY_cli_CreateRawTxFromAddress - -def SKY_cli_CreateRawTx(p0, p1, p2, p3, p4, p5): - return _skycoin.SKY_cli_CreateRawTx(p0, p1, p2, p3, p4, p5) -SKY_cli_CreateRawTx = _skycoin.SKY_cli_CreateRawTx - -def SKY_cli_NewTransaction(p0, p1, p2): - return _skycoin.SKY_cli_NewTransaction(p0, p1, p2) -SKY_cli_NewTransaction = _skycoin.SKY_cli_NewTransaction - -def SKY_cli_GenerateAddressesInFile(p0, p1, p2): - return _skycoin.SKY_cli_GenerateAddressesInFile(p0, p1, p2) -SKY_cli_GenerateAddressesInFile = _skycoin.SKY_cli_GenerateAddressesInFile - -def SKY_cli_FormatAddressesAsJSON(p0): - return _skycoin.SKY_cli_FormatAddressesAsJSON(p0) -SKY_cli_FormatAddressesAsJSON = _skycoin.SKY_cli_FormatAddressesAsJSON - -def SKY_cli_FormatAddressesAsJoinedArray(p0): - return _skycoin.SKY_cli_FormatAddressesAsJoinedArray(p0) -SKY_cli_FormatAddressesAsJoinedArray = _skycoin.SKY_cli_FormatAddressesAsJoinedArray - -def SKY_cli_AddressesToStrings(p0): - return _skycoin.SKY_cli_AddressesToStrings(p0) -SKY_cli_AddressesToStrings = _skycoin.SKY_cli_AddressesToStrings - -def SKY_cli_GetWalletOutputsFromFile(p0, p1): - return _skycoin.SKY_cli_GetWalletOutputsFromFile(p0, p1) -SKY_cli_GetWalletOutputsFromFile = _skycoin.SKY_cli_GetWalletOutputsFromFile - -def SKY_cli_GetWalletOutputs(p0): - return _skycoin.SKY_cli_GetWalletOutputs(p0) -SKY_cli_GetWalletOutputs = _skycoin.SKY_cli_GetWalletOutputs - -def SKY_cli_CLI_Run(p0): - return _skycoin.SKY_cli_CLI_Run(p0) -SKY_cli_CLI_Run = _skycoin.SKY_cli_CLI_Run - -def SKY_cli_Config_GetCoin(p0): - return _skycoin.SKY_cli_Config_GetCoin(p0) -SKY_cli_Config_GetCoin = _skycoin.SKY_cli_Config_GetCoin - -def SKY_cli_Config_GetRPCAddress(p0): - return _skycoin.SKY_cli_Config_GetRPCAddress(p0) -SKY_cli_Config_GetRPCAddress = _skycoin.SKY_cli_Config_GetRPCAddress - -def SKY_cli_Getenv(p0): - return _skycoin.SKY_cli_Getenv(p0) -SKY_cli_Getenv = _skycoin.SKY_cli_Getenv - -def SKY_cli_Setenv(p0, p1): - return _skycoin.SKY_cli_Setenv(p0, p1) -SKY_cli_Setenv = _skycoin.SKY_cli_Setenv +def SKY_map_Close(): + return _skycoin.SKY_map_Close() +SKY_map_Close = _skycoin.SKY_map_Close def SKY_coin_NewBlock(p0, p1, p2, p3, p4): return _skycoin.SKY_coin_NewBlock(p0, p1, p2, p3, p4) @@ -1301,10 +1181,6 @@ def SKY_coin_Block_HashHeader(p0, p1): return _skycoin.SKY_coin_Block_HashHeader(p0, p1) SKY_coin_Block_HashHeader = _skycoin.SKY_coin_Block_HashHeader -def SKY_coin_Block_PreHashHeader(p0, p1): - return _skycoin.SKY_coin_Block_PreHashHeader(p0, p1) -SKY_coin_Block_PreHashHeader = _skycoin.SKY_coin_Block_PreHashHeader - def SKY_coin_Block_Time(p0): return _skycoin.SKY_coin_Block_Time(p0) SKY_coin_Block_Time = _skycoin.SKY_coin_Block_Time @@ -1321,14 +1197,6 @@ def SKY_coin_Block_Size(p0): return _skycoin.SKY_coin_Block_Size(p0) SKY_coin_Block_Size = _skycoin.SKY_coin_Block_Size -def SKY_coin_Block_String(p0): - return _skycoin.SKY_coin_Block_String(p0) -SKY_coin_Block_String = _skycoin.SKY_coin_Block_String - -def SKY_coin_Block_GetTransaction(p0, p1): - return _skycoin.SKY_coin_Block_GetTransaction(p0, p1) -SKY_coin_Block_GetTransaction = _skycoin.SKY_coin_Block_GetTransaction - def SKY_coin_NewBlockHeader(p0, p1, p2, p3, p4, p5): return _skycoin.SKY_coin_NewBlockHeader(p0, p1, p2, p3, p4, p5) SKY_coin_NewBlockHeader = _skycoin.SKY_coin_NewBlockHeader @@ -1341,10 +1209,6 @@ def SKY_coin_BlockHeader_Bytes(p0): return _skycoin.SKY_coin_BlockHeader_Bytes(p0) SKY_coin_BlockHeader_Bytes = _skycoin.SKY_coin_BlockHeader_Bytes -def SKY_coin_BlockHeader_String(p0): - return _skycoin.SKY_coin_BlockHeader_String(p0) -SKY_coin_BlockHeader_String = _skycoin.SKY_coin_BlockHeader_String - def SKY_coin_BlockBody_Hash(p0, p1): return _skycoin.SKY_coin_BlockBody_Hash(p0, p1) SKY_coin_BlockBody_Hash = _skycoin.SKY_coin_BlockBody_Hash @@ -1405,717 +1269,793 @@ def SKY_coin_BlockBody_Transactions(p0): return _skycoin.SKY_coin_BlockBody_Transactions(p0) SKY_coin_BlockBody_Transactions = _skycoin.SKY_coin_BlockBody_Transactions -def SKY_coin_AddUint64(p0, p1): - return _skycoin.SKY_coin_AddUint64(p0, p1) -SKY_coin_AddUint64 = _skycoin.SKY_coin_AddUint64 +def SKY_coin_BlockHeader_SetTime(p0, p1): + return _skycoin.SKY_coin_BlockHeader_SetTime(p0, p1) +SKY_coin_BlockHeader_SetTime = _skycoin.SKY_coin_BlockHeader_SetTime -def SKY_coin_Uint64ToInt64(p0): - return _skycoin.SKY_coin_Uint64ToInt64(p0) -SKY_coin_Uint64ToInt64 = _skycoin.SKY_coin_Uint64ToInt64 +def SKY_coin_BlockHeader_SetBkSeq(p0, p1): + return _skycoin.SKY_coin_BlockHeader_SetBkSeq(p0, p1) +SKY_coin_BlockHeader_SetBkSeq = _skycoin.SKY_coin_BlockHeader_SetBkSeq -def SKY_coin_Int64ToUint64(p0): - return _skycoin.SKY_coin_Int64ToUint64(p0) -SKY_coin_Int64ToUint64 = _skycoin.SKY_coin_Int64ToUint64 +def SKY_coin_BlockHeader_SetFee(p0, p1): + return _skycoin.SKY_coin_BlockHeader_SetFee(p0, p1) +SKY_coin_BlockHeader_SetFee = _skycoin.SKY_coin_BlockHeader_SetFee -def SKY_coin_IntToUint32(p0): - return _skycoin.SKY_coin_IntToUint32(p0) -SKY_coin_IntToUint32 = _skycoin.SKY_coin_IntToUint32 +def SKY_coin_BlockHeader_SetVersion(p0, p1): + return _skycoin.SKY_coin_BlockHeader_SetVersion(p0, p1) +SKY_coin_BlockHeader_SetVersion = _skycoin.SKY_coin_BlockHeader_SetVersion -def SKY_coin_UxOut_Hash(p0, p1): - return _skycoin.SKY_coin_UxOut_Hash(p0, p1) -SKY_coin_UxOut_Hash = _skycoin.SKY_coin_UxOut_Hash +def SKY_coin_BlockHeader_Version(p0): + return _skycoin.SKY_coin_BlockHeader_Version(p0) +SKY_coin_BlockHeader_Version = _skycoin.SKY_coin_BlockHeader_Version -def SKY_coin_UxOut_SnapshotHash(p0, p1): - return _skycoin.SKY_coin_UxOut_SnapshotHash(p0, p1) -SKY_coin_UxOut_SnapshotHash = _skycoin.SKY_coin_UxOut_SnapshotHash +def SKY_coin_BlockHeader_PrevHash(p0, p1): + return _skycoin.SKY_coin_BlockHeader_PrevHash(p0, p1) +SKY_coin_BlockHeader_PrevHash = _skycoin.SKY_coin_BlockHeader_PrevHash -def SKY_coin_UxBody_Hash(p0, p1): - return _skycoin.SKY_coin_UxBody_Hash(p0, p1) -SKY_coin_UxBody_Hash = _skycoin.SKY_coin_UxBody_Hash +def SKY_droplet_FromString(p0): + return _skycoin.SKY_droplet_FromString(p0) +SKY_droplet_FromString = _skycoin.SKY_droplet_FromString -def SKY_coin_UxOut_CoinHours(p0, p1): - return _skycoin.SKY_coin_UxOut_CoinHours(p0, p1) -SKY_coin_UxOut_CoinHours = _skycoin.SKY_coin_UxOut_CoinHours +def SKY_droplet_ToString(p0): + return _skycoin.SKY_droplet_ToString(p0) +SKY_droplet_ToString = _skycoin.SKY_droplet_ToString -def SKY_coin_UxArray_Hashes(*args): - return _skycoin.SKY_coin_UxArray_Hashes(*args) -SKY_coin_UxArray_Hashes = _skycoin.SKY_coin_UxArray_Hashes +def SKY_wallet_CryptoTypeFromString(p0): + return _skycoin.SKY_wallet_CryptoTypeFromString(p0) +SKY_wallet_CryptoTypeFromString = _skycoin.SKY_wallet_CryptoTypeFromString -def SKY_coin_UxArray_HasDupes(*args): - return _skycoin.SKY_coin_UxArray_HasDupes(*args) -SKY_coin_UxArray_HasDupes = _skycoin.SKY_coin_UxArray_HasDupes +def SKY_cipher_DecodeBase58Address(p0, p1): + return _skycoin.SKY_cipher_DecodeBase58Address(p0, p1) +SKY_cipher_DecodeBase58Address = _skycoin.SKY_cipher_DecodeBase58Address -def SKY_coin_UxArray_Sort(): - return _skycoin.SKY_coin_UxArray_Sort() -SKY_coin_UxArray_Sort = _skycoin.SKY_coin_UxArray_Sort +def SKY_cipher_AddressFromBytes(p0, p1): + return _skycoin.SKY_cipher_AddressFromBytes(p0, p1) +SKY_cipher_AddressFromBytes = _skycoin.SKY_cipher_AddressFromBytes -def SKY_coin_UxArray_Len(): - return _skycoin.SKY_coin_UxArray_Len() -SKY_coin_UxArray_Len = _skycoin.SKY_coin_UxArray_Len +def SKY_cipher_AddressFromPubKey(p0, p1): + return _skycoin.SKY_cipher_AddressFromPubKey(p0, p1) +SKY_cipher_AddressFromPubKey = _skycoin.SKY_cipher_AddressFromPubKey -def SKY_coin_UxArray_Less(*args): - return _skycoin.SKY_coin_UxArray_Less(*args) -SKY_coin_UxArray_Less = _skycoin.SKY_coin_UxArray_Less +def SKY_cipher_AddressFromSecKey(p0, p1): + return _skycoin.SKY_cipher_AddressFromSecKey(p0, p1) +SKY_cipher_AddressFromSecKey = _skycoin.SKY_cipher_AddressFromSecKey -def SKY_coin_UxArray_Swap(*args): - return _skycoin.SKY_coin_UxArray_Swap(*args) -SKY_coin_UxArray_Swap = _skycoin.SKY_coin_UxArray_Swap +def SKY_cipher_Address_Null(p0): + return _skycoin.SKY_cipher_Address_Null(p0) +SKY_cipher_Address_Null = _skycoin.SKY_cipher_Address_Null -def SKY_coin_UxArray_Coins(*args): - return _skycoin.SKY_coin_UxArray_Coins(*args) -SKY_coin_UxArray_Coins = _skycoin.SKY_coin_UxArray_Coins +def SKY_cipher_Address_Bytes(p0): + return _skycoin.SKY_cipher_Address_Bytes(p0) +SKY_cipher_Address_Bytes = _skycoin.SKY_cipher_Address_Bytes -def SKY_coin_UxArray_CoinHours(*args): - return _skycoin.SKY_coin_UxArray_CoinHours(*args) -SKY_coin_UxArray_CoinHours = _skycoin.SKY_coin_UxArray_CoinHours +def SKY_cipher_Address_Verify(p0, p1): + return _skycoin.SKY_cipher_Address_Verify(p0, p1) +SKY_cipher_Address_Verify = _skycoin.SKY_cipher_Address_Verify -def SKY_coin_UxArray_Sub(*args): - return _skycoin.SKY_coin_UxArray_Sub(*args) -SKY_coin_UxArray_Sub = _skycoin.SKY_coin_UxArray_Sub +def SKY_cipher_Address_String(p0): + return _skycoin.SKY_cipher_Address_String(p0) +SKY_cipher_Address_String = _skycoin.SKY_cipher_Address_String -def SKY_coin_UxArray_Add(*args): - return _skycoin.SKY_coin_UxArray_Add(*args) -SKY_coin_UxArray_Add = _skycoin.SKY_coin_UxArray_Add +def SKY_cipher_Address_Checksum(p0, p1): + return _skycoin.SKY_cipher_Address_Checksum(p0, p1) +SKY_cipher_Address_Checksum = _skycoin.SKY_cipher_Address_Checksum -def SKY_coin_NewAddressUxOuts(*args): - return _skycoin.SKY_coin_NewAddressUxOuts(*args) -SKY_coin_NewAddressUxOuts = _skycoin.SKY_coin_NewAddressUxOuts +def SKY_cipher_Ripemd160_Set(p0, p1): + return _skycoin.SKY_cipher_Ripemd160_Set(p0, p1) +SKY_cipher_Ripemd160_Set = _skycoin.SKY_cipher_Ripemd160_Set -def SKY_coin_AddressUxOuts_Keys(*args): - return _skycoin.SKY_coin_AddressUxOuts_Keys(*args) -SKY_coin_AddressUxOuts_Keys = _skycoin.SKY_coin_AddressUxOuts_Keys +def SKY_cipher_HashRipemd160(p0, p1): + return _skycoin.SKY_cipher_HashRipemd160(p0, p1) +SKY_cipher_HashRipemd160 = _skycoin.SKY_cipher_HashRipemd160 -def SKY_coin_AddressUxOuts_Flatten(*args): - return _skycoin.SKY_coin_AddressUxOuts_Flatten(*args) -SKY_coin_AddressUxOuts_Flatten = _skycoin.SKY_coin_AddressUxOuts_Flatten +def SKY_cipher_SHA256_Set(p0, p1): + return _skycoin.SKY_cipher_SHA256_Set(p0, p1) +SKY_cipher_SHA256_Set = _skycoin.SKY_cipher_SHA256_Set -def SKY_coin_AddressUxOuts_Sub(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_Sub(p0, p1) -SKY_coin_AddressUxOuts_Sub = _skycoin.SKY_coin_AddressUxOuts_Sub +def SKY_cipher_SHA256_Hex(p0): + return _skycoin.SKY_cipher_SHA256_Hex(p0) +SKY_cipher_SHA256_Hex = _skycoin.SKY_cipher_SHA256_Hex -def SKY_coin_AddressUxOuts_Add(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_Add(p0, p1) -SKY_coin_AddressUxOuts_Add = _skycoin.SKY_coin_AddressUxOuts_Add +def SKY_cipher_SHA256_Xor(p0, p1, p2): + return _skycoin.SKY_cipher_SHA256_Xor(p0, p1, p2) +SKY_cipher_SHA256_Xor = _skycoin.SKY_cipher_SHA256_Xor -def SKY_coin_AddressUxOuts_Get(*args): - return _skycoin.SKY_coin_AddressUxOuts_Get(*args) -SKY_coin_AddressUxOuts_Get = _skycoin.SKY_coin_AddressUxOuts_Get +def SKY_cipher_SumSHA256(p0, p1): + return _skycoin.SKY_cipher_SumSHA256(p0, p1) +SKY_cipher_SumSHA256 = _skycoin.SKY_cipher_SumSHA256 -def SKY_coin_AddressUxOuts_HasKey(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_HasKey(p0, p1) -SKY_coin_AddressUxOuts_HasKey = _skycoin.SKY_coin_AddressUxOuts_HasKey +def SKY_cipher_SHA256FromHex(p0, p1): + return _skycoin.SKY_cipher_SHA256FromHex(p0, p1) +SKY_cipher_SHA256FromHex = _skycoin.SKY_cipher_SHA256FromHex -def SKY_coin_AddressUxOuts_GetOutputLength(p0, p1): - return _skycoin.SKY_coin_AddressUxOuts_GetOutputLength(p0, p1) -SKY_coin_AddressUxOuts_GetOutputLength = _skycoin.SKY_coin_AddressUxOuts_GetOutputLength +def SKY_cipher_DoubleSHA256(p0, p1): + return _skycoin.SKY_cipher_DoubleSHA256(p0, p1) +SKY_cipher_DoubleSHA256 = _skycoin.SKY_cipher_DoubleSHA256 -def SKY_coin_AddressUxOuts_Length(p0): - return _skycoin.SKY_coin_AddressUxOuts_Length(p0) -SKY_coin_AddressUxOuts_Length = _skycoin.SKY_coin_AddressUxOuts_Length +def SKY_cipher_AddSHA256(p0, p1, p2): + return _skycoin.SKY_cipher_AddSHA256(p0, p1, p2) +SKY_cipher_AddSHA256 = _skycoin.SKY_cipher_AddSHA256 -def SKY_coin_AddressUxOuts_Set(*args): - return _skycoin.SKY_coin_AddressUxOuts_Set(*args) -SKY_coin_AddressUxOuts_Set = _skycoin.SKY_coin_AddressUxOuts_Set +def SKY_cipher_Merkle(p0, p1): + return _skycoin.SKY_cipher_Merkle(p0, p1) +SKY_cipher_Merkle = _skycoin.SKY_cipher_Merkle -def SKY_coin_Create_Transaction(): - return _skycoin.SKY_coin_Create_Transaction() -SKY_coin_Create_Transaction = _skycoin.SKY_coin_Create_Transaction +def SKY_cipher_SHA256_Null(p0): + return _skycoin.SKY_cipher_SHA256_Null(p0) +SKY_cipher_SHA256_Null = _skycoin.SKY_cipher_SHA256_Null -def SKY_coin_Transaction_Copy(p0): - return _skycoin.SKY_coin_Transaction_Copy(p0) -SKY_coin_Transaction_Copy = _skycoin.SKY_coin_Transaction_Copy +def SKY_wallet_NewError(p0): + return _skycoin.SKY_wallet_NewError(p0) +SKY_wallet_NewError = _skycoin.SKY_wallet_NewError -def SKY_coin_GetTransactionObject(p0): - return _skycoin.SKY_coin_GetTransactionObject(p0) -SKY_coin_GetTransactionObject = _skycoin.SKY_coin_GetTransactionObject +def SKY_wallet_NewWallet(p0, p1): + return _skycoin.SKY_wallet_NewWallet(p0, p1) +SKY_wallet_NewWallet = _skycoin.SKY_wallet_NewWallet -def SKY_coin_Transaction_ResetInputs(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetInputs(p0, p1) -SKY_coin_Transaction_ResetInputs = _skycoin.SKY_coin_Transaction_ResetInputs +def SKY_wallet_Wallet_Lock(p0, p1, p2): + return _skycoin.SKY_wallet_Wallet_Lock(p0, p1, p2) +SKY_wallet_Wallet_Lock = _skycoin.SKY_wallet_Wallet_Lock -def SKY_coin_Transaction_GetInputsCount(p0): - return _skycoin.SKY_coin_Transaction_GetInputsCount(p0) -SKY_coin_Transaction_GetInputsCount = _skycoin.SKY_coin_Transaction_GetInputsCount +def SKY_wallet_Wallet_Unlock(p0, p1): + return _skycoin.SKY_wallet_Wallet_Unlock(p0, p1) +SKY_wallet_Wallet_Unlock = _skycoin.SKY_wallet_Wallet_Unlock -def SKY_coin_Transaction_GetInputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetInputAt(p0, p1, p2) -SKY_coin_Transaction_GetInputAt = _skycoin.SKY_coin_Transaction_GetInputAt +def SKY_wallet_Load(p0): + return _skycoin.SKY_wallet_Load(p0) +SKY_wallet_Load = _skycoin.SKY_wallet_Load -def SKY_coin_Transaction_SetInputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetInputAt(p0, p1, p2) -SKY_coin_Transaction_SetInputAt = _skycoin.SKY_coin_Transaction_SetInputAt +def SKY_wallet_Wallet_Save(p0, p1): + return _skycoin.SKY_wallet_Wallet_Save(p0, p1) +SKY_wallet_Wallet_Save = _skycoin.SKY_wallet_Wallet_Save -def SKY_coin_Transaction_GetOutputsCount(p0): - return _skycoin.SKY_coin_Transaction_GetOutputsCount(p0) -SKY_coin_Transaction_GetOutputsCount = _skycoin.SKY_coin_Transaction_GetOutputsCount +def SKY_wallet_Wallet_Validate(p0): + return _skycoin.SKY_wallet_Wallet_Validate(p0) +SKY_wallet_Wallet_Validate = _skycoin.SKY_wallet_Wallet_Validate -def SKY_coin_Transaction_GetOutputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetOutputAt(p0, p1, p2) -SKY_coin_Transaction_GetOutputAt = _skycoin.SKY_coin_Transaction_GetOutputAt +def SKY_wallet_Wallet_Type(p0): + return _skycoin.SKY_wallet_Wallet_Type(p0) +SKY_wallet_Wallet_Type = _skycoin.SKY_wallet_Wallet_Type -def SKY_coin_Transaction_SetOutputAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetOutputAt(p0, p1, p2) -SKY_coin_Transaction_SetOutputAt = _skycoin.SKY_coin_Transaction_SetOutputAt +def SKY_wallet_Wallet_Version(p0): + return _skycoin.SKY_wallet_Wallet_Version(p0) +SKY_wallet_Wallet_Version = _skycoin.SKY_wallet_Wallet_Version -def SKY_coin_Transaction_GetSignaturesCount(p0): - return _skycoin.SKY_coin_Transaction_GetSignaturesCount(p0) -SKY_coin_Transaction_GetSignaturesCount = _skycoin.SKY_coin_Transaction_GetSignaturesCount +def SKY_wallet_Wallet_Filename(p0): + return _skycoin.SKY_wallet_Wallet_Filename(p0) +SKY_wallet_Wallet_Filename = _skycoin.SKY_wallet_Wallet_Filename -def SKY_coin_Transaction_GetSignatureAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_GetSignatureAt(p0, p1, p2) -SKY_coin_Transaction_GetSignatureAt = _skycoin.SKY_coin_Transaction_GetSignatureAt +def SKY_wallet_Wallet_Label(p0): + return _skycoin.SKY_wallet_Wallet_Label(p0) +SKY_wallet_Wallet_Label = _skycoin.SKY_wallet_Wallet_Label -def SKY_coin_Transaction_SetSignatureAt(p0, p1, p2): - return _skycoin.SKY_coin_Transaction_SetSignatureAt(p0, p1, p2) -SKY_coin_Transaction_SetSignatureAt = _skycoin.SKY_coin_Transaction_SetSignatureAt +def SKY_wallet_Wallet_IsEncrypted(p0): + return _skycoin.SKY_wallet_Wallet_IsEncrypted(p0) +SKY_wallet_Wallet_IsEncrypted = _skycoin.SKY_wallet_Wallet_IsEncrypted -def SKY_coin_Transaction_PushSignature(p0, p1): - return _skycoin.SKY_coin_Transaction_PushSignature(p0, p1) -SKY_coin_Transaction_PushSignature = _skycoin.SKY_coin_Transaction_PushSignature +def SKY_wallet_Wallet_GenerateAddresses(p0, p1): + return _skycoin.SKY_wallet_Wallet_GenerateAddresses(p0, p1) +SKY_wallet_Wallet_GenerateAddresses = _skycoin.SKY_wallet_Wallet_GenerateAddresses -def SKY_coin_Transaction_ResetOutputs(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetOutputs(p0, p1) -SKY_coin_Transaction_ResetOutputs = _skycoin.SKY_coin_Transaction_ResetOutputs +def SKY_wallet_Wallet_GetAddresses(p0): + return _skycoin.SKY_wallet_Wallet_GetAddresses(p0) +SKY_wallet_Wallet_GetAddresses = _skycoin.SKY_wallet_Wallet_GetAddresses -def SKY_coin_Transaction_ResetSignatures(p0, p1): - return _skycoin.SKY_coin_Transaction_ResetSignatures(p0, p1) -SKY_coin_Transaction_ResetSignatures = _skycoin.SKY_coin_Transaction_ResetSignatures +def SKY_wallet_Wallet_GetEntry(p0, p1, p2): + return _skycoin.SKY_wallet_Wallet_GetEntry(p0, p1, p2) +SKY_wallet_Wallet_GetEntry = _skycoin.SKY_wallet_Wallet_GetEntry -def SKY_coin_Transaction_Verify(p0): - return _skycoin.SKY_coin_Transaction_Verify(p0) -SKY_coin_Transaction_Verify = _skycoin.SKY_coin_Transaction_Verify +def SKY_wallet_Wallet_AddEntry(p0, p1): + return _skycoin.SKY_wallet_Wallet_AddEntry(p0, p1) +SKY_wallet_Wallet_AddEntry = _skycoin.SKY_wallet_Wallet_AddEntry -def SKY_coin_Transaction_VerifyInput(p0): - return _skycoin.SKY_coin_Transaction_VerifyInput(p0) -SKY_coin_Transaction_VerifyInput = _skycoin.SKY_coin_Transaction_VerifyInput +def SKY_api_NewCreateTransactionResponse(p0, p1): + return _skycoin.SKY_api_NewCreateTransactionResponse(p0, p1) +SKY_api_NewCreateTransactionResponse = _skycoin.SKY_api_NewCreateTransactionResponse -def SKY_coin_Transaction_PushInput(p0, p1): - return _skycoin.SKY_coin_Transaction_PushInput(p0, p1) -SKY_coin_Transaction_PushInput = _skycoin.SKY_coin_Transaction_PushInput +def SKY_api_NewCreatedTransaction(p0, p1): + return _skycoin.SKY_api_NewCreatedTransaction(p0, p1) +SKY_api_NewCreatedTransaction = _skycoin.SKY_api_NewCreatedTransaction -def SKY_coin_TransactionOutput_UxID(p0, p1, p2): - return _skycoin.SKY_coin_TransactionOutput_UxID(p0, p1, p2) -SKY_coin_TransactionOutput_UxID = _skycoin.SKY_coin_TransactionOutput_UxID +def SKY_api_CreatedTransaction_ToTransaction(p0): + return _skycoin.SKY_api_CreatedTransaction_ToTransaction(p0) +SKY_api_CreatedTransaction_ToTransaction = _skycoin.SKY_api_CreatedTransaction_ToTransaction -def SKY_coin_Transaction_PushOutput(p0, p1, p2, p3): - return _skycoin.SKY_coin_Transaction_PushOutput(p0, p1, p2, p3) -SKY_coin_Transaction_PushOutput = _skycoin.SKY_coin_Transaction_PushOutput +def SKY_api_NewCreatedTransactionOutput(p0, p1): + return _skycoin.SKY_api_NewCreatedTransactionOutput(p0, p1) +SKY_api_NewCreatedTransactionOutput = _skycoin.SKY_api_NewCreatedTransactionOutput -def SKY_coin_Transaction_SignInputs(*args): - return _skycoin.SKY_coin_Transaction_SignInputs(*args) -SKY_coin_Transaction_SignInputs = _skycoin.SKY_coin_Transaction_SignInputs +def SKY_api_NewCreatedTransactionInput(p0): + return _skycoin.SKY_api_NewCreatedTransactionInput(p0) +SKY_api_NewCreatedTransactionInput = _skycoin.SKY_api_NewCreatedTransactionInput -def SKY_coin_Transaction_Size(p0): - return _skycoin.SKY_coin_Transaction_Size(p0) -SKY_coin_Transaction_Size = _skycoin.SKY_coin_Transaction_Size +def SKY_wallet_NewReadableEntry(p0, p1): + return _skycoin.SKY_wallet_NewReadableEntry(p0, p1) +SKY_wallet_NewReadableEntry = _skycoin.SKY_wallet_NewReadableEntry -def SKY_coin_Transaction_Hash(p0, p1): - return _skycoin.SKY_coin_Transaction_Hash(p0, p1) -SKY_coin_Transaction_Hash = _skycoin.SKY_coin_Transaction_Hash +def SKY_wallet_LoadReadableWallet(p0): + return _skycoin.SKY_wallet_LoadReadableWallet(p0) +SKY_wallet_LoadReadableWallet = _skycoin.SKY_wallet_LoadReadableWallet -def SKY_coin_Transaction_SizeHash(p0, p2): - return _skycoin.SKY_coin_Transaction_SizeHash(p0, p2) -SKY_coin_Transaction_SizeHash = _skycoin.SKY_coin_Transaction_SizeHash +def SKY_wallet_ReadableWallet_Save(p0, p1): + return _skycoin.SKY_wallet_ReadableWallet_Save(p0, p1) +SKY_wallet_ReadableWallet_Save = _skycoin.SKY_wallet_ReadableWallet_Save -def SKY_coin_Transaction_TxID(p0): - return _skycoin.SKY_coin_Transaction_TxID(p0) -SKY_coin_Transaction_TxID = _skycoin.SKY_coin_Transaction_TxID +def SKY_wallet_ReadableWallet_Load(p0, p1): + return _skycoin.SKY_wallet_ReadableWallet_Load(p0, p1) +SKY_wallet_ReadableWallet_Load = _skycoin.SKY_wallet_ReadableWallet_Load -def SKY_coin_Transaction_TxIDHex(p0): - return _skycoin.SKY_coin_Transaction_TxIDHex(p0) -SKY_coin_Transaction_TxIDHex = _skycoin.SKY_coin_Transaction_TxIDHex +def SKY_wallet_ReadableWallet_Erase(p0): + return _skycoin.SKY_wallet_ReadableWallet_Erase(p0) +SKY_wallet_ReadableWallet_Erase = _skycoin.SKY_wallet_ReadableWallet_Erase -def SKY_coin_Transaction_UpdateHeader(p0): - return _skycoin.SKY_coin_Transaction_UpdateHeader(p0) -SKY_coin_Transaction_UpdateHeader = _skycoin.SKY_coin_Transaction_UpdateHeader +def SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2): + return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt(p0, p1, p2) +SKY_encrypt_ScryptChacha20poly1305_Encrypt = _skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt -def SKY_coin_Transaction_HashInner(p0, p1): - return _skycoin.SKY_coin_Transaction_HashInner(p0, p1) -SKY_coin_Transaction_HashInner = _skycoin.SKY_coin_Transaction_HashInner +def SKY_encrypt_ScryptChacha20poly1305_Decrypt(p0, p1, p2): + return _skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt(p0, p1, p2) +SKY_encrypt_ScryptChacha20poly1305_Decrypt = _skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt -def SKY_coin_Transaction_Serialize(p0): - return _skycoin.SKY_coin_Transaction_Serialize(p0) -SKY_coin_Transaction_Serialize = _skycoin.SKY_coin_Transaction_Serialize +def SKY_cli_GenerateAddressesInFile(p0, p1, p2): + return _skycoin.SKY_cli_GenerateAddressesInFile(p0, p1, p2) +SKY_cli_GenerateAddressesInFile = _skycoin.SKY_cli_GenerateAddressesInFile -def SKY_coin_TransactionDeserialize(p0): - return _skycoin.SKY_coin_TransactionDeserialize(p0) -SKY_coin_TransactionDeserialize = _skycoin.SKY_coin_TransactionDeserialize +def SKY_cli_FormatAddressesAsJSON(p0): + return _skycoin.SKY_cli_FormatAddressesAsJSON(p0) +SKY_cli_FormatAddressesAsJSON = _skycoin.SKY_cli_FormatAddressesAsJSON -def SKY_coin_Transaction_OutputHours(p0): - return _skycoin.SKY_coin_Transaction_OutputHours(p0) -SKY_coin_Transaction_OutputHours = _skycoin.SKY_coin_Transaction_OutputHours +def SKY_cli_FormatAddressesAsJoinedArray(p0): + return _skycoin.SKY_cli_FormatAddressesAsJoinedArray(p0) +SKY_cli_FormatAddressesAsJoinedArray = _skycoin.SKY_cli_FormatAddressesAsJoinedArray -def SKY_coin_Create_Transactions(): - return _skycoin.SKY_coin_Create_Transactions() -SKY_coin_Create_Transactions = _skycoin.SKY_coin_Create_Transactions +def SKY_cli_AddressesToStrings(p0): + return _skycoin.SKY_cli_AddressesToStrings(p0) +SKY_cli_AddressesToStrings = _skycoin.SKY_cli_AddressesToStrings -def SKY_coin_GetTransactionsObject(p0, p1): - return _skycoin.SKY_coin_GetTransactionsObject(p0, p1) -SKY_coin_GetTransactionsObject = _skycoin.SKY_coin_GetTransactionsObject +def SKY_handle_close(p0): + return _skycoin.SKY_handle_close(p0) +SKY_handle_close = _skycoin.SKY_handle_close -def SKY_coin_Transactions_Length(p0): - return _skycoin.SKY_coin_Transactions_Length(p0) -SKY_coin_Transactions_Length = _skycoin.SKY_coin_Transactions_Length +def SKY_handle_copy(p0): + return _skycoin.SKY_handle_copy(p0) +SKY_handle_copy = _skycoin.SKY_handle_copy -def SKY_coin_Transactions_Add(p0, p1): - return _skycoin.SKY_coin_Transactions_Add(p0, p1) -SKY_coin_Transactions_Add = _skycoin.SKY_coin_Transactions_Add +def SKY_iputil_LocalhostIP(): + return _skycoin.SKY_iputil_LocalhostIP() +SKY_iputil_LocalhostIP = _skycoin.SKY_iputil_LocalhostIP -def SKY_coin_Transactions_Fees(p0, p1): - return _skycoin.SKY_coin_Transactions_Fees(p0, p1) -SKY_coin_Transactions_Fees = _skycoin.SKY_coin_Transactions_Fees +def SKY_iputil_IsLocalhost(p0): + return _skycoin.SKY_iputil_IsLocalhost(p0) +SKY_iputil_IsLocalhost = _skycoin.SKY_iputil_IsLocalhost -def SKY_coin_Transactions_GetAt(p0, p1): - return _skycoin.SKY_coin_Transactions_GetAt(p0, p1) -SKY_coin_Transactions_GetAt = _skycoin.SKY_coin_Transactions_GetAt +def SKY_iputil_SplitAddr(p0): + return _skycoin.SKY_iputil_SplitAddr(p0) +SKY_iputil_SplitAddr = _skycoin.SKY_iputil_SplitAddr -def SKY_coin_Transactions_Hashes(*args): - return _skycoin.SKY_coin_Transactions_Hashes(*args) -SKY_coin_Transactions_Hashes = _skycoin.SKY_coin_Transactions_Hashes +def SKY_cli_NewTransaction(p0, p1, p2): + return _skycoin.SKY_cli_NewTransaction(p0, p1, p2) +SKY_cli_NewTransaction = _skycoin.SKY_cli_NewTransaction -def SKY_coin_Transactions_Size(p0): - return _skycoin.SKY_coin_Transactions_Size(p0) -SKY_coin_Transactions_Size = _skycoin.SKY_coin_Transactions_Size +def SKY_transaction_DistributeCoinHoursProportional(p0, p1): + return _skycoin.SKY_transaction_DistributeCoinHoursProportional(p0, p1) +SKY_transaction_DistributeCoinHoursProportional = _skycoin.SKY_transaction_DistributeCoinHoursProportional -def SKY_coin_Transactions_TruncateBytesTo(p0, p1): - return _skycoin.SKY_coin_Transactions_TruncateBytesTo(p0, p1) -SKY_coin_Transactions_TruncateBytesTo = _skycoin.SKY_coin_Transactions_TruncateBytesTo +def SKY_transaction_DistributeSpendHours(p0, p1, p2): + return _skycoin.SKY_transaction_DistributeSpendHours(p0, p1, p2) +SKY_transaction_DistributeSpendHours = _skycoin.SKY_transaction_DistributeSpendHours -def SKY_coin_SortTransactions(p0, p1): - return _skycoin.SKY_coin_SortTransactions(p0, p1) -SKY_coin_SortTransactions = _skycoin.SKY_coin_SortTransactions +def SKY_base58_Hex2Base58(p0): + return _skycoin.SKY_base58_Hex2Base58(p0) +SKY_base58_Hex2Base58 = _skycoin.SKY_base58_Hex2Base58 -def SKY_coin_NewSortableTransactions(p0, p1): - return _skycoin.SKY_coin_NewSortableTransactions(p0, p1) -SKY_coin_NewSortableTransactions = _skycoin.SKY_coin_NewSortableTransactions +def SKY_base58_Encode(p0): + return _skycoin.SKY_base58_Encode(p0) +SKY_base58_Encode = _skycoin.SKY_base58_Encode -def SKY_coin_SortableTransactions_Sort(p0): - return _skycoin.SKY_coin_SortableTransactions_Sort(p0) -SKY_coin_SortableTransactions_Sort = _skycoin.SKY_coin_SortableTransactions_Sort +def SKY_base58_Decode(p0): + return _skycoin.SKY_base58_Decode(p0) +SKY_base58_Decode = _skycoin.SKY_base58_Decode -def SKY_coin_SortableTransactions_Len(p0): - return _skycoin.SKY_coin_SortableTransactions_Len(p0) -SKY_coin_SortableTransactions_Len = _skycoin.SKY_coin_SortableTransactions_Len +def SKY_base58_String2Hex(p0): + return _skycoin.SKY_base58_String2Hex(p0) +SKY_base58_String2Hex = _skycoin.SKY_base58_String2Hex -def SKY_coin_SortableTransactions_Less(p0, p1, p2): - return _skycoin.SKY_coin_SortableTransactions_Less(p0, p1, p2) -SKY_coin_SortableTransactions_Less = _skycoin.SKY_coin_SortableTransactions_Less +def SKY_api_NewClient(p0): + return _skycoin.SKY_api_NewClient(p0) +SKY_api_NewClient = _skycoin.SKY_api_NewClient -def SKY_coin_SortableTransactions_Swap(p0, p1, p2): - return _skycoin.SKY_coin_SortableTransactions_Swap(p0, p1, p2) -SKY_coin_SortableTransactions_Swap = _skycoin.SKY_coin_SortableTransactions_Swap +def SKY_api_Client_CSRF(p0): + return _skycoin.SKY_api_Client_CSRF(p0) +SKY_api_Client_CSRF = _skycoin.SKY_api_Client_CSRF -def SKY_coin_VerifyTransactionCoinsSpending(*args): - return _skycoin.SKY_coin_VerifyTransactionCoinsSpending(*args) -SKY_coin_VerifyTransactionCoinsSpending = _skycoin.SKY_coin_VerifyTransactionCoinsSpending +def SKY_api_Client_Version(p0): + return _skycoin.SKY_api_Client_Version(p0) +SKY_api_Client_Version = _skycoin.SKY_api_Client_Version -def SKY_coin_VerifyTransactionHoursSpending(*args): - return _skycoin.SKY_coin_VerifyTransactionHoursSpending(*args) -SKY_coin_VerifyTransactionHoursSpending = _skycoin.SKY_coin_VerifyTransactionHoursSpending +def SKY_api_Client_Outputs(p0): + return _skycoin.SKY_api_Client_Outputs(p0) +SKY_api_Client_Outputs = _skycoin.SKY_api_Client_Outputs -def SKY_handle_close(p0): - return _skycoin.SKY_handle_close(p0) -SKY_handle_close = _skycoin.SKY_handle_close +def SKY_api_Client_OutputsForAddresses(p0, p1): + return _skycoin.SKY_api_Client_OutputsForAddresses(p0, p1) +SKY_api_Client_OutputsForAddresses = _skycoin.SKY_api_Client_OutputsForAddresses -def SKY_handle_copy(p0): - return _skycoin.SKY_handle_copy(p0) -SKY_handle_copy = _skycoin.SKY_handle_copy +def SKY_api_Client_OutputsForHashes(p0, p1): + return _skycoin.SKY_api_Client_OutputsForHashes(p0, p1) +SKY_api_Client_OutputsForHashes = _skycoin.SKY_api_Client_OutputsForHashes -def SKY_JsonEncode_Handle(p0): - return _skycoin.SKY_JsonEncode_Handle(p0) -SKY_JsonEncode_Handle = _skycoin.SKY_JsonEncode_Handle +def SKY_api_Client_CoinSupply(p0): + return _skycoin.SKY_api_Client_CoinSupply(p0) +SKY_api_Client_CoinSupply = _skycoin.SKY_api_Client_CoinSupply -def SKY_Handle_Progress_GetCurrent(p0): - return _skycoin.SKY_Handle_Progress_GetCurrent(p0) -SKY_Handle_Progress_GetCurrent = _skycoin.SKY_Handle_Progress_GetCurrent +def SKY_api_Client_BlockByHash(p0, p1): + return _skycoin.SKY_api_Client_BlockByHash(p0, p1) +SKY_api_Client_BlockByHash = _skycoin.SKY_api_Client_BlockByHash -def SKY_Handle_Block_GetHeadSeq(p0): - return _skycoin.SKY_Handle_Block_GetHeadSeq(p0) -SKY_Handle_Block_GetHeadSeq = _skycoin.SKY_Handle_Block_GetHeadSeq +def SKY_api_Client_BlockBySeq(p0, p1): + return _skycoin.SKY_api_Client_BlockBySeq(p0, p1) +SKY_api_Client_BlockBySeq = _skycoin.SKY_api_Client_BlockBySeq -def SKY_Handle_Block_GetHeadHash(p0): - return _skycoin.SKY_Handle_Block_GetHeadHash(p0) -SKY_Handle_Block_GetHeadHash = _skycoin.SKY_Handle_Block_GetHeadHash +def SKY_api_Client_Blocks(p0, p1): + return _skycoin.SKY_api_Client_Blocks(p0, p1) +SKY_api_Client_Blocks = _skycoin.SKY_api_Client_Blocks -def SKY_Handle_Block_GetPreviousBlockHash(p0): - return _skycoin.SKY_Handle_Block_GetPreviousBlockHash(p0) -SKY_Handle_Block_GetPreviousBlockHash = _skycoin.SKY_Handle_Block_GetPreviousBlockHash +def SKY_api_Client_LastBlocks(p0, p1): + return _skycoin.SKY_api_Client_LastBlocks(p0, p1) +SKY_api_Client_LastBlocks = _skycoin.SKY_api_Client_LastBlocks -def SKY_Handle_Blocks_GetAt(p0, p1): - return _skycoin.SKY_Handle_Blocks_GetAt(p0, p1) -SKY_Handle_Blocks_GetAt = _skycoin.SKY_Handle_Blocks_GetAt +def SKY_api_Client_BlockchainMetadata(p0): + return _skycoin.SKY_api_Client_BlockchainMetadata(p0) +SKY_api_Client_BlockchainMetadata = _skycoin.SKY_api_Client_BlockchainMetadata -def SKY_Handle_Blocks_GetCount(p0): - return _skycoin.SKY_Handle_Blocks_GetCount(p0) -SKY_Handle_Blocks_GetCount = _skycoin.SKY_Handle_Blocks_GetCount +def SKY_api_Client_BlockchainProgress(p0): + return _skycoin.SKY_api_Client_BlockchainProgress(p0) +SKY_api_Client_BlockchainProgress = _skycoin.SKY_api_Client_BlockchainProgress -def SKY_Handle_Connections_GetCount(p0): - return _skycoin.SKY_Handle_Connections_GetCount(p0) -SKY_Handle_Connections_GetCount = _skycoin.SKY_Handle_Connections_GetCount +def SKY_api_Client_Balance(p0, p1, p2): + return _skycoin.SKY_api_Client_Balance(p0, p1, p2) +SKY_api_Client_Balance = _skycoin.SKY_api_Client_Balance -def SKY_Handle_Strings_GetCount(p0): - return _skycoin.SKY_Handle_Strings_GetCount(p0) -SKY_Handle_Strings_GetCount = _skycoin.SKY_Handle_Strings_GetCount +def SKY_api_Client_UxOut(p0, p1): + return _skycoin.SKY_api_Client_UxOut(p0, p1) +SKY_api_Client_UxOut = _skycoin.SKY_api_Client_UxOut -def SKY_Handle_Strings_Sort(p0): - return _skycoin.SKY_Handle_Strings_Sort(p0) -SKY_Handle_Strings_Sort = _skycoin.SKY_Handle_Strings_Sort +def SKY_api_Client_AddressUxOuts(p0, p1): + return _skycoin.SKY_api_Client_AddressUxOuts(p0, p1) +SKY_api_Client_AddressUxOuts = _skycoin.SKY_api_Client_AddressUxOuts -def SKY_Handle_Strings_GetAt(p0, p1): - return _skycoin.SKY_Handle_Strings_GetAt(p0, p1) -SKY_Handle_Strings_GetAt = _skycoin.SKY_Handle_Strings_GetAt +def SKY_api_Client_Wallet(p0, p1): + return _skycoin.SKY_api_Client_Wallet(p0, p1) +SKY_api_Client_Wallet = _skycoin.SKY_api_Client_Wallet -def SKY_api_Handle_Client_GetWalletDir(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletDir(p0) -SKY_api_Handle_Client_GetWalletDir = _skycoin.SKY_api_Handle_Client_GetWalletDir +def SKY_api_Client_Wallets(p0): + return _skycoin.SKY_api_Client_Wallets(p0) +SKY_api_Client_Wallets = _skycoin.SKY_api_Client_Wallets -def SKY_api_Handle_Client_GetWalletFileName(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletFileName(p0) -SKY_api_Handle_Client_GetWalletFileName = _skycoin.SKY_api_Handle_Client_GetWalletFileName +def SKY_api_Client_CreateUnencryptedWallet(p0, p1, p2, p3): + return _skycoin.SKY_api_Client_CreateUnencryptedWallet(p0, p1, p2, p3) +SKY_api_Client_CreateUnencryptedWallet = _skycoin.SKY_api_Client_CreateUnencryptedWallet -def SKY_api_Handle_Client_GetWalletLabel(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletLabel(p0) -SKY_api_Handle_Client_GetWalletLabel = _skycoin.SKY_api_Handle_Client_GetWalletLabel +def SKY_api_Client_CreateEncryptedWallet(p0, p1, p2, p3, p4): + return _skycoin.SKY_api_Client_CreateEncryptedWallet(p0, p1, p2, p3, p4) +SKY_api_Client_CreateEncryptedWallet = _skycoin.SKY_api_Client_CreateEncryptedWallet -def SKY_api_Handle_Client_GetWalletFullPath(p0, p1): - return _skycoin.SKY_api_Handle_Client_GetWalletFullPath(p0, p1) -SKY_api_Handle_Client_GetWalletFullPath = _skycoin.SKY_api_Handle_Client_GetWalletFullPath +def SKY_api_Client_NewWalletAddress(p0, p1, p2, p3): + return _skycoin.SKY_api_Client_NewWalletAddress(p0, p1, p2, p3) +SKY_api_Client_NewWalletAddress = _skycoin.SKY_api_Client_NewWalletAddress -def SKY_api_Handle_GetWalletMeta(p0): - return _skycoin.SKY_api_Handle_GetWalletMeta(p0) -SKY_api_Handle_GetWalletMeta = _skycoin.SKY_api_Handle_GetWalletMeta +def SKY_api_Client_WalletBalance(p0, p1, p2): + return _skycoin.SKY_api_Client_WalletBalance(p0, p1, p2) +SKY_api_Client_WalletBalance = _skycoin.SKY_api_Client_WalletBalance -def SKY_api_Handle_GetWalletEntriesCount(p0): - return _skycoin.SKY_api_Handle_GetWalletEntriesCount(p0) -SKY_api_Handle_GetWalletEntriesCount = _skycoin.SKY_api_Handle_GetWalletEntriesCount +def SKY_api_Client_CreateTransaction(p0): + return _skycoin.SKY_api_Client_CreateTransaction(p0) +SKY_api_Client_CreateTransaction = _skycoin.SKY_api_Client_CreateTransaction -def SKY_api_Handle_Client_GetWalletResponseEntriesCount(p0): - return _skycoin.SKY_api_Handle_Client_GetWalletResponseEntriesCount(p0) -SKY_api_Handle_Client_GetWalletResponseEntriesCount = _skycoin.SKY_api_Handle_Client_GetWalletResponseEntriesCount +def SKY_api_Client_UpdateWallet(p0, p1, p2): + return _skycoin.SKY_api_Client_UpdateWallet(p0, p1, p2) +SKY_api_Client_UpdateWallet = _skycoin.SKY_api_Client_UpdateWallet -def SKY_api_Handle_WalletGetEntry(p0, p1, p2, p3): - return _skycoin.SKY_api_Handle_WalletGetEntry(p0, p1, p2, p3) -SKY_api_Handle_WalletGetEntry = _skycoin.SKY_api_Handle_WalletGetEntry +def SKY_api_Client_WalletFolderName(p0): + return _skycoin.SKY_api_Client_WalletFolderName(p0) +SKY_api_Client_WalletFolderName = _skycoin.SKY_api_Client_WalletFolderName -def SKY_api_Handle_WalletResponseGetEntry(p0, p1): - return _skycoin.SKY_api_Handle_WalletResponseGetEntry(p0, p1) -SKY_api_Handle_WalletResponseGetEntry = _skycoin.SKY_api_Handle_WalletResponseGetEntry +def SKY_api_Client_NewSeed(p0, p1): + return _skycoin.SKY_api_Client_NewSeed(p0, p1) +SKY_api_Client_NewSeed = _skycoin.SKY_api_Client_NewSeed -def SKY_api_Handle_WalletResponseIsEncrypted(p0): - return _skycoin.SKY_api_Handle_WalletResponseIsEncrypted(p0) -SKY_api_Handle_WalletResponseIsEncrypted = _skycoin.SKY_api_Handle_WalletResponseIsEncrypted +def SKY_api_Client_WalletSeed(p0, p1, p2): + return _skycoin.SKY_api_Client_WalletSeed(p0, p1, p2) +SKY_api_Client_WalletSeed = _skycoin.SKY_api_Client_WalletSeed -def SKY_api_Handle_WalletResponseGetCryptoType(p0): - return _skycoin.SKY_api_Handle_WalletResponseGetCryptoType(p0) -SKY_api_Handle_WalletResponseGetCryptoType = _skycoin.SKY_api_Handle_WalletResponseGetCryptoType +def SKY_api_Client_NetworkConnection(p0, p1): + return _skycoin.SKY_api_Client_NetworkConnection(p0, p1) +SKY_api_Client_NetworkConnection = _skycoin.SKY_api_Client_NetworkConnection -def SKY_api_Handle_WalletsResponseGetCount(p0): - return _skycoin.SKY_api_Handle_WalletsResponseGetCount(p0) -SKY_api_Handle_WalletsResponseGetCount = _skycoin.SKY_api_Handle_WalletsResponseGetCount +def SKY_api_Client_NetworkConnections(p0, p1): + return _skycoin.SKY_api_Client_NetworkConnections(p0, p1) +SKY_api_Client_NetworkConnections = _skycoin.SKY_api_Client_NetworkConnections -def SKY_api_Handle_WalletsResponseGetAt(p0, p1): - return _skycoin.SKY_api_Handle_WalletsResponseGetAt(p0, p1) -SKY_api_Handle_WalletsResponseGetAt = _skycoin.SKY_api_Handle_WalletsResponseGetAt +def SKY_api_Client_NetworkDefaultPeers(p0): + return _skycoin.SKY_api_Client_NetworkDefaultPeers(p0) +SKY_api_Client_NetworkDefaultPeers = _skycoin.SKY_api_Client_NetworkDefaultPeers -def SKY_api_Handle_GetWalletFolderAddress(p0): - return _skycoin.SKY_api_Handle_GetWalletFolderAddress(p0) -SKY_api_Handle_GetWalletFolderAddress = _skycoin.SKY_api_Handle_GetWalletFolderAddress +def SKY_api_Client_NetworkTrustedPeers(p0): + return _skycoin.SKY_api_Client_NetworkTrustedPeers(p0) +SKY_api_Client_NetworkTrustedPeers = _skycoin.SKY_api_Client_NetworkTrustedPeers -def SKY_api_Handle_GetWalletSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletSeed(p0) -SKY_api_Handle_GetWalletSeed = _skycoin.SKY_api_Handle_GetWalletSeed +def SKY_api_Client_NetworkExchangedPeers(p0): + return _skycoin.SKY_api_Client_NetworkExchangedPeers(p0) +SKY_api_Client_NetworkExchangedPeers = _skycoin.SKY_api_Client_NetworkExchangedPeers -def SKY_api_Handle_GetWalletLastSeed(p0): - return _skycoin.SKY_api_Handle_GetWalletLastSeed(p0) -SKY_api_Handle_GetWalletLastSeed = _skycoin.SKY_api_Handle_GetWalletLastSeed +def SKY_api_Client_PendingTransactions(p0): + return _skycoin.SKY_api_Client_PendingTransactions(p0) +SKY_api_Client_PendingTransactions = _skycoin.SKY_api_Client_PendingTransactions -def SKY_api_Handle_GetBuildInfoData(p0): - return _skycoin.SKY_api_Handle_GetBuildInfoData(p0) -SKY_api_Handle_GetBuildInfoData = _skycoin.SKY_api_Handle_GetBuildInfoData +def SKY_api_Client_Transaction(p0, p1): + return _skycoin.SKY_api_Client_Transaction(p0, p1) +SKY_api_Client_Transaction = _skycoin.SKY_api_Client_Transaction -def SKY_map_Get(p1): - return _skycoin.SKY_map_Get(p1) -SKY_map_Get = _skycoin.SKY_map_Get +def SKY_api_Client_Transactions(p0, p1): + return _skycoin.SKY_api_Client_Transactions(p0, p1) +SKY_api_Client_Transactions = _skycoin.SKY_api_Client_Transactions -def SKY_map_HasKey(p1): - return _skycoin.SKY_map_HasKey(p1) -SKY_map_HasKey = _skycoin.SKY_map_HasKey +def SKY_api_Client_ConfirmedTransactions(p0, p1): + return _skycoin.SKY_api_Client_ConfirmedTransactions(p0, p1) +SKY_api_Client_ConfirmedTransactions = _skycoin.SKY_api_Client_ConfirmedTransactions -def SKY_map_Close(): - return _skycoin.SKY_map_Close() -SKY_map_Close = _skycoin.SKY_map_Close +def SKY_api_Client_UnconfirmedTransactions(p0, p1): + return _skycoin.SKY_api_Client_UnconfirmedTransactions(p0, p1) +SKY_api_Client_UnconfirmedTransactions = _skycoin.SKY_api_Client_UnconfirmedTransactions -def SKY_params_DropletPrecisionToDivisor(p0): - return _skycoin.SKY_params_DropletPrecisionToDivisor(p0) -SKY_params_DropletPrecisionToDivisor = _skycoin.SKY_params_DropletPrecisionToDivisor +def SKY_api_Client_InjectTransaction(p0, p1): + return _skycoin.SKY_api_Client_InjectTransaction(p0, p1) +SKY_api_Client_InjectTransaction = _skycoin.SKY_api_Client_InjectTransaction -def SKY_params_DropletPrecisionCheck(p0, p1): - return _skycoin.SKY_params_DropletPrecisionCheck(p0, p1) -SKY_params_DropletPrecisionCheck = _skycoin.SKY_params_DropletPrecisionCheck +def SKY_api_Client_ResendUnconfirmedTransactions(p0): + return _skycoin.SKY_api_Client_ResendUnconfirmedTransactions(p0) +SKY_api_Client_ResendUnconfirmedTransactions = _skycoin.SKY_api_Client_ResendUnconfirmedTransactions -def SKY_apputil_CatchInterruptPanic(): - return _skycoin.SKY_apputil_CatchInterruptPanic() -SKY_apputil_CatchInterruptPanic = _skycoin.SKY_apputil_CatchInterruptPanic +def SKY_api_Client_RawTransaction(p0, p1): + return _skycoin.SKY_api_Client_RawTransaction(p0, p1) +SKY_api_Client_RawTransaction = _skycoin.SKY_api_Client_RawTransaction -def SKY_apputil_CatchDebug(): - return _skycoin.SKY_apputil_CatchDebug() -SKY_apputil_CatchDebug = _skycoin.SKY_apputil_CatchDebug +def SKY_api_Client_Richlist(p0, p1): + return _skycoin.SKY_api_Client_Richlist(p0, p1) +SKY_api_Client_Richlist = _skycoin.SKY_api_Client_Richlist -def SKY_apputil_PrintProgramStatus(): - return _skycoin.SKY_apputil_PrintProgramStatus() -SKY_apputil_PrintProgramStatus = _skycoin.SKY_apputil_PrintProgramStatus +def SKY_api_Client_AddressCount(p0): + return _skycoin.SKY_api_Client_AddressCount(p0) +SKY_api_Client_AddressCount = _skycoin.SKY_api_Client_AddressCount -def SKY_certutil_NewTLSCertPair(p0, p1, p2): - return _skycoin.SKY_certutil_NewTLSCertPair(p0, p1, p2) -SKY_certutil_NewTLSCertPair = _skycoin.SKY_certutil_NewTLSCertPair +def SKY_api_Client_UnloadWallet(p0, p1): + return _skycoin.SKY_api_Client_UnloadWallet(p0, p1) +SKY_api_Client_UnloadWallet = _skycoin.SKY_api_Client_UnloadWallet -def SKY_droplet_FromString(p0): - return _skycoin.SKY_droplet_FromString(p0) -SKY_droplet_FromString = _skycoin.SKY_droplet_FromString +def SKY_api_Client_Health(p0): + return _skycoin.SKY_api_Client_Health(p0) +SKY_api_Client_Health = _skycoin.SKY_api_Client_Health -def SKY_droplet_ToString(p0): - return _skycoin.SKY_droplet_ToString(p0) -SKY_droplet_ToString = _skycoin.SKY_droplet_ToString +def SKY_api_Client_EncryptWallet(p0, p1, p2): + return _skycoin.SKY_api_Client_EncryptWallet(p0, p1, p2) +SKY_api_Client_EncryptWallet = _skycoin.SKY_api_Client_EncryptWallet -def SKY_fee_VerifyTransactionFee(p0, p1, p2): - return _skycoin.SKY_fee_VerifyTransactionFee(p0, p1, p2) -SKY_fee_VerifyTransactionFee = _skycoin.SKY_fee_VerifyTransactionFee +def SKY_api_Client_DecryptWallet(p0, p1, p2): + return _skycoin.SKY_api_Client_DecryptWallet(p0, p1, p2) +SKY_api_Client_DecryptWallet = _skycoin.SKY_api_Client_DecryptWallet -def SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2): - return _skycoin.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2) -SKY_fee_VerifyTransactionFeeForHours = _skycoin.SKY_fee_VerifyTransactionFeeForHours +def SKY_coin_Create_Transaction(): + return _skycoin.SKY_coin_Create_Transaction() +SKY_coin_Create_Transaction = _skycoin.SKY_coin_Create_Transaction -def SKY_fee_RequiredFee(p0, p1): - return _skycoin.SKY_fee_RequiredFee(p0, p1) -SKY_fee_RequiredFee = _skycoin.SKY_fee_RequiredFee +def SKY_coin_Transaction_Copy(p0): + return _skycoin.SKY_coin_Transaction_Copy(p0) +SKY_coin_Transaction_Copy = _skycoin.SKY_coin_Transaction_Copy -def SKY_fee_RemainingHours(p0, p1): - return _skycoin.SKY_fee_RemainingHours(p0, p1) -SKY_fee_RemainingHours = _skycoin.SKY_fee_RemainingHours +def SKY_coin_GetTransactionObject(p0): + return _skycoin.SKY_coin_GetTransactionObject(p0) +SKY_coin_GetTransactionObject = _skycoin.SKY_coin_GetTransactionObject -def SKY_fee_TransactionFee(*args): - return _skycoin.SKY_fee_TransactionFee(*args) -SKY_fee_TransactionFee = _skycoin.SKY_fee_TransactionFee +def SKY_coin_Transaction_ResetInputs(p0, p1): + return _skycoin.SKY_coin_Transaction_ResetInputs(p0, p1) +SKY_coin_Transaction_ResetInputs = _skycoin.SKY_coin_Transaction_ResetInputs -def SKY_file_InitDataDir(p0): - return _skycoin.SKY_file_InitDataDir(p0) -SKY_file_InitDataDir = _skycoin.SKY_file_InitDataDir +def SKY_coin_Transaction_GetInputsCount(p0): + return _skycoin.SKY_coin_Transaction_GetInputsCount(p0) +SKY_coin_Transaction_GetInputsCount = _skycoin.SKY_coin_Transaction_GetInputsCount -def SKY_file_UserHome(): - return _skycoin.SKY_file_UserHome() -SKY_file_UserHome = _skycoin.SKY_file_UserHome +def SKY_coin_Transaction_GetInputAt(p0, p1, p2): + return _skycoin.SKY_coin_Transaction_GetInputAt(p0, p1, p2) +SKY_coin_Transaction_GetInputAt = _skycoin.SKY_coin_Transaction_GetInputAt -def SKY_file_ResolveResourceDirectory(p0): - return _skycoin.SKY_file_ResolveResourceDirectory(p0) -SKY_file_ResolveResourceDirectory = _skycoin.SKY_file_ResolveResourceDirectory +def SKY_coin_Transaction_SetInputAt(p0, p1, p2): + return _skycoin.SKY_coin_Transaction_SetInputAt(p0, p1, p2) +SKY_coin_Transaction_SetInputAt = _skycoin.SKY_coin_Transaction_SetInputAt -def SKY_file_DetermineResourcePath(p0, p1, p2): - return _skycoin.SKY_file_DetermineResourcePath(p0, p1, p2) -SKY_file_DetermineResourcePath = _skycoin.SKY_file_DetermineResourcePath +def SKY_coin_Transaction_GetOutputsCount(p0): + return _skycoin.SKY_coin_Transaction_GetOutputsCount(p0) +SKY_coin_Transaction_GetOutputsCount = _skycoin.SKY_coin_Transaction_GetOutputsCount -def SKY_httphelper_Address_UnmarshalJSON(p0, p1): - return _skycoin.SKY_httphelper_Address_UnmarshalJSON(p0, p1) -SKY_httphelper_Address_UnmarshalJSON = _skycoin.SKY_httphelper_Address_UnmarshalJSON +def SKY_coin_Transaction_GetOutputAt(p0, p1, p2): + return _skycoin.SKY_coin_Transaction_GetOutputAt(p0, p1, p2) +SKY_coin_Transaction_GetOutputAt = _skycoin.SKY_coin_Transaction_GetOutputAt -def SKY_httphelper_Address_MarshalJSON(p0): - return _skycoin.SKY_httphelper_Address_MarshalJSON(p0) -SKY_httphelper_Address_MarshalJSON = _skycoin.SKY_httphelper_Address_MarshalJSON +def SKY_coin_Transaction_SetOutputAt(p0, p1, p2): + return _skycoin.SKY_coin_Transaction_SetOutputAt(p0, p1, p2) +SKY_coin_Transaction_SetOutputAt = _skycoin.SKY_coin_Transaction_SetOutputAt -def SKY_httphelper_Coins_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Coins_UnmarshalJSON(p1) -SKY_httphelper_Coins_UnmarshalJSON = _skycoin.SKY_httphelper_Coins_UnmarshalJSON +def SKY_coin_Transaction_GetSignaturesCount(p0): + return _skycoin.SKY_coin_Transaction_GetSignaturesCount(p0) +SKY_coin_Transaction_GetSignaturesCount = _skycoin.SKY_coin_Transaction_GetSignaturesCount -def SKY_httphelper_Coins_MarshalJSON(): - return _skycoin.SKY_httphelper_Coins_MarshalJSON() -SKY_httphelper_Coins_MarshalJSON = _skycoin.SKY_httphelper_Coins_MarshalJSON +def SKY_coin_Transaction_GetSignatureAt(p0, p1, p2): + return _skycoin.SKY_coin_Transaction_GetSignatureAt(p0, p1, p2) +SKY_coin_Transaction_GetSignatureAt = _skycoin.SKY_coin_Transaction_GetSignatureAt -def SKY_httphelper_Coins_Value(): - return _skycoin.SKY_httphelper_Coins_Value() -SKY_httphelper_Coins_Value = _skycoin.SKY_httphelper_Coins_Value +def SKY_coin_Transaction_SetSignatureAt(p0, p1, p2): + return _skycoin.SKY_coin_Transaction_SetSignatureAt(p0, p1, p2) +SKY_coin_Transaction_SetSignatureAt = _skycoin.SKY_coin_Transaction_SetSignatureAt -def SKY_httphelper_Hours_UnmarshalJSON(p1): - return _skycoin.SKY_httphelper_Hours_UnmarshalJSON(p1) -SKY_httphelper_Hours_UnmarshalJSON = _skycoin.SKY_httphelper_Hours_UnmarshalJSON +def SKY_coin_Transaction_PushSignature(p0, p1): + return _skycoin.SKY_coin_Transaction_PushSignature(p0, p1) +SKY_coin_Transaction_PushSignature = _skycoin.SKY_coin_Transaction_PushSignature -def SKY_httphelper_Hours_MarshalJSON(): - return _skycoin.SKY_httphelper_Hours_MarshalJSON() -SKY_httphelper_Hours_MarshalJSON = _skycoin.SKY_httphelper_Hours_MarshalJSON +def SKY_coin_Transaction_ResetOutputs(p0, p1): + return _skycoin.SKY_coin_Transaction_ResetOutputs(p0, p1) +SKY_coin_Transaction_ResetOutputs = _skycoin.SKY_coin_Transaction_ResetOutputs + +def SKY_coin_Transaction_ResetSignatures(p0, p1): + return _skycoin.SKY_coin_Transaction_ResetSignatures(p0, p1) +SKY_coin_Transaction_ResetSignatures = _skycoin.SKY_coin_Transaction_ResetSignatures + +def SKY_coin_Transaction_Verify(p0): + return _skycoin.SKY_coin_Transaction_Verify(p0) +SKY_coin_Transaction_Verify = _skycoin.SKY_coin_Transaction_Verify + +def SKY_coin_Transaction_PushInput(p0, p1): + return _skycoin.SKY_coin_Transaction_PushInput(p0, p1) +SKY_coin_Transaction_PushInput = _skycoin.SKY_coin_Transaction_PushInput + +def SKY_coin_TransactionOutput_UxID(p0, p1, p2): + return _skycoin.SKY_coin_TransactionOutput_UxID(p0, p1, p2) +SKY_coin_TransactionOutput_UxID = _skycoin.SKY_coin_TransactionOutput_UxID + +def SKY_coin_Transaction_PushOutput(p0, p1, p2, p3): + return _skycoin.SKY_coin_Transaction_PushOutput(p0, p1, p2, p3) +SKY_coin_Transaction_PushOutput = _skycoin.SKY_coin_Transaction_PushOutput + +def SKY_coin_Transaction_SignInputs(*args): + return _skycoin.SKY_coin_Transaction_SignInputs(*args) +SKY_coin_Transaction_SignInputs = _skycoin.SKY_coin_Transaction_SignInputs + +def SKY_coin_Transaction_Size(p0): + return _skycoin.SKY_coin_Transaction_Size(p0) +SKY_coin_Transaction_Size = _skycoin.SKY_coin_Transaction_Size + +def SKY_coin_Transaction_Hash(p0, p1): + return _skycoin.SKY_coin_Transaction_Hash(p0, p1) +SKY_coin_Transaction_Hash = _skycoin.SKY_coin_Transaction_Hash + +def SKY_coin_Transaction_SizeHash(p0, p2): + return _skycoin.SKY_coin_Transaction_SizeHash(p0, p2) +SKY_coin_Transaction_SizeHash = _skycoin.SKY_coin_Transaction_SizeHash + +def SKY_coin_Transaction_UpdateHeader(p0): + return _skycoin.SKY_coin_Transaction_UpdateHeader(p0) +SKY_coin_Transaction_UpdateHeader = _skycoin.SKY_coin_Transaction_UpdateHeader + +def SKY_coin_Transaction_HashInner(p0, p1): + return _skycoin.SKY_coin_Transaction_HashInner(p0, p1) +SKY_coin_Transaction_HashInner = _skycoin.SKY_coin_Transaction_HashInner + +def SKY_coin_Transaction_Serialize(p0): + return _skycoin.SKY_coin_Transaction_Serialize(p0) +SKY_coin_Transaction_Serialize = _skycoin.SKY_coin_Transaction_Serialize + +def SKY_coin_TransactionDeserialize(p0): + return _skycoin.SKY_coin_TransactionDeserialize(p0) +SKY_coin_TransactionDeserialize = _skycoin.SKY_coin_TransactionDeserialize + +def SKY_coin_Transaction_OutputHours(p0): + return _skycoin.SKY_coin_Transaction_OutputHours(p0) +SKY_coin_Transaction_OutputHours = _skycoin.SKY_coin_Transaction_OutputHours + +def SKY_coin_Create_Transactions(): + return _skycoin.SKY_coin_Create_Transactions() +SKY_coin_Create_Transactions = _skycoin.SKY_coin_Create_Transactions + +def SKY_coin_GetTransactionsObject(p0, p1): + return _skycoin.SKY_coin_GetTransactionsObject(p0, p1) +SKY_coin_GetTransactionsObject = _skycoin.SKY_coin_GetTransactionsObject + +def SKY_coin_Transactions_Length(p0): + return _skycoin.SKY_coin_Transactions_Length(p0) +SKY_coin_Transactions_Length = _skycoin.SKY_coin_Transactions_Length + +def SKY_coin_Transactions_Add(p0, p1): + return _skycoin.SKY_coin_Transactions_Add(p0, p1) +SKY_coin_Transactions_Add = _skycoin.SKY_coin_Transactions_Add + +def SKY_coin_Transactions_Fees(p0, p1): + return _skycoin.SKY_coin_Transactions_Fees(p0, p1) +SKY_coin_Transactions_Fees = _skycoin.SKY_coin_Transactions_Fees -def SKY_httphelper_Hours_Value(): - return _skycoin.SKY_httphelper_Hours_Value() -SKY_httphelper_Hours_Value = _skycoin.SKY_httphelper_Hours_Value +def SKY_coin_Transactions_GetAt(p0, p1): + return _skycoin.SKY_coin_Transactions_GetAt(p0, p1) +SKY_coin_Transactions_GetAt = _skycoin.SKY_coin_Transactions_GetAt -def SKY_iputil_LocalhostIP(): - return _skycoin.SKY_iputil_LocalhostIP() -SKY_iputil_LocalhostIP = _skycoin.SKY_iputil_LocalhostIP +def SKY_coin_Transactions_Hashes(*args): + return _skycoin.SKY_coin_Transactions_Hashes(*args) +SKY_coin_Transactions_Hashes = _skycoin.SKY_coin_Transactions_Hashes -def SKY_iputil_IsLocalhost(p0): - return _skycoin.SKY_iputil_IsLocalhost(p0) -SKY_iputil_IsLocalhost = _skycoin.SKY_iputil_IsLocalhost +def SKY_coin_Transactions_Size(p0): + return _skycoin.SKY_coin_Transactions_Size(p0) +SKY_coin_Transactions_Size = _skycoin.SKY_coin_Transactions_Size -def SKY_iputil_SplitAddr(p0): - return _skycoin.SKY_iputil_SplitAddr(p0) -SKY_iputil_SplitAddr = _skycoin.SKY_iputil_SplitAddr +def SKY_coin_Transactions_TruncateBytesTo(p0, p1): + return _skycoin.SKY_coin_Transactions_TruncateBytesTo(p0, p1) +SKY_coin_Transactions_TruncateBytesTo = _skycoin.SKY_coin_Transactions_TruncateBytesTo -def SKY_logging_EnableColors(): - return _skycoin.SKY_logging_EnableColors() -SKY_logging_EnableColors = _skycoin.SKY_logging_EnableColors +def SKY_coin_SortTransactions(p0, p1): + return _skycoin.SKY_coin_SortTransactions(p0, p1) +SKY_coin_SortTransactions = _skycoin.SKY_coin_SortTransactions -def SKY_logging_DisableColors(): - return _skycoin.SKY_logging_DisableColors() -SKY_logging_DisableColors = _skycoin.SKY_logging_DisableColors +def SKY_coin_NewSortableTransactions(p0, p1): + return _skycoin.SKY_coin_NewSortableTransactions(p0, p1) +SKY_coin_NewSortableTransactions = _skycoin.SKY_coin_NewSortableTransactions -def SKY_logging_Disable(): - return _skycoin.SKY_logging_Disable() -SKY_logging_Disable = _skycoin.SKY_logging_Disable +def SKY_coin_SortableTransactions_Sort(p0): + return _skycoin.SKY_coin_SortableTransactions_Sort(p0) +SKY_coin_SortableTransactions_Sort = _skycoin.SKY_coin_SortableTransactions_Sort -def SKY_wallet_NewBalance(p0, p1, p2): - return _skycoin.SKY_wallet_NewBalance(p0, p1, p2) -SKY_wallet_NewBalance = _skycoin.SKY_wallet_NewBalance +def SKY_coin_SortableTransactions_Len(p0): + return _skycoin.SKY_coin_SortableTransactions_Len(p0) +SKY_coin_SortableTransactions_Len = _skycoin.SKY_coin_SortableTransactions_Len -def SKY_wallet_NewBalanceFromUxOut(p0, p1, p2): - return _skycoin.SKY_wallet_NewBalanceFromUxOut(p0, p1, p2) -SKY_wallet_NewBalanceFromUxOut = _skycoin.SKY_wallet_NewBalanceFromUxOut +def SKY_coin_SortableTransactions_Less(p0, p1, p2): + return _skycoin.SKY_coin_SortableTransactions_Less(p0, p1, p2) +SKY_coin_SortableTransactions_Less = _skycoin.SKY_coin_SortableTransactions_Less -def SKY_wallet_Balance_Add(p0, p1, p2): - return _skycoin.SKY_wallet_Balance_Add(p0, p1, p2) -SKY_wallet_Balance_Add = _skycoin.SKY_wallet_Balance_Add +def SKY_coin_SortableTransactions_Swap(p0, p1, p2): + return _skycoin.SKY_coin_SortableTransactions_Swap(p0, p1, p2) +SKY_coin_SortableTransactions_Swap = _skycoin.SKY_coin_SortableTransactions_Swap -def SKY_wallet_Balance_Sub(p0, p1, p2): - return _skycoin.SKY_wallet_Balance_Sub(p0, p1, p2) -SKY_wallet_Balance_Sub = _skycoin.SKY_wallet_Balance_Sub +def SKY_coin_VerifyTransactionCoinsSpending(*args): + return _skycoin.SKY_coin_VerifyTransactionCoinsSpending(*args) +SKY_coin_VerifyTransactionCoinsSpending = _skycoin.SKY_coin_VerifyTransactionCoinsSpending -def SKY_wallet_Balance_Equals(p0, p1): - return _skycoin.SKY_wallet_Balance_Equals(p0, p1) -SKY_wallet_Balance_Equals = _skycoin.SKY_wallet_Balance_Equals +def SKY_coin_VerifyTransactionHoursSpending(*args): + return _skycoin.SKY_coin_VerifyTransactionHoursSpending(*args) +SKY_coin_VerifyTransactionHoursSpending = _skycoin.SKY_coin_VerifyTransactionHoursSpending -def SKY_wallet_Balance_IsZero(p0): - return _skycoin.SKY_wallet_Balance_IsZero(p0) -SKY_wallet_Balance_IsZero = _skycoin.SKY_wallet_Balance_IsZero +def SKY_coin_VerifyInputSignatures(*args): + return _skycoin.SKY_coin_VerifyInputSignatures(*args) +SKY_coin_VerifyInputSignatures = _skycoin.SKY_coin_VerifyInputSignatures -def SKY_wallet_CryptoTypeFromString(p0): - return _skycoin.SKY_wallet_CryptoTypeFromString(p0) -SKY_wallet_CryptoTypeFromString = _skycoin.SKY_wallet_CryptoTypeFromString +def SKY_bip39_NewDefaultMnemomic(): + return _skycoin.SKY_bip39_NewDefaultMnemomic() +SKY_bip39_NewDefaultMnemomic = _skycoin.SKY_bip39_NewDefaultMnemomic -def SKY_wallet_Entry_Verify(p0): - return _skycoin.SKY_wallet_Entry_Verify(p0) -SKY_wallet_Entry_Verify = _skycoin.SKY_wallet_Entry_Verify +def SKY_bip39_NewEntropy(p0): + return _skycoin.SKY_bip39_NewEntropy(p0) +SKY_bip39_NewEntropy = _skycoin.SKY_bip39_NewEntropy -def SKY_wallet_Entry_VerifyPublic(p0): - return _skycoin.SKY_wallet_Entry_VerifyPublic(p0) -SKY_wallet_Entry_VerifyPublic = _skycoin.SKY_wallet_Entry_VerifyPublic +def SKY_bip39_NewMnemonic(p0): + return _skycoin.SKY_bip39_NewMnemonic(p0) +SKY_bip39_NewMnemonic = _skycoin.SKY_bip39_NewMnemonic -def SKY_wallet_NewReadableEntry(p0, p1): - return _skycoin.SKY_wallet_NewReadableEntry(p0, p1) -SKY_wallet_NewReadableEntry = _skycoin.SKY_wallet_NewReadableEntry +def SKY_bip39_ValidateMnemonic(p0): + return _skycoin.SKY_bip39_ValidateMnemonic(p0) +SKY_bip39_ValidateMnemonic = _skycoin.SKY_bip39_ValidateMnemonic -def SKY_wallet_LoadReadableWallet(p0): - return _skycoin.SKY_wallet_LoadReadableWallet(p0) -SKY_wallet_LoadReadableWallet = _skycoin.SKY_wallet_LoadReadableWallet +def SKY_bip39_NewSeed(p0, p1): + return _skycoin.SKY_bip39_NewSeed(p0, p1) +SKY_bip39_NewSeed = _skycoin.SKY_bip39_NewSeed -def SKY_wallet_ReadableWallet_Save(p0, p1): - return _skycoin.SKY_wallet_ReadableWallet_Save(p0, p1) -SKY_wallet_ReadableWallet_Save = _skycoin.SKY_wallet_ReadableWallet_Save +def SKY_coin_UxOut_Hash(p0, p1): + return _skycoin.SKY_coin_UxOut_Hash(p0, p1) +SKY_coin_UxOut_Hash = _skycoin.SKY_coin_UxOut_Hash -def SKY_wallet_ReadableWallet_Load(p0, p1): - return _skycoin.SKY_wallet_ReadableWallet_Load(p0, p1) -SKY_wallet_ReadableWallet_Load = _skycoin.SKY_wallet_ReadableWallet_Load +def SKY_coin_UxOut_SnapshotHash(p0, p1): + return _skycoin.SKY_coin_UxOut_SnapshotHash(p0, p1) +SKY_coin_UxOut_SnapshotHash = _skycoin.SKY_coin_UxOut_SnapshotHash -def SKY_wallet_ReadableWallet_Erase(p0): - return _skycoin.SKY_wallet_ReadableWallet_Erase(p0) -SKY_wallet_ReadableWallet_Erase = _skycoin.SKY_wallet_ReadableWallet_Erase +def SKY_coin_UxBody_Hash(p0, p1): + return _skycoin.SKY_coin_UxBody_Hash(p0, p1) +SKY_coin_UxBody_Hash = _skycoin.SKY_coin_UxBody_Hash -def SKY_wallet_NewError(p0): - return _skycoin.SKY_wallet_NewError(p0) -SKY_wallet_NewError = _skycoin.SKY_wallet_NewError +def SKY_coin_UxOut_CoinHours(p0, p1): + return _skycoin.SKY_coin_UxOut_CoinHours(p0, p1) +SKY_coin_UxOut_CoinHours = _skycoin.SKY_coin_UxOut_CoinHours -def SKY_wallet_NewWallet(p0, p1): - return _skycoin.SKY_wallet_NewWallet(p0, p1) -SKY_wallet_NewWallet = _skycoin.SKY_wallet_NewWallet +def SKY_coin_UxArray_Hashes(*args): + return _skycoin.SKY_coin_UxArray_Hashes(*args) +SKY_coin_UxArray_Hashes = _skycoin.SKY_coin_UxArray_Hashes -def SKY_wallet_Wallet_Lock(p0, p1, p2): - return _skycoin.SKY_wallet_Wallet_Lock(p0, p1, p2) -SKY_wallet_Wallet_Lock = _skycoin.SKY_wallet_Wallet_Lock +def SKY_coin_UxArray_HasDupes(*args): + return _skycoin.SKY_coin_UxArray_HasDupes(*args) +SKY_coin_UxArray_HasDupes = _skycoin.SKY_coin_UxArray_HasDupes -def SKY_wallet_Wallet_Unlock(p0, p1): - return _skycoin.SKY_wallet_Wallet_Unlock(p0, p1) -SKY_wallet_Wallet_Unlock = _skycoin.SKY_wallet_Wallet_Unlock +def SKY_coin_UxArray_Sort(): + return _skycoin.SKY_coin_UxArray_Sort() +SKY_coin_UxArray_Sort = _skycoin.SKY_coin_UxArray_Sort -def SKY_wallet_Load(p0): - return _skycoin.SKY_wallet_Load(p0) -SKY_wallet_Load = _skycoin.SKY_wallet_Load +def SKY_coin_UxArray_Len(): + return _skycoin.SKY_coin_UxArray_Len() +SKY_coin_UxArray_Len = _skycoin.SKY_coin_UxArray_Len -def SKY_wallet_Wallet_Save(p0, p1): - return _skycoin.SKY_wallet_Wallet_Save(p0, p1) -SKY_wallet_Wallet_Save = _skycoin.SKY_wallet_Wallet_Save +def SKY_coin_UxArray_Less(*args): + return _skycoin.SKY_coin_UxArray_Less(*args) +SKY_coin_UxArray_Less = _skycoin.SKY_coin_UxArray_Less -def SKY_wallet_Wallet_Validate(p0): - return _skycoin.SKY_wallet_Wallet_Validate(p0) -SKY_wallet_Wallet_Validate = _skycoin.SKY_wallet_Wallet_Validate +def SKY_coin_UxArray_Swap(*args): + return _skycoin.SKY_coin_UxArray_Swap(*args) +SKY_coin_UxArray_Swap = _skycoin.SKY_coin_UxArray_Swap -def SKY_wallet_Wallet_Type(p0): - return _skycoin.SKY_wallet_Wallet_Type(p0) -SKY_wallet_Wallet_Type = _skycoin.SKY_wallet_Wallet_Type +def SKY_coin_UxArray_Coins(*args): + return _skycoin.SKY_coin_UxArray_Coins(*args) +SKY_coin_UxArray_Coins = _skycoin.SKY_coin_UxArray_Coins -def SKY_wallet_Wallet_Version(p0): - return _skycoin.SKY_wallet_Wallet_Version(p0) -SKY_wallet_Wallet_Version = _skycoin.SKY_wallet_Wallet_Version +def SKY_coin_UxArray_CoinHours(*args): + return _skycoin.SKY_coin_UxArray_CoinHours(*args) +SKY_coin_UxArray_CoinHours = _skycoin.SKY_coin_UxArray_CoinHours -def SKY_wallet_Wallet_Filename(p0): - return _skycoin.SKY_wallet_Wallet_Filename(p0) -SKY_wallet_Wallet_Filename = _skycoin.SKY_wallet_Wallet_Filename +def SKY_coin_UxArray_Sub(*args): + return _skycoin.SKY_coin_UxArray_Sub(*args) +SKY_coin_UxArray_Sub = _skycoin.SKY_coin_UxArray_Sub -def SKY_wallet_Wallet_Label(p0): - return _skycoin.SKY_wallet_Wallet_Label(p0) -SKY_wallet_Wallet_Label = _skycoin.SKY_wallet_Wallet_Label +def SKY_coin_UxArray_Add(*args): + return _skycoin.SKY_coin_UxArray_Add(*args) +SKY_coin_UxArray_Add = _skycoin.SKY_coin_UxArray_Add -def SKY_wallet_Wallet_IsEncrypted(p0): - return _skycoin.SKY_wallet_Wallet_IsEncrypted(p0) -SKY_wallet_Wallet_IsEncrypted = _skycoin.SKY_wallet_Wallet_IsEncrypted +def SKY_coin_NewAddressUxOuts(*args): + return _skycoin.SKY_coin_NewAddressUxOuts(*args) +SKY_coin_NewAddressUxOuts = _skycoin.SKY_coin_NewAddressUxOuts -def SKY_wallet_Wallet_GenerateAddresses(p0, p1): - return _skycoin.SKY_wallet_Wallet_GenerateAddresses(p0, p1) -SKY_wallet_Wallet_GenerateAddresses = _skycoin.SKY_wallet_Wallet_GenerateAddresses +def SKY_coin_AddressUxOuts_Keys(*args): + return _skycoin.SKY_coin_AddressUxOuts_Keys(*args) +SKY_coin_AddressUxOuts_Keys = _skycoin.SKY_coin_AddressUxOuts_Keys -def SKY_wallet_Wallet_GetAddresses(p0): - return _skycoin.SKY_wallet_Wallet_GetAddresses(p0) -SKY_wallet_Wallet_GetAddresses = _skycoin.SKY_wallet_Wallet_GetAddresses +def SKY_coin_AddressUxOuts_Flatten(*args): + return _skycoin.SKY_coin_AddressUxOuts_Flatten(*args) +SKY_coin_AddressUxOuts_Flatten = _skycoin.SKY_coin_AddressUxOuts_Flatten -def SKY_wallet_Wallet_GetEntry(p0, p1, p2): - return _skycoin.SKY_wallet_Wallet_GetEntry(p0, p1, p2) -SKY_wallet_Wallet_GetEntry = _skycoin.SKY_wallet_Wallet_GetEntry +def SKY_coin_AddressUxOuts_Sub(p0, p1): + return _skycoin.SKY_coin_AddressUxOuts_Sub(p0, p1) +SKY_coin_AddressUxOuts_Sub = _skycoin.SKY_coin_AddressUxOuts_Sub -def SKY_wallet_Wallet_AddEntry(p0, p1): - return _skycoin.SKY_wallet_Wallet_AddEntry(p0, p1) -SKY_wallet_Wallet_AddEntry = _skycoin.SKY_wallet_Wallet_AddEntry +def SKY_coin_AddressUxOuts_Add(p0, p1): + return _skycoin.SKY_coin_AddressUxOuts_Add(p0, p1) +SKY_coin_AddressUxOuts_Add = _skycoin.SKY_coin_AddressUxOuts_Add -def SKY_wallet_DistributeSpendHours(p0, p1, p2): - return _skycoin.SKY_wallet_DistributeSpendHours(p0, p1, p2) -SKY_wallet_DistributeSpendHours = _skycoin.SKY_wallet_DistributeSpendHours +def SKY_coin_AddressUxOuts_Get(*args): + return _skycoin.SKY_coin_AddressUxOuts_Get(*args) +SKY_coin_AddressUxOuts_Get = _skycoin.SKY_coin_AddressUxOuts_Get -def SKY_wallet_DistributeCoinHoursProportional(p0, p1): - return _skycoin.SKY_wallet_DistributeCoinHoursProportional(p0, p1) -SKY_wallet_DistributeCoinHoursProportional = _skycoin.SKY_wallet_DistributeCoinHoursProportional +def SKY_coin_AddressUxOuts_HasKey(p0, p1): + return _skycoin.SKY_coin_AddressUxOuts_HasKey(p0, p1) +SKY_coin_AddressUxOuts_HasKey = _skycoin.SKY_coin_AddressUxOuts_HasKey -def SKY_wallet_NewUxBalances(p0): - return _skycoin.SKY_wallet_NewUxBalances(p0) -SKY_wallet_NewUxBalances = _skycoin.SKY_wallet_NewUxBalances +def SKY_coin_AddressUxOuts_GetOutputLength(p0, p1): + return _skycoin.SKY_coin_AddressUxOuts_GetOutputLength(p0, p1) +SKY_coin_AddressUxOuts_GetOutputLength = _skycoin.SKY_coin_AddressUxOuts_GetOutputLength -def SKY_wallet_NewUxBalance(p0, p1, p2): - return _skycoin.SKY_wallet_NewUxBalance(p0, p1, p2) -SKY_wallet_NewUxBalance = _skycoin.SKY_wallet_NewUxBalance +def SKY_coin_AddressUxOuts_Length(p0): + return _skycoin.SKY_coin_AddressUxOuts_Length(p0) +SKY_coin_AddressUxOuts_Length = _skycoin.SKY_coin_AddressUxOuts_Length -def SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2): - return _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts(p0, p1, p2) -SKY_wallet_ChooseSpendsMinimizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMinimizeUxOuts +def SKY_coin_AddressUxOuts_Set(*args): + return _skycoin.SKY_coin_AddressUxOuts_Set(*args) +SKY_coin_AddressUxOuts_Set = _skycoin.SKY_coin_AddressUxOuts_Set -def SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2): - return _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts(p0, p1, p2) -SKY_wallet_ChooseSpendsMaximizeUxOuts = _skycoin.SKY_wallet_ChooseSpendsMaximizeUxOuts +def SKY_params_DropletPrecisionToDivisor(p0): + return _skycoin.SKY_params_DropletPrecisionToDivisor(p0) +SKY_params_DropletPrecisionToDivisor = _skycoin.SKY_params_DropletPrecisionToDivisor -def SKY_wallet_CreateOptionsHandle(p0, p1, p2, p3, p4, p5, p6): - return _skycoin.SKY_wallet_CreateOptionsHandle(p0, p1, p2, p3, p4, p5, p6) -SKY_wallet_CreateOptionsHandle = _skycoin.SKY_wallet_CreateOptionsHandle +def SKY_params_DropletPrecisionCheck(p0, p1): + return _skycoin.SKY_params_DropletPrecisionCheck(p0, p1) +SKY_params_DropletPrecisionCheck = _skycoin.SKY_params_DropletPrecisionCheck class api__RichlistParams(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, api__RichlistParams, name, value) @@ -2855,43 +2795,77 @@ def __init__(self): wallet__ReadableNote_swigregister = _skycoin.wallet__ReadableNote_swigregister wallet__ReadableNote_swigregister(wallet__ReadableNote) -class wallet__UxBalance(_object): +class transaction__UxBalance(_object): __swig_setmethods__ = {} - __setattr__ = lambda self, name, value: _swig_setattr(self, wallet__UxBalance, name, value) + __setattr__ = lambda self, name, value: _swig_setattr(self, transaction__UxBalance, name, value) __swig_getmethods__ = {} - __getattr__ = lambda self, name: _swig_getattr(self, wallet__UxBalance, name) + __getattr__ = lambda self, name: _swig_getattr(self, transaction__UxBalance, name) __repr__ = _swig_repr - __swig_setmethods__["Hash"] = _skycoin.wallet__UxBalance_Hash_set - __swig_getmethods__["Hash"] = _skycoin.wallet__UxBalance_Hash_get + __swig_setmethods__["Hash"] = _skycoin.transaction__UxBalance_Hash_set + __swig_getmethods__["Hash"] = _skycoin.transaction__UxBalance_Hash_get + if _newclass: + Hash = _swig_property(_skycoin.transaction__UxBalance_Hash_get, _skycoin.transaction__UxBalance_Hash_set) + __swig_setmethods__["BkSeq"] = _skycoin.transaction__UxBalance_BkSeq_set + __swig_getmethods__["BkSeq"] = _skycoin.transaction__UxBalance_BkSeq_get + if _newclass: + BkSeq = _swig_property(_skycoin.transaction__UxBalance_BkSeq_get, _skycoin.transaction__UxBalance_BkSeq_set) + __swig_setmethods__["Address"] = _skycoin.transaction__UxBalance_Address_set + __swig_getmethods__["Address"] = _skycoin.transaction__UxBalance_Address_get + if _newclass: + Address = _swig_property(_skycoin.transaction__UxBalance_Address_get, _skycoin.transaction__UxBalance_Address_set) + __swig_setmethods__["Coins"] = _skycoin.transaction__UxBalance_Coins_set + __swig_getmethods__["Coins"] = _skycoin.transaction__UxBalance_Coins_get if _newclass: - Hash = _swig_property(_skycoin.wallet__UxBalance_Hash_get, _skycoin.wallet__UxBalance_Hash_set) - __swig_setmethods__["BkSeq"] = _skycoin.wallet__UxBalance_BkSeq_set - __swig_getmethods__["BkSeq"] = _skycoin.wallet__UxBalance_BkSeq_get + Coins = _swig_property(_skycoin.transaction__UxBalance_Coins_get, _skycoin.transaction__UxBalance_Coins_set) + __swig_setmethods__["Hours"] = _skycoin.transaction__UxBalance_Hours_set + __swig_getmethods__["Hours"] = _skycoin.transaction__UxBalance_Hours_get if _newclass: - BkSeq = _swig_property(_skycoin.wallet__UxBalance_BkSeq_get, _skycoin.wallet__UxBalance_BkSeq_set) - __swig_setmethods__["Address"] = _skycoin.wallet__UxBalance_Address_set - __swig_getmethods__["Address"] = _skycoin.wallet__UxBalance_Address_get + Hours = _swig_property(_skycoin.transaction__UxBalance_Hours_get, _skycoin.transaction__UxBalance_Hours_set) + __swig_setmethods__["InitialHours"] = _skycoin.transaction__UxBalance_InitialHours_set + __swig_getmethods__["InitialHours"] = _skycoin.transaction__UxBalance_InitialHours_get if _newclass: - Address = _swig_property(_skycoin.wallet__UxBalance_Address_get, _skycoin.wallet__UxBalance_Address_set) - __swig_setmethods__["Coins"] = _skycoin.wallet__UxBalance_Coins_set - __swig_getmethods__["Coins"] = _skycoin.wallet__UxBalance_Coins_get + InitialHours = _swig_property(_skycoin.transaction__UxBalance_InitialHours_get, _skycoin.transaction__UxBalance_InitialHours_set) + __swig_setmethods__["SrcTransaction"] = _skycoin.transaction__UxBalance_SrcTransaction_set + __swig_getmethods__["SrcTransaction"] = _skycoin.transaction__UxBalance_SrcTransaction_get + if _newclass: + SrcTransaction = _swig_property(_skycoin.transaction__UxBalance_SrcTransaction_get, _skycoin.transaction__UxBalance_SrcTransaction_set) + + def __init__(self): + this = _skycoin.new_transaction__UxBalance() + try: + self.this.append(this) + except __builtin__.Exception: + self.this = this + __swig_destroy__ = _skycoin.delete_transaction__UxBalance + __del__ = lambda self: None +transaction__UxBalance_swigregister = _skycoin.transaction__UxBalance_swigregister +transaction__UxBalance_swigregister(transaction__UxBalance) + +class api__TransactionInput(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, api__TransactionInput, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, api__TransactionInput, name) + __repr__ = _swig_repr + __swig_setmethods__["UxOut"] = _skycoin.api__TransactionInput_UxOut_set + __swig_getmethods__["UxOut"] = _skycoin.api__TransactionInput_UxOut_get if _newclass: - Coins = _swig_property(_skycoin.wallet__UxBalance_Coins_get, _skycoin.wallet__UxBalance_Coins_set) - __swig_setmethods__["Hours"] = _skycoin.wallet__UxBalance_Hours_set - __swig_getmethods__["Hours"] = _skycoin.wallet__UxBalance_Hours_get + UxOut = _swig_property(_skycoin.api__TransactionInput_UxOut_get, _skycoin.api__TransactionInput_UxOut_set) + __swig_setmethods__["CalculatedHours"] = _skycoin.api__TransactionInput_CalculatedHours_set + __swig_getmethods__["CalculatedHours"] = _skycoin.api__TransactionInput_CalculatedHours_get if _newclass: - Hours = _swig_property(_skycoin.wallet__UxBalance_Hours_get, _skycoin.wallet__UxBalance_Hours_set) + CalculatedHours = _swig_property(_skycoin.api__TransactionInput_CalculatedHours_get, _skycoin.api__TransactionInput_CalculatedHours_set) def __init__(self): - this = _skycoin.new_wallet__UxBalance() + this = _skycoin.new_api__TransactionInput() try: self.this.append(this) except __builtin__.Exception: self.this = this - __swig_destroy__ = _skycoin.delete_wallet__UxBalance + __swig_destroy__ = _skycoin.delete_api__TransactionInput __del__ = lambda self: None -wallet__UxBalance_swigregister = _skycoin.wallet__UxBalance_swigregister -wallet__UxBalance_swigregister(wallet__UxBalance) +api__TransactionInput_swigregister = _skycoin.api__TransactionInput_swigregister +api__TransactionInput_swigregister(api__TransactionInput) SKY_OK = _skycoin.SKY_OK SKY_ERROR = _skycoin.SKY_ERROR diff --git a/swig/structs.i b/swig/structs.i index 2575214d..1a733897 100644 --- a/swig/structs.i +++ b/swig/structs.i @@ -27,3 +27,6 @@ %include "wallet.notes.go.h" %include "wallet.wallet.go.h" +%include "transaction.choose.go.h" +%include "api.send.go.h" +