Skip to main content

estuary_client.MinerApi

All URIs are relative to //api.estuary.tech/

MethodHTTP requestDescription
public_miners_deals_miner_getGET /public/miners/deals/{miner}Get all miners deals
public_miners_stats_miner_getGET /public/miners/stats/{miner}Get miner stats

public_miners_deals_miner_get

str public_miners_deals_miner_get(miner, ignore_failed=ignore_failed)

Get all miners deals

This endpoint returns all miners deals

Example

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

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
miner = 'miner_example' # str | Filter by miner
ignore_failed = 'ignore_failed_example' # str | Ignore Failed (optional)

try:
# Get all miners deals
api_response = api_instance.public_miners_deals_miner_get(miner, ignore_failed=ignore_failed)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->public_miners_deals_miner_get: %s\n" % e)

Parameters

NameTypeDescriptionNotes
minerstrFilter by miner
ignore_failedstrIgnore Failed[optional]

Return type

str

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

public_miners_stats_miner_get

str public_miners_stats_miner_get(miner)

Get miner stats

This endpoint returns miner stats

Example

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

# Configure API key authorization: bearerAuth
configuration = estuary_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'

# create an instance of the API class
api_instance = estuary_client.MinerApi(estuary_client.ApiClient(configuration))
miner = 'miner_example' # str | Filter by miner

try:
# Get miner stats
api_response = api_instance.public_miners_stats_miner_get(miner)
pprint(api_response)
except ApiException as e:
print("Exception when calling MinerApi->public_miners_stats_miner_get: %s\n" % e)

Parameters

NameTypeDescriptionNotes
minerstrFilter by miner

Return type

str

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]