All URIs are relative to https://api.fireblocks.io/v1
Method | HTTP request | Description |
---|---|---|
get_gas_station_by_asset_id | GET /gas_station/{assetId} | Get gas station settings by asset |
get_gas_station_info | GET /gas_station | Get gas station settings |
update_gas_station_configuration | PUT /gas_station/configuration | Edit gas station settings |
update_gas_station_configuration_by_asset_id | PUT /gas_station/configuration/{assetId} | Edit gas station settings for an asset |
GasStationPropertiesResponse get_gas_station_by_asset_id(asset_id)
Get gas station settings by asset
Returns gas station settings and balances for a requested asset.
from fireblocks.models.gas_station_properties_response import GasStationPropertiesResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
asset_id = 'asset_id_example' # str | The ID of the asset
try:
# Get gas station settings by asset
api_response = fireblocks.gas_stations.get_gas_station_by_asset_id(asset_id).result()
print("The response of GasStationsApi->get_gas_station_by_asset_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling GasStationsApi->get_gas_station_by_asset_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Gas Station properties | * X-Request-ID - |
0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GasStationPropertiesResponse get_gas_station_info()
Get gas station settings
Returns gas station settings and ETH balance.
from fireblocks.models.gas_station_properties_response import GasStationPropertiesResponse
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
try:
# Get gas station settings
api_response = fireblocks.gas_stations.get_gas_station_info().result()
print("The response of GasStationsApi->get_gas_station_info:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling GasStationsApi->get_gas_station_info: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Gas Station properties | * X-Request-ID - |
0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditGasStationConfigurationResponse update_gas_station_configuration(gas_station_configuration, idempotency_key=idempotency_key)
Edit gas station settings
Configures gas station settings for ETH.
from fireblocks.models.edit_gas_station_configuration_response import EditGasStationConfigurationResponse
from fireblocks.models.gas_station_configuration import GasStationConfiguration
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
gas_station_configuration = fireblocks.GasStationConfiguration() # GasStationConfiguration |
idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional)
try:
# Edit gas station settings
api_response = fireblocks.gas_stations.update_gas_station_configuration(gas_station_configuration, idempotency_key=idempotency_key).result()
print("The response of GasStationsApi->update_gas_station_configuration:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling GasStationsApi->update_gas_station_configuration: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
gas_station_configuration | GasStationConfiguration | ||
idempotency_key | str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] |
EditGasStationConfigurationResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | OK | * X-Request-ID - |
0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EditGasStationConfigurationResponse update_gas_station_configuration_by_asset_id(asset_id, gas_station_configuration, idempotency_key=idempotency_key)
Edit gas station settings for an asset
Configures gas station settings for a requested asset.
from fireblocks.models.edit_gas_station_configuration_response import EditGasStationConfigurationResponse
from fireblocks.models.gas_station_configuration import GasStationConfiguration
from fireblocks.client import Fireblocks
from fireblocks.client_configuration import ClientConfiguration
from fireblocks.exceptions import ApiException
from fireblocks.base_path import BasePath
from pprint import pprint
# load the secret key content from a file
with open('your_secret_key_file_path', 'r') as file:
secret_key_value = file.read()
# build the configuration
configuration = ClientConfiguration(
api_key="your_api_key",
secret_key=secret_key_value,
base_path=BasePath.Sandbox, # or set it directly to a string "https://sandbox-api.fireblocks.io/v1"
)
# Enter a context with an instance of the API client
with Fireblocks(configuration) as fireblocks:
asset_id = 'asset_id_example' # str | The ID of the asset
gas_station_configuration = fireblocks.GasStationConfiguration() # GasStationConfiguration |
idempotency_key = 'idempotency_key_example' # str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. (optional)
try:
# Edit gas station settings for an asset
api_response = fireblocks.gas_stations.update_gas_station_configuration_by_asset_id(asset_id, gas_station_configuration, idempotency_key=idempotency_key).result()
print("The response of GasStationsApi->update_gas_station_configuration_by_asset_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling GasStationsApi->update_gas_station_configuration_by_asset_id: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
asset_id | str | The ID of the asset | |
gas_station_configuration | GasStationConfiguration | ||
idempotency_key | str | A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] |
EditGasStationConfigurationResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | OK | * X-Request-ID - |
0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]