All URIs are relative to https://api.fireblocks.io/v1
| Method | HTTP request | Description |
|---|---|---|
| check_third_party_routing | GET /network_connections/{connectionId}/is_third_party_routing/{assetType} | Retrieve third-party network routing validation |
| create_network_connection | POST /network_connections | Create a new network connection |
| create_network_id | POST /network_ids | Creates a new Network ID |
| delete_network_connection | DELETE /network_connections/{connectionId} | Delete a network connection by ID |
| delete_network_id | DELETE /network_ids/{networkId} | Delete specific network ID. |
| get_network | GET /network_connections/{connectionId} | Get a network connection |
| get_network_connections | GET /network_connections | List network connections |
| get_network_id | GET /network_ids/{networkId} | Return specific network ID. |
| get_network_ids | GET /network_ids | Get all network IDs |
| get_routing_policy_asset_groups | GET /network_ids/routing_policy_asset_groups | Return all enabled routing policy asset groups |
| search_network_ids | GET /network_ids/search | Get both local IDs and discoverable remote IDs |
| set_network_id_discoverability | PATCH /network_ids/{networkId}/set_discoverability | Update network ID's discoverability. |
| set_network_id_name | PATCH /network_ids/{networkId}/set_name | Update network ID's name. |
| set_network_id_routing_policy | PATCH /network_ids/{networkId}/set_routing_policy | Update network id routing policy. |
| set_routing_policy | PATCH /network_connections/{connectionId}/set_routing_policy | Update network connection routing policy. |
ThirdPartyRouting check_third_party_routing(connection_id, asset_type)
Retrieve third-party network routing validation
The Fireblocks Network allows for flexibility around incoming deposits. A receiver can receive network deposits to locations other than Fireblocks. This endpoint validates whether future transactions are routed to the displayed recipient or to a 3rd party.
from fireblocks.models.third_party_routing import ThirdPartyRouting
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:
connection_id = 'connection_id_example' # str | The ID of the network connection
asset_type = 'asset_type_example' # str | The destination asset type
try:
# Retrieve third-party network routing validation
api_response = fireblocks.network_connections.check_third_party_routing(connection_id, asset_type).result()
print("The response of NetworkConnectionsApi->check_third_party_routing:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->check_third_party_routing: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_id | str | The ID of the network connection | |
| asset_type | str | The destination asset type |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | result for the validation | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkConnectionResponse create_network_connection(idempotency_key=idempotency_key, network_connection=network_connection)
Create a new network connection
Initiates a new network connection. Note: This API call is subject to Flexible Routing Schemes.
Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type:
- None; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to
Nonewill fail. - Custom; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one.
- Default; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing"
Default Workspace Presets:
- Network Profile Crypto → Custom
- Network Profile FIAT → None
- Network Connection Crypto → Default
- Network Connection FIAT → Default
Supported asset groups for routing police can be found at /network_ids/routing_policy_asset_groups
- **Note**: By default, Custom routing scheme uses (`dstId` = `0`, `dstType` = `VAULT`).
from fireblocks.models.network_connection import NetworkConnection
from fireblocks.models.network_connection_response import NetworkConnectionResponse
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:
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)
network_connection = fireblocks.NetworkConnection() # NetworkConnection | (optional)
try:
# Create a new network connection
api_response = fireblocks.network_connections.create_network_connection(idempotency_key=idempotency_key, network_connection=network_connection).result()
print("The response of NetworkConnectionsApi->create_network_connection:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->create_network_connection: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| 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] |
| network_connection | NetworkConnection | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | A Network Connection object | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkIdResponse create_network_id(idempotency_key=idempotency_key, create_network_id_request=create_network_id_request)
Creates a new Network ID
Create a new Network ID.
from fireblocks.models.create_network_id_request import CreateNetworkIdRequest
from fireblocks.models.network_id_response import NetworkIdResponse
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:
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)
create_network_id_request = fireblocks.CreateNetworkIdRequest() # CreateNetworkIdRequest | (optional)
try:
# Creates a new Network ID
api_response = fireblocks.network_connections.create_network_id(idempotency_key=idempotency_key, create_network_id_request=create_network_id_request).result()
print("The response of NetworkConnectionsApi->create_network_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->create_network_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| 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] |
| create_network_id_request | CreateNetworkIdRequest | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Returns the new network ID in your workspace | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteNetworkConnectionResponse delete_network_connection(connection_id)
Delete a network connection by ID
Deletes an existing network connection specified by its connection ID.
from fireblocks.models.delete_network_connection_response import DeleteNetworkConnectionResponse
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:
connection_id = 'connection_id_example' # str | The ID of the network connection to delete
try:
# Delete a network connection by ID
api_response = fireblocks.network_connections.delete_network_connection(connection_id).result()
print("The response of NetworkConnectionsApi->delete_network_connection:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->delete_network_connection: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_id | str | The ID of the network connection to delete |
DeleteNetworkConnectionResponse
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Network ID | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteNetworkIdResponse delete_network_id(network_id)
Delete specific network ID.
Deletes a network by its ID.
from fireblocks.models.delete_network_id_response import DeleteNetworkIdResponse
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:
network_id = 'network_id_example' # str | The ID of the network
try:
# Delete specific network ID.
api_response = fireblocks.network_connections.delete_network_id(network_id).result()
print("The response of NetworkConnectionsApi->delete_network_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->delete_network_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| network_id | str | The ID of the network |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Network ID | - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkConnectionResponse get_network(connection_id)
Get a network connection
Gets a network connection by ID.
from fireblocks.models.network_connection_response import NetworkConnectionResponse
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:
connection_id = 'connection_id_example' # str | The ID of the connection
try:
# Get a network connection
api_response = fireblocks.network_connections.get_network(connection_id).result()
print("The response of NetworkConnectionsApi->get_network:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->get_network: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_id | str | The ID of the connection |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A network connection | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[NetworkConnectionResponse] get_network_connections()
List network connections
Returns all network connections.
Note: This API call is subject to Flexible Routing Schemes.
Your routing policy defines how your transactions are routed. You can choose 1 of the 3 different schemes mentioned below for each asset type:
- None; Defines the profile routing to no destination for that asset type. Incoming transactions to asset types routed to
Nonewill fail. - Custom; Route to an account that you choose. If you remove the account, incoming transactions will fail until you choose another one.
- Default; Use the routing specified by the network profile the connection is connected to. This scheme is also referred to as "Profile Routing"
Default Workspace Presets:
- Network Profile Crypto → Custom
- Network Profile FIAT → None
- Network Connection Crypto → Default
- Network Connection FIAT → Default
from fireblocks.models.network_connection_response import NetworkConnectionResponse
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:
# List network connections
api_response = fireblocks.network_connections.get_network_connections().result()
print("The response of NetworkConnectionsApi->get_network_connections:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->get_network_connections: %s\n" % e)This endpoint does not need any parameter.
List[NetworkConnectionResponse]
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A list of network connections | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
NetworkIdResponse get_network_id(network_id)
Return specific network ID.
Returns specific network ID.
from fireblocks.models.network_id_response import NetworkIdResponse
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:
network_id = 'network_id_example' # str | The ID of the network
try:
# Return specific network ID.
api_response = fireblocks.network_connections.get_network_id(network_id).result()
print("The response of NetworkConnectionsApi->get_network_id:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->get_network_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| network_id | str | The ID of the network |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Network ID | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[NetworkIdResponse] get_network_ids()
Get all network IDs
Retrieves a list of all local and discoverable remote network IDs.
from fireblocks.models.network_id_response import NetworkIdResponse
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 all network IDs
api_response = fireblocks.network_connections.get_network_ids().result()
print("The response of NetworkConnectionsApi->get_network_ids:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->get_network_ids: %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 | A list of network IDs | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List[str] get_routing_policy_asset_groups()
Return all enabled routing policy asset groups
Returns all enabled routing policy asset groups
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:
# Return all enabled routing policy asset groups
api_response = fireblocks.network_connections.get_routing_policy_asset_groups().result()
print("The response of NetworkConnectionsApi->get_routing_policy_asset_groups:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->get_routing_policy_asset_groups: %s\n" % e)This endpoint does not need any parameter.
List[str]
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A list of enabled routing policy asset groups | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchNetworkIdsResponse search_network_ids(search=search, exclude_self=exclude_self, only_self=only_self, exclude_connected=exclude_connected, page_cursor=page_cursor, page_size=page_size)
Get both local IDs and discoverable remote IDs
Retrieves a list of all local and discoverable remote network IDs. Can be filtered.
from fireblocks.models.search_network_ids_response import SearchNetworkIdsResponse
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:
search = 'search_example' # str | Search string - displayName networkId. Optional (optional)
exclude_self = True # bool | Exclude your networkIds. Optional, default false (optional)
only_self = True # bool | Include just your networkIds. Optional, default false (optional)
exclude_connected = True # bool | Exclude connected networkIds. Optional, default false (optional)
page_cursor = 'page_cursor_example' # str | ID of the record after which to fetch $limit records (optional)
page_size = 50 # float | Number of records to fetch. By default, it is 50 (optional) (default to 50)
try:
# Get both local IDs and discoverable remote IDs
api_response = fireblocks.network_connections.search_network_ids(search=search, exclude_self=exclude_self, only_self=only_self, exclude_connected=exclude_connected, page_cursor=page_cursor, page_size=page_size).result()
print("The response of NetworkConnectionsApi->search_network_ids:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->search_network_ids: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| search | str | Search string - displayName networkId. Optional | [optional] |
| exclude_self | bool | Exclude your networkIds. Optional, default false | [optional] |
| only_self | bool | Include just your networkIds. Optional, default false | [optional] |
| exclude_connected | bool | Exclude connected networkIds. Optional, default false | [optional] |
| page_cursor | str | ID of the record after which to fetch $limit records | [optional] |
| page_size | float | Number of records to fetch. By default, it is 50 | [optional] [default to 50] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | A list of network IDs | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetNetworkIdResponse set_network_id_discoverability(network_id, set_network_id_discoverability_request)
Update network ID's discoverability.
Update whether or not the network ID is discoverable by others.
from fireblocks.models.set_network_id_discoverability_request import SetNetworkIdDiscoverabilityRequest
from fireblocks.models.set_network_id_response import SetNetworkIdResponse
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:
network_id = 'network_id_example' # str | The ID of the network
set_network_id_discoverability_request = fireblocks.SetNetworkIdDiscoverabilityRequest() # SetNetworkIdDiscoverabilityRequest |
try:
# Update network ID's discoverability.
api_response = fireblocks.network_connections.set_network_id_discoverability(network_id, set_network_id_discoverability_request).result()
print("The response of NetworkConnectionsApi->set_network_id_discoverability:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->set_network_id_discoverability: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| network_id | str | The ID of the network | |
| set_network_id_discoverability_request | SetNetworkIdDiscoverabilityRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Network ID | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetNetworkIdResponse set_network_id_name(network_id, set_network_id_name_request)
Update network ID's name.
Updates name of a specified network ID.
from fireblocks.models.set_network_id_name_request import SetNetworkIdNameRequest
from fireblocks.models.set_network_id_response import SetNetworkIdResponse
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:
network_id = 'network_id_example' # str | The ID of the network
set_network_id_name_request = fireblocks.SetNetworkIdNameRequest() # SetNetworkIdNameRequest |
try:
# Update network ID's name.
api_response = fireblocks.network_connections.set_network_id_name(network_id, set_network_id_name_request).result()
print("The response of NetworkConnectionsApi->set_network_id_name:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->set_network_id_name: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| network_id | str | The ID of the network | |
| set_network_id_name_request | SetNetworkIdNameRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Network ID | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetNetworkIdResponse set_network_id_routing_policy(network_id, set_network_id_routing_policy_request=set_network_id_routing_policy_request)
Update network id routing policy.
Updates the routing policy of a specified network ID.
from fireblocks.models.set_network_id_response import SetNetworkIdResponse
from fireblocks.models.set_network_id_routing_policy_request import SetNetworkIdRoutingPolicyRequest
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:
network_id = 'network_id_example' # str | The ID of the network
set_network_id_routing_policy_request = fireblocks.SetNetworkIdRoutingPolicyRequest() # SetNetworkIdRoutingPolicyRequest | (optional)
try:
# Update network id routing policy.
api_response = fireblocks.network_connections.set_network_id_routing_policy(network_id, set_network_id_routing_policy_request=set_network_id_routing_policy_request).result()
print("The response of NetworkConnectionsApi->set_network_id_routing_policy:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->set_network_id_routing_policy: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| network_id | str | The ID of the network | |
| set_network_id_routing_policy_request | SetNetworkIdRoutingPolicyRequest | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Network ID | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SetRoutingPolicyResponse set_routing_policy(connection_id, set_routing_policy_request=set_routing_policy_request)
Update network connection routing policy.
Updates an existing network connection's routing policy.
from fireblocks.models.set_routing_policy_request import SetRoutingPolicyRequest
from fireblocks.models.set_routing_policy_response import SetRoutingPolicyResponse
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:
connection_id = 'connection_id_example' # str | The ID of the network connection
set_routing_policy_request = fireblocks.SetRoutingPolicyRequest() # SetRoutingPolicyRequest | (optional)
try:
# Update network connection routing policy.
api_response = fireblocks.network_connections.set_routing_policy(connection_id, set_routing_policy_request=set_routing_policy_request).result()
print("The response of NetworkConnectionsApi->set_routing_policy:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling NetworkConnectionsApi->set_routing_policy: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| connection_id | str | The ID of the network connection | |
| set_routing_policy_request | SetRoutingPolicyRequest | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Network ID | * X-Request-ID - |
| 0 | Error Response | * X-Request-ID - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]