Contract API

swagger_client.ContractApi

All URIs are relative to /

Method
HTTP request
Description

api_v1_get_contract_by_address_get

GET /api/v1/GetContractByAddress

api_v1_get_contract_get

GET /api/v1/GetContract

api_v1_get_contract_by_address_get

ContractResult api_v1_get_contract_by_address_get(chain_address_or_name=chain_address_or_name, contract_address=contract_address)

Example

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

# create an instance of the API class
api_instance = swagger_client.ContractApi()
chain_address_or_name = 'chain_address_or_name_example' # str |  (optional)
contract_address = 'contract_address_example' # str |  (optional)

try:
    api_response = api_instance.api_v1_get_contract_by_address_get(chain_address_or_name=chain_address_or_name, contract_address=contract_address)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContractApi->api_v1_get_contract_by_address_get: %s\n" % e)

Parameters

Name
Type
Description
Notes

chain_address_or_name

str

[optional]

contract_address

str

[optional]

Return type

ContractResult

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

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

api_v1_get_contract_get

ContractResult api_v1_get_contract_get(chain_address_or_name=chain_address_or_name, contract_name=contract_name)

Example

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

# create an instance of the API class
api_instance = swagger_client.ContractApi()
chain_address_or_name = 'chain_address_or_name_example' # str |  (optional)
contract_name = 'contract_name_example' # str |  (optional)

try:
    api_response = api_instance.api_v1_get_contract_get(chain_address_or_name=chain_address_or_name, contract_name=contract_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContractApi->api_v1_get_contract_get: %s\n" % e)

Parameters

Name
Type
Description
Notes

chain_address_or_name

str

[optional]

contract_name

str

[optional]

Return type

ContractResult

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

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

Last updated