Skip to main content

moon-vault-api

Project description

moon-sdk

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.4.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/moon-up/moon-sdk-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/moon-up/moon-sdk-python.git)

Then import the package:

import moonsdk

Setuptools

Install via Setuptools.

python setup.py install --user

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

Then import the package:

import moonsdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import moonsdk
from moonsdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://beta.usemoon.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = moonsdk.Configuration(
    host = "https://beta.usemoon.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'

# Configure API key authorization: BearerAuth
configuration.api_key['BearerAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['BearerAuth'] = 'Bearer'


# Enter a context with an instance of the API client
async with moonsdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = moonsdk.AaveApi(api_client)
    authorization = 'authorization_example' # str | 
    name = 'name_example' # str | 
    aave_input = moonsdk.AaveInput() # AaveInput | 

    try:
        api_response = await api_instance.borrow(authorization, name, aave_input)
        print("The response of AaveApi->borrow:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AaveApi->borrow: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://beta.usemoon.ai

Class Method HTTP request Description
AaveApi borrow POST /aave/{name}/borrow
AaveApi lend POST /aave/{name}/lend
AaveApi repay POST /aave/{name}/repay
AaveApi user_reserve_data POST /aave/{name}/user-reserve-data
AccountsApi broadcast_tx POST /accounts/{accountName}/broadcast-tx
AccountsApi create_account POST /accounts
AccountsApi delete_account DELETE /accounts/{accountName}
AccountsApi deploy_contract POST /accounts/{accountName}/deploy
AccountsApi get_account GET /accounts/{accountName}
AccountsApi get_balance GET /accounts/{accountName}/balance
AccountsApi get_nonce GET /accounts/{accountName}/nonce
AccountsApi list_accounts GET /accounts
AccountsApi sign_message POST /accounts/{accountName}/sign-message
AccountsApi sign_transaction POST /accounts/{accountName}/sign-transaction
AccountsApi sign_typed_data POST /accounts/{accountName}/sign-typed-data
AccountsApi transfer_eth POST /accounts/{accountName}/transfer-eth
BitcoinApi create_bitcoin_account POST /bitcoin
BitcoinApi get_bitcoin_account GET /bitcoin/{accountName}
BitcoinApi list_bitcoin_accounts GET /bitcoin
BitcoinApi sign_bitcoin_transaction POST /bitcoin/{accountName}/sign-tx
ConveyorFinanceApi swap POST /conveyorfinance/{name}/swap
CosmosApi create_cosmos_account POST /cosmos
CosmosApi get_cosmos_account GET /cosmos/{accountName}
CosmosApi list_cosmos_accounts GET /cosmos
CosmosApi sign_cosmos_transaction POST /cosmos/{accountName}/sign-tx
DogeCoinApi create_doge_coin_account POST /dogecoin
DogeCoinApi get_doge_coin_account GET /dogecoin/{accountName}
DogeCoinApi list_doge_coin_accounts GET /dogecoin
DogeCoinApi sign_doge_coin_transaction POST /dogecoin/{accountName}/sign-tx
ENSApi resolve POST /ens/resolve
ERC1155Api balance_of POST /erc1155/{name}/balance-of
ERC1155Api balance_of_batch POST /erc1155/{name}/balance-of-batch
ERC1155Api is_approved_for_all POST /erc1155/{name}/is-approved-for-all
ERC1155Api safe_batch_transfer_from POST /erc1155/{name}/safe-batch-transfer-from
ERC1155Api safe_transfer_from POST /erc1155/{name}/safe-transfer-from
ERC1155Api set_approval_for_all POST /erc1155/{name}/set-approval-for-all
Erc20Api allowance_erc20 POST /erc20/{name}/allowance
Erc20Api approve_erc20 POST /erc20/{name}/approve
Erc20Api balance_of_erc20 POST /erc20/{name}/balance-of
Erc20Api decimals_erc20 POST /erc20/{name}/decimals
Erc20Api name_erc20 POST /erc20/{name}/name
Erc20Api symbol_erc20 POST /erc20/{name}/symbol
Erc20Api total_supply_erc20 POST /erc20/{name}/total-supply
Erc20Api transfer_erc20 POST /erc20/{name}/transfer
Erc20Api transfer_from_erc20 POST /erc20/{name}/transfer-from
Erc721Api approve POST /erc721/{name}/approve
Erc721Api balance_of POST /erc721/{name}/balance-of
Erc721Api get_approved POST /erc721/{name}/get-approved
Erc721Api is_approved_for_all POST /erc721/{name}/is-approved-for-all
Erc721Api name POST /erc721/{name}/name
Erc721Api owner_of POST /erc721/{name}/owner-of
Erc721Api safe_transfer_from POST /erc721/{name}/safe-transfer-from
Erc721Api set_approval_for_all POST /erc721/{name}/set-approval-for-all
Erc721Api symbol POST /erc721/{name}/symbol
Erc721Api token_uri POST /erc721/{name}/token-uri
Erc721Api transfer POST /erc721/{name}/transfer
Erc721Api transfer_from POST /erc721/{name}/transfer-from
LitecoinApi create_litecoin_account POST /litecoin
LitecoinApi get_litecoin_account GET /litecoin/{accountName}
LitecoinApi list_litecoin_accounts GET /litecoin
LitecoinApi sign_litecoin_transaction POST /litecoin/{accountName}/sign-tx
SolanaApi create_solana_account POST /solana
SolanaApi get_solana_account GET /solana/{accountName}
SolanaApi list_solana_accounts GET /solana
SolanaApi sign_solana_transaction POST /solana/{accountName}/sign-tx
TronApi create_tron_account POST /tron
TronApi get_tron_account GET /tron/{accountName}
TronApi list_tron_accounts GET /tron
TronApi sign_tron_transaction POST /tron/{accountName}/sign-tx
UniSwapApi add_liquidity POST /uniswap/{name}/add-liquidity
UniSwapApi remove_liquidity POST /uniswap/{name}/remove-liquidity
UniSwapApi swap_exact_eth_for_tokens POST /uniswap/{name}/swap-exact-eth-for-tokens
UniSwapApi swap_exact_tokens_for_tokens POST /uniswap/{name}/swap-exact-tokens-for-tokens
BitcoincashApi create_bitcoin_cash_account POST /bitcoincash
BitcoincashApi get_bitcoin_cash_account GET /bitcoincash/{accountName}
BitcoincashApi list_bitcoin_cash_accounts GET /bitcoincash
BitcoincashApi sign_bitcoin_cash_transaction POST /bitcoincash/{accountName}/sign-tx
DefaultApi get_message GET /ping
EosApi create_eos_account POST /eos
EosApi get_eos_account GET /eos/{accountName}
EosApi list_eos_accounts GET /eos
EosApi sign_eos_transaction POST /eos/{accountName}/sign-tx
OneinchApi approve_call_data POST /oneinch/approve-call-data
OneinchApi approve_spender POST /oneinch/approve-spender
OneinchApi protocols POST /oneinch/protocols
OneinchApi quote POST /oneinch/quote
OneinchApi swap POST /oneinch/{accountName}/swap
OneinchApi tokens POST /oneinch/tokens
OnramperApi on_ramper_checkout POST /onramper/fund/${accountName}
OnramperApi on_ramper_get_quotes_buy GET /onramper/quotes/buy
OnramperApi on_ramper_get_quotes_sell GET /onramper/quotes/sell
OnramperApi on_ramper_get_supported_assets GET /onramper/assets
OnramperApi on_ramper_get_supported_currencies GET /onramper/currencies
OnramperApi on_ramper_get_supported_defaults_all GET /onramper/defaults
OnramperApi on_ramper_get_supported_on_ramps_all GET /onramper/onramps
OnramperApi on_ramper_get_supported_payment_types GET /onramper/payment-types
OnramperApi on_ramper_get_supported_payment_types_fiat GET /onramper/payment-types/fiat
RippleApi create_ripple_account POST /ripple
RippleApi get_ripple_account GET /ripple/{accountName}
RippleApi list_ripple_accounts GET /ripple
RippleApi sign_ripple_transaction POST /ripple/{accountName}/sign-tx
YearnApi add_liquidity POST /yearn/{name}/add-liquidity
YearnApi add_liquidity_weth POST /yearn/{name}/add-liquidity-weth
YearnApi remove_liquidity POST /yearn/{name}/remove-liquidity
YearnApi remove_liquidity_weth POST /yearn/{name}/remove-liquidity-weth

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BearerAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

OAuth2

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes:
  • authorization_code: grants authorization_code

ApiKeyAuth

  • Type: API key
  • API key parameter name: x-api-key
  • Location: HTTP header

Author

Project details


Download files

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

Source Distribution

moonsdk-1.0.2.tar.gz (75.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moonsdk-1.0.2-py3-none-any.whl (217.4 kB view details)

Uploaded Python 3

File details

Details for the file moonsdk-1.0.2.tar.gz.

File metadata

  • Download URL: moonsdk-1.0.2.tar.gz
  • Upload date:
  • Size: 75.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.8.2-arch2-1

File hashes

Hashes for moonsdk-1.0.2.tar.gz
Algorithm Hash digest
SHA256 415d66d100cc1937c26fbc4d93cec4eb6e3fd7dc643501df55b2897c5dcccc41
MD5 097bb6c207aebd768403dc6812902ab3
BLAKE2b-256 511807ba75561e6e80572eb7511461ea7ffa1c41bec0f077c8da98cef1f3eaee

See more details on using hashes here.

File details

Details for the file moonsdk-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: moonsdk-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 217.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.8.2-arch2-1

File hashes

Hashes for moonsdk-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 feb34834aa720bc7d519a5f3876e0c8c19f9f1518ccdb610b0c9dd3d6d0e7cb1
MD5 7b7b990f196cd5f0dd8ff0cc56a806f7
BLAKE2b-256 b083157df1aba66934b9cd20c2c0e291a5b97f0c8d1abc485e7b838f2753a96d

See more details on using hashes here.

Supported by

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