All URIs are relative to https://testnet.mvcapi.com
Method | HTTP request | Description |
---|---|---|
merchant_utxo_post | POST /merchant/utxo | Pick utxos by addresses and amount. |
[AddressUtxo] merchant_utxo_post()
Pick utxos by addresses and amount.
Selects a set of Utxos with total value higher than the given amount from a given address list . In case of HD wallets, multiple addresses can be specified.
- Bearer (JWT) Authentication (bearerAuth):
import time
import mvcapi-sdk
from mvcapi-sdk.api import merchant_api
from mvcapi-sdk.model.utxo_pick_request import UtxoPickRequest
from mvcapi-sdk.model.address_utxo import AddressUtxo
from pprint import pprint
# Defining the host is optional and defaults to https://testnet.mvcapi.com
# See configuration.py for a list of all supported configuration parameters.
configuration = mvcapi-sdk.Configuration(
host = "https://testnet.mvcapi.com"
)
# 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 Bearer authorization (JWT): bearerAuth
configuration = mvcapi-sdk.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with mvcapi-sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = merchant_api.MerchantApi(api_client)
utxo_pick_request = UtxoPickRequest(
addresses=[
"addresses_example",
],
amount=1,
) # UtxoPickRequest | (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
# Pick utxos by addresses and amount.
api_response = api_instance.merchant_utxo_post(utxo_pick_request=utxo_pick_request)
pprint(api_response)
except mvcapi-sdk.ApiException as e:
print("Exception when calling MerchantApi->merchant_utxo_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
utxo_pick_request | UtxoPickRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | utxo pick success | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]