diff --git a/.github/workflows/auto-reply-issue.yml b/.github/workflows/auto-reply-issue.yml
new file mode 100644
index 0000000..68595a5
--- /dev/null
+++ b/.github/workflows/auto-reply-issue.yml
@@ -0,0 +1,35 @@
+name: Auto Reply On New Issues
+on:
+ issues:
+ types: [opened]
+
+jobs:
+ auto-reply:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out repository code
+ uses: actions/checkout@v4
+
+ - name: Choose random reply message
+ id: choose_message
+ run: |
+ reply_messages=(
+ "Thank you for raising this issue! We will look into it shortly."
+ "We appreciate your feedback. Our team will investigate this issue shortly."
+ "Your issue has been noted. We'll get back to you soon."
+ "Thanks for raising this issue. We'll review it and provide updates soon."
+ "Thank you for letting us know about this issue. We'll investigate and get back to you soon."
+ "Acknowledged. We'll review the issue and respond soon."
+ "Thanks for bringing this to our attention. We'll review it and provide updates soon."
+ "We've received your issue. Thanks for your patience."
+ "Noted. Expect updates on your issue shortly."
+ "Your issue is important to us. We will look into it shortly."
+ )
+ random_index=$((RANDOM % ${#reply_messages[@]}))
+ echo "::set-output name=message::${reply_messages[$random_index]}"
+
+ - name: Reply to issue
+ run: |
+ gh issue comment ${{ github.event.issue.number }} --body "${{ steps.choose_message.outputs.message }}"
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/auto-reply-pr.yml b/.github/workflows/auto-reply-pr.yml
new file mode 100644
index 0000000..932dd4a
--- /dev/null
+++ b/.github/workflows/auto-reply-pr.yml
@@ -0,0 +1,36 @@
+name: Auto Reply On New Pull Requests
+on:
+ pull_request:
+ types: [opened]
+
+jobs:
+ auto-reply:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out repository code
+ uses: actions/checkout@v4
+
+ - name: Choose random reply message
+ id: choose_message
+ run: |
+ reply_messages=(
+ "Thank you for raising this! We will review it shortly. (Note that this SDK code is auto generated)"
+ "We appreciate your contribution. Our team will investigate this request shortly. (Note that this SDK code is auto generated)"
+ "Your request has been noted. We'll get back to you soon. (Note that this SDK code is auto generated)"
+ "Thanks for submitting this request. We'll review it and provide updates soon. (Note that this SDK code is auto generated)"
+ "Thank you for letting us know about this request. We'll investigate and get back to you soon. (Note that this SDK code is auto generated)"
+ "Acknowledged. We'll review and respond soon. (Note that this SDK code is auto generated)"
+ "Thanks for bringing this request to our attention. We'll review and provide updates soon. (Note that this SDK code is auto generated)"
+ "We've received your request. Thanks for your patience. (Note that this SDK code is auto generated)"
+ "Noted. Expect updates shortly. (Note that this SDK code is auto generated)"
+ "Your request is important to us. We will look into it shortly. (Note that this SDK code is auto generated)"
+ )
+ random_index=$((RANDOM % ${#reply_messages[@]}))
+ echo "::set-output name=message::${reply_messages[$random_index]}"
+
+ - name: Reply to pull request
+ if: (!contains(fromJSON('["github-actions"]'), github.event.pull_request.user.login))
+ run: |
+ gh pr comment ${{ github.event.number }} --body "${{ steps.choose_message.outputs.message }}"
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 0dc9e04..eda45a6 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -39,6 +39,9 @@ docs/AssetForbiddenErrorResponse.md
docs/AssetInternalServerErrorResponse.md
docs/AssetMetadataDto.md
docs/AssetNotFoundErrorResponse.md
+docs/AssetPriceForbiddenErrorResponse.md
+docs/AssetPriceNotFoundErrorResponse.md
+docs/AssetPriceResponse.md
docs/AssetResponse.md
docs/AssetResponseMetadata.md
docs/AssetResponseOnchain.md
@@ -328,6 +331,7 @@ docs/SessionDTO.md
docs/SessionMetadata.md
docs/SetAdminQuorumThresholdRequest.md
docs/SetAdminQuorumThresholdResponse.md
+docs/SetAssetPriceRequest.md
docs/SetAutoFuelRequest.md
docs/SetConfirmationsThresholdRequest.md
docs/SetConfirmationsThresholdResponse.md
@@ -577,6 +581,9 @@ src/main/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponse.java
src/main/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponse.java
src/main/java/com/fireblocks/sdk/model/AssetMetadataDto.java
src/main/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponse.java
+src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java
+src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java
+src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java
src/main/java/com/fireblocks/sdk/model/AssetResponse.java
src/main/java/com/fireblocks/sdk/model/AssetResponseMetadata.java
src/main/java/com/fireblocks/sdk/model/AssetResponseOnchain.java
@@ -841,6 +848,7 @@ src/main/java/com/fireblocks/sdk/model/SessionDTO.java
src/main/java/com/fireblocks/sdk/model/SessionMetadata.java
src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequest.java
src/main/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponse.java
+src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java
src/main/java/com/fireblocks/sdk/model/SetAutoFuelRequest.java
src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequest.java
src/main/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponse.java
@@ -1058,6 +1066,9 @@ src/test/java/com/fireblocks/sdk/model/AssetForbiddenErrorResponseTest.java
src/test/java/com/fireblocks/sdk/model/AssetInternalServerErrorResponseTest.java
src/test/java/com/fireblocks/sdk/model/AssetMetadataDtoTest.java
src/test/java/com/fireblocks/sdk/model/AssetNotFoundErrorResponseTest.java
+src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java
+src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java
+src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java
src/test/java/com/fireblocks/sdk/model/AssetResponseMetadataTest.java
src/test/java/com/fireblocks/sdk/model/AssetResponseOnchainTest.java
src/test/java/com/fireblocks/sdk/model/AssetResponseTest.java
@@ -1322,6 +1333,7 @@ src/test/java/com/fireblocks/sdk/model/SessionDTOTest.java
src/test/java/com/fireblocks/sdk/model/SessionMetadataTest.java
src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdRequestTest.java
src/test/java/com/fireblocks/sdk/model/SetAdminQuorumThresholdResponseTest.java
+src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java
src/test/java/com/fireblocks/sdk/model/SetAutoFuelRequestTest.java
src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdRequestTest.java
src/test/java/com/fireblocks/sdk/model/SetConfirmationsThresholdResponseTest.java
diff --git a/README.md b/README.md
index baf4241..448b096 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ Add this dependency to your project's POM:
com.fireblocks.sdk
fireblocks-sdk
- 3.0.0
+ 0.0.0
compile
```
@@ -42,7 +42,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
-compile "com.fireblocks.sdk:fireblocks-sdk:3.0.0"
+compile "com.fireblocks.sdk:fireblocks-sdk:0.0.0"
```
### Others
@@ -55,7 +55,7 @@ mvn clean package
Then manually install the following JARs:
-- `target/fireblocks-sdk-3.0.0.jar`
+- `target/fireblocks-sdk-0.0.0.jar`
- `target/lib/*.jar`
@@ -148,6 +148,7 @@ Class | Method | HTTP request | Description
*AuditLogsApi* | [**getAudits**](docs/AuditLogsApi.md#getAudits) | **GET** /audits | Get audit logs
*BlockchainsAssetsApi* | [**getSupportedAssets**](docs/BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks
*BlockchainsAssetsApi* | [**registerNewAsset**](docs/BlockchainsAssetsApi.md#registerNewAsset) | **POST** /assets | Register an asset
+*BlockchainsAssetsApi* | [**setAssetPrice**](docs/BlockchainsAssetsApi.md#setAssetPrice) | **POST** /assets/prices/{id} | Set asset price
*ComplianceApi* | [**getAmlPostScreeningPolicy**](docs/ComplianceApi.md#getAmlPostScreeningPolicy) | **GET** /screening/aml/post_screening_policy | AML - View Post-Screening Policy
*ComplianceApi* | [**getAmlScreeningPolicy**](docs/ComplianceApi.md#getAmlScreeningPolicy) | **GET** /screening/aml/screening_policy | AML - View Screening Policy
*ComplianceApi* | [**getPostScreeningPolicy**](docs/ComplianceApi.md#getPostScreeningPolicy) | **GET** /screening/travel_rule/post_screening_policy | Travel Rule - View Post-Screening Policy
@@ -389,6 +390,9 @@ Class | Method | HTTP request | Description
- [AssetInternalServerErrorResponse](docs/AssetInternalServerErrorResponse.md)
- [AssetMetadataDto](docs/AssetMetadataDto.md)
- [AssetNotFoundErrorResponse](docs/AssetNotFoundErrorResponse.md)
+ - [AssetPriceForbiddenErrorResponse](docs/AssetPriceForbiddenErrorResponse.md)
+ - [AssetPriceNotFoundErrorResponse](docs/AssetPriceNotFoundErrorResponse.md)
+ - [AssetPriceResponse](docs/AssetPriceResponse.md)
- [AssetResponse](docs/AssetResponse.md)
- [AssetResponseMetadata](docs/AssetResponseMetadata.md)
- [AssetResponseOnchain](docs/AssetResponseOnchain.md)
@@ -653,6 +657,7 @@ Class | Method | HTTP request | Description
- [SessionMetadata](docs/SessionMetadata.md)
- [SetAdminQuorumThresholdRequest](docs/SetAdminQuorumThresholdRequest.md)
- [SetAdminQuorumThresholdResponse](docs/SetAdminQuorumThresholdResponse.md)
+ - [SetAssetPriceRequest](docs/SetAssetPriceRequest.md)
- [SetAutoFuelRequest](docs/SetAutoFuelRequest.md)
- [SetConfirmationsThresholdRequest](docs/SetConfirmationsThresholdRequest.md)
- [SetConfirmationsThresholdResponse](docs/SetConfirmationsThresholdResponse.md)
diff --git a/api/openapi.yaml b/api/openapi.yaml
index e0a7a57..2c73a3d 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -68,7 +68,7 @@ paths:
code-samples:
- language: python
code: vault_accounts = fireblocks.get_vault_accounts()
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const vaultAccounts = await fireblocks.getVaultAccounts();
name: Fireblocks SDK Javascript example
@@ -121,7 +121,7 @@ paths:
- language: python
code: "vaultAccount = fireblocks.create_vault_account(name, hiddenOnUI,\
\ customer_ref_id, auto_fueling)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const vaultAccount = await fireblocks.createVaultAccount(name, hiddenOnUI,\
\ customerRefId, autoFueling);"
@@ -133,6 +133,19 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().createVaultAccount(createVaultAccountRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.create_vault_account(create_vault_account_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.vaults.createVaultAccount(vaultsApiCreateVaultAccountRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().createVaultAccount(createVaultAccountRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.create_vault_account(create_vault_account_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/accounts/bulk:
@@ -192,6 +205,19 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().createMultipleAccounts(createMultipleAccountsRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.create_multiple_accounts(create_multiple_accounts_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.vaults.createMultipleAccounts(vaultsApiCreateMultipleAccountsRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().createMultipleAccounts(createMultipleAccountsRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.create_multiple_accounts(create_multiple_accounts_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/accounts_paged:
@@ -283,7 +309,7 @@ paths:
code-samples:
- language: python
code: vault_accounts = fireblocks.get_vault_accounts_with_page_info(filters)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const vaultAccounts = await fireblocks.getVaultAccountsWithPageInfo(filters);
name: Fireblocks SDK Javascript example
@@ -296,6 +322,23 @@ paths:
\ = fireblocks.vaults().getPagedVaultAccounts(namePrefix, nameSuffix,\
\ minAmountThreshold, assetId, orderBy, before, after, limit);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_paged_vault_accounts(name_prefix,\
+ \ name_suffix, min_amount_threshold, asset_id, order_by, before, after,\
+ \ limit);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.getPagedVaultAccounts(vaultsApiGetPagedVaultAccountsRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.vaults().getPagedVaultAccounts(namePrefix, nameSuffix, minAmountThreshold,\
+ \ assetId, orderBy, before, after, limit);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_paged_vault_accounts(name_prefix,\
+ \ name_suffix, min_amount_threshold, asset_id, order_by, before, after,\
+ \ limit);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}:
get:
@@ -338,7 +381,7 @@ paths:
code-samples:
- language: python
code: vault_account = fireblocks.get_vault_account(vault_account_id)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const vaultAccount = await fireblocks.getVaultAccount(vault_account_id);
name: Fireblocks SDK Javascript example
@@ -348,6 +391,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.vaults().getVaultAccount(vaultAccountId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.vaults.get_vault_account(vault_account_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.vaults.getVaultAccount(vaultsApiGetVaultAccountRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.vaults().getVaultAccount(vaultAccountId);
+ - lang: Python
+ source: response = fireblocks.vaults.get_vault_account(vault_account_id);
x-accepts: application/json
put:
description: Renames the requested vault account.
@@ -407,7 +460,7 @@ paths:
- language: python
code: "vaultAccount = fireblocks.update_vault_account(vault_account_id,\
\ name)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const vaultAccount = await fireblocks.updateVaultAccount(vautlAccountId,\
\ name);"
@@ -421,6 +474,21 @@ paths:
\ = fireblocks.vaults().updateVaultAccount(updateVaultAccountRequest,\
\ vaultAccountId, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.update_vault_account(update_vault_account_request,\
+ \ vault_account_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.updateVaultAccount(vaultsApiUpdateVaultAccountRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.vaults().updateVaultAccount(updateVaultAccountRequest, vaultAccountId,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.update_vault_account(update_vault_account_request,\
+ \ vault_account_id, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/asset_wallets:
@@ -506,7 +574,7 @@ paths:
code-samples:
- language: python
code: vault_accounts = fireblocks.get_asset_wallets(filters)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const vaultAccounts = await fireblocks.getAssetWallets(filters);
name: Fireblocks SDK Javascript example
@@ -519,6 +587,21 @@ paths:
\ = fireblocks.vaults().getAssetWallets(totalAmountLargerThan, assetId,\
\ orderBy, before, after, limit);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_asset_wallets(total_amount_larger_than,\
+ \ asset_id, order_by, before, after, limit);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.getAssetWallets(vaultsApiGetAssetWalletsRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.vaults().getAssetWallets(totalAmountLargerThan, assetId,\
+ \ orderBy, before, after, limit);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_asset_wallets(total_amount_larger_than,\
+ \ asset_id, order_by, before, after, limit);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/hide:
post:
@@ -572,7 +655,7 @@ paths:
code-samples:
- language: python
code: vaultAsset = fireblocks.hide_vault_account(vault_account_id)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const vaultAsset = await fireblocks.hideVaultAccount(vaultAccountId);
name: Fireblocks SDK Javascript example
@@ -584,6 +667,20 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().hideVaultAccount(vaultAccountId,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.hide_vault_account(vault_account_id,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.vaults.hideVaultAccount(vaultsApiHideVaultAccountRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().hideVaultAccount(vaultAccountId,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.hide_vault_account(vault_account_id,\
+ \ idempotency_key);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/unhide:
post:
@@ -637,7 +734,7 @@ paths:
code-samples:
- language: python
code: vaultAsset = fireblocks.unhide_vault_account(vault_account_id)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const vaultAsset = await fireblocks.unhideVaultAccount(vaultAccountId);
name: Fireblocks SDK Javascript example
@@ -649,6 +746,20 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().unhideVaultAccount(vaultAccountId,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.unhide_vault_account(vault_account_id,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.vaults.unhideVaultAccount(vaultsApiUnhideVaultAccountRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().unhideVaultAccount(vaultAccountId,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.unhide_vault_account(vault_account_id,\
+ \ idempotency_key);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/activate:
post:
@@ -719,6 +830,21 @@ paths:
\ = fireblocks.vaults().activateAssetForVaultAccount(vaultAccountId, assetId,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.activate_asset_for_vault_account(vault_account_id,\
+ \ asset_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.activateAssetForVaultAccount(vaultsApiActivateAssetForVaultAccountRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.vaults().activateAssetForVaultAccount(vaultAccountId, assetId,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.activate_asset_for_vault_account(vault_account_id,\
+ \ asset_id, idempotency_key);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/set_customer_ref_id:
post:
@@ -779,7 +905,7 @@ paths:
- language: python
code: "vaultAsset = fireblocks.set_vault_account_customer_ref_id(vault_account_id,\
\ customer_ref_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const vaultAsset = await fireblocks.setCustomerRefIdForVaultAccount(vaultAccountId,\
\ customerRefId);"
@@ -792,6 +918,20 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().setVaultAccountCustomerRefId(setCustomerRefIdRequest,\
\ vaultAccountId, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.set_vault_account_customer_ref_id(set_customer_ref_id_request,\
+ \ vault_account_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.vaults.setVaultAccountCustomerRefId(vaultsApiSetVaultAccountCustomerRefIdRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().setVaultAccountCustomerRefId(setCustomerRefIdRequest,\
+ \ vaultAccountId, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.set_vault_account_customer_ref_id(set_customer_ref_id_request,\
+ \ vault_account_id, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/accounts/{vaultAccountId}/set_auto_fuel:
@@ -859,6 +999,20 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().setVaultAccountAutoFuel(setAutoFuelRequest,\
\ vaultAccountId, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.set_vault_account_auto_fuel(set_auto_fuel_request,\
+ \ vault_account_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.vaults.setVaultAccountAutoFuel(vaultsApiSetVaultAccountAutoFuelRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().setVaultAccountAutoFuel(setAutoFuelRequest,\
+ \ vaultAccountId, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.set_vault_account_auto_fuel(set_auto_fuel_request,\
+ \ vault_account_id, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}:
@@ -909,7 +1063,7 @@ paths:
- language: python
code: "vaultAsset = fireblocks.get_vault_account_asset(vault_account_id,\
\ asset_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const vaultAsset = await fireblocks.getVaultAccountAsset(vaultAccountId,\
\ assetId);"
@@ -921,6 +1075,19 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().getVaultAccountAsset(vaultAccountId,\
\ assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_vault_account_asset(vault_account_id,\
+ \ asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.vaults.getVaultAccountAsset(vaultsApiGetVaultAccountAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().getVaultAccountAsset(vaultAccountId,\
+ \ assetId);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_vault_account_asset(vault_account_id,\
+ \ asset_id);"
x-accepts: application/json
post:
description: Creates a wallet for a specific asset in a vault account.
@@ -989,7 +1156,7 @@ paths:
code-samples:
- language: python
code: "vaultAsset = fireblocks.create_vault_asset(vault_account_id, asset_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const vaultAsset = await fireblocks.createVaultAsset(vaultAccountId,\
\ assetId);"
@@ -1003,6 +1170,21 @@ paths:
\ = fireblocks.vaults().createVaultAccountAsset(vaultAccountId, assetId,\
\ createAssetsRequest, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.create_vault_account_asset(vault_account_id,\
+ \ asset_id, create_assets_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.createVaultAccountAsset(vaultsApiCreateVaultAccountAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.vaults().createVaultAccountAsset(vaultAccountId, assetId,\
+ \ createAssetsRequest, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.create_vault_account_asset(vault_account_id,\
+ \ asset_id, create_assets_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/balance:
@@ -1067,7 +1249,7 @@ paths:
- language: python
code: "vaultAsset = fireblocks.refresh_vault_asset_balance(vault_account_id,\
\ asset_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const vaultAsset = await fireblocks.refreshVaultAssetBalance(vaultAccountId,\
\ assetId);"
@@ -1079,6 +1261,19 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().updateVaultAccountAssetBalance(vaultAccountId,\
\ assetId, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.update_vault_account_asset_balance(vault_account_id,\
+ \ asset_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.vaults.updateVaultAccountAssetBalance(vaultsApiUpdateVaultAccountAssetBalanceRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().updateVaultAccountAssetBalance(vaultAccountId,\
+ \ assetId, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.update_vault_account_asset_balance(vault_account_id,\
+ \ asset_id, idempotency_key);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/addresses:
get:
@@ -1138,7 +1333,7 @@ paths:
- language: python
code: "depositAddresses = fireblocks.get_deposit_addresses(vault_account_id,\
\ asset_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const depositAddresses = await fireblocks.getDepositAddresses(vaultAccountId,\
\ assetId);"
@@ -1211,7 +1406,7 @@ paths:
- language: python
code: "address = fireblocks.generate_new_address(vault_account_id, asset_id,\
\ description, customer_ref_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const address = await fireblocks.generateNewAddress(vaultAccountId,\
\ assetId, description, customerRefId);"
@@ -1225,6 +1420,21 @@ paths:
\ fireblocks.vaults().createVaultAccountAssetAddress(vaultAccountId, assetId,\
\ createAddressRequest, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.create_vault_account_asset_address(vault_account_id,\
+ \ asset_id, create_address_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.createVaultAccountAssetAddress(vaultsApiCreateVaultAccountAssetAddressRequest);"
+ - lang: Java
+ source: "CompletableFuture> response =\
+ \ fireblocks.vaults().createVaultAccountAssetAddress(vaultAccountId, assetId,\
+ \ createAddressRequest, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.create_vault_account_asset_address(vault_account_id,\
+ \ asset_id, create_address_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/addresses_paginated:
@@ -1300,7 +1510,7 @@ paths:
- language: python
code: "addresses = vault_accounts = fireblocks.get_paginated_addresses(\"\
0\",\"ETH_TEST3\")"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const addresses = await fireblocks.getPaginatedAddresses(\"0\",\"\
ETH_TEST3\");"
@@ -1314,6 +1524,21 @@ paths:
\ = fireblocks.vaults().getVaultAccountAssetAddressesPaginated(vaultAccountId,\
\ assetId, limit, before, after);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_vault_account_asset_addresses_paginated(vault_account_id,\
+ \ asset_id, limit, before, after);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.getVaultAccountAssetAddressesPaginated(vaultsApiGetVaultAccountAssetAddressesPaginatedRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.vaults().getVaultAccountAssetAddressesPaginated(vaultAccountId,\
+ \ assetId, limit, before, after);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_vault_account_asset_addresses_paginated(vault_account_id,\
+ \ asset_id, limit, before, after);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/max_spendable_amount:
get:
@@ -1380,7 +1605,7 @@ paths:
- language: python
code: "address = fireblocks.set_address_description(vault_account_id, asset_id,\
\ address, tag, description)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const address = await fireblocks.setAddressDescription(vaultAccountId,\
\ assetId, address, tag, description);"
@@ -1394,6 +1619,20 @@ paths:
\ = fireblocks.vaults().getMaxSpendableAmount(vaultAccountId, assetId,\
\ manualSignging);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_max_spendable_amount(vault_account_id,\
+ \ asset_id, manual_signging);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.getMaxSpendableAmount(vaultsApiGetMaxSpendableAmountRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.vaults().getMaxSpendableAmount(vaultAccountId, assetId, manualSignging);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_max_spendable_amount(vault_account_id,\
+ \ asset_id, manual_signging);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}:
put:
@@ -1473,7 +1712,7 @@ paths:
- language: python
code: "address = fireblocks.set_address_description(vault_account_id, asset_id,\
\ address, tag, description)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const address = await fireblocks.setAddressDescription(vaultAccountId,\
\ assetId, address, tag, description);"
@@ -1486,6 +1725,20 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().updateVaultAccountAssetAddress(vaultAccountId,\
\ assetId, addressId, updateVaultAccountAssetAddressRequest, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.update_vault_account_asset_address(vault_account_id,\
+ \ asset_id, address_id, update_vault_account_asset_address_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.vaults.updateVaultAccountAssetAddress(vaultsApiUpdateVaultAccountAssetAddressRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().updateVaultAccountAssetAddress(vaultAccountId,\
+ \ assetId, addressId, updateVaultAccountAssetAddressRequest, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.update_vault_account_asset_address(vault_account_id,\
+ \ asset_id, address_id, update_vault_account_asset_address_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/set_customer_ref_id:
@@ -1565,7 +1818,7 @@ paths:
- language: python
code: "vaultAsset = fireblocks.set_customer_ref_id_for_address(vault_account_id,\
\ asset_id, address_id, customer_ref_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const vaultAsset = await fireblocks.setCustomerRefIdForAddress(vaultAccountId,\
\ assetId, addressId, customerRefId);"
@@ -1578,6 +1831,20 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest,\
\ vaultAccountId, assetId, addressId, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.set_customer_ref_id_for_address(set_customer_ref_id_for_address_request,\
+ \ vault_account_id, asset_id, address_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.vaults.setCustomerRefIdForAddress(vaultsApiSetCustomerRefIdForAddressRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().setCustomerRefIdForAddress(setCustomerRefIdForAddressRequest,\
+ \ vaultAccountId, assetId, addressId, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.set_customer_ref_id_for_address(set_customer_ref_id_for_address_request,\
+ \ vault_account_id, asset_id, address_id, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/addresses/{addressId}/create_legacy:
@@ -1656,6 +1923,21 @@ paths:
\ fireblocks.vaults().createLegacyAddress(vaultAccountId, assetId, addressId,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.create_legacy_address(vault_account_id,\
+ \ asset_id, address_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.createLegacyAddress(vaultsApiCreateLegacyAddressRequest);"
+ - lang: Java
+ source: "CompletableFuture> response =\
+ \ fireblocks.vaults().createLegacyAddress(vaultAccountId, assetId, addressId,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.vaults.create_legacy_address(vault_account_id,\
+ \ asset_id, address_id, idempotency_key);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/unspent_inputs:
get:
@@ -1707,7 +1989,7 @@ paths:
code-samples:
- language: python
code: "vaultAsset = fireblocks.get_unspent_inputs(vault_account_id, asset_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const vaultAsset = await fireblocks.getUnspentInputs(vaultAccountId,\
\ assetId);"
@@ -1720,6 +2002,20 @@ paths:
code: "CompletableFuture>> response\
\ = fireblocks.vaults().getUnspentInputs(vaultAccountId, assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_unspent_inputs(vault_account_id,\
+ \ asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.getUnspentInputs(vaultsApiGetUnspentInputsRequest);"
+ - lang: Java
+ source: "CompletableFuture>> response\
+ \ = fireblocks.vaults().getUnspentInputs(vaultAccountId, assetId);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_unspent_inputs(vault_account_id,\
+ \ asset_id);"
x-accepts: application/json
/vault/public_key_info:
get:
@@ -1775,7 +2071,7 @@ paths:
- language: python
code: "pubKey = fireblocks.get_public_key_info(algorithm, derivation_path,\
\ compressed)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: |
const PublicKeyInfoArgs = { algorithm: 'MPC_ECDSA_SECP256K1', derivationPath: '[44,0,0,0,0]' } const pubKey = await fireblocks.getPublicKeyInfo(PublicKeyInfoArgs);
@@ -1788,6 +2084,20 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfo(derivationPath,\
\ algorithm, compressed);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_public_key_info(derivation_path,\
+ \ algorithm, compressed);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.getPublicKeyInfo(vaultsApiGetPublicKeyInfoRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfo(derivationPath,\
+ \ algorithm, compressed);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_public_key_info(derivation_path,\
+ \ algorithm, compressed);"
x-accepts: application/json
/vault/accounts/{vaultAccountId}/{assetId}/{change}/{addressIndex}/public_key_info:
get:
@@ -1859,7 +2169,7 @@ paths:
- language: python
code: "pubKey = fireblocks.get_public_key_info_for_vault_account(asset_id,\
\ vault_account_id, change, address_index, compressed)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: |
const PublicKeyInfoArgs = { assetId: 'ETH', vaultAccountId: 0, change: 0, addressIndex: 0, compressed: true } const pubKey = await fireblocks.getPublicKeyInfoForVaultAccount(PublicKeyInfoArgs);
@@ -1872,6 +2182,20 @@ paths:
code: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfoForAddress(vaultAccountId,\
\ assetId, change, addressIndex, compressed);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_public_key_info_for_address(vault_account_id,\
+ \ asset_id, change, address_index, compressed);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.getPublicKeyInfoForAddress(vaultsApiGetPublicKeyInfoForAddressRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.vaults().getPublicKeyInfoForAddress(vaultAccountId,\
+ \ assetId, change, addressIndex, compressed);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_public_key_info_for_address(vault_account_id,\
+ \ asset_id, change, address_index, compressed);"
x-accepts: application/json
/vault/assets:
get:
@@ -1919,7 +2243,7 @@ paths:
- language: python
code: "assets_balance = fireblocks.get_vault_assets_balance(accout_name_prefix,\
\ account_name_suffix)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const assetsBalance = await fireblocks.getVaultAssetsBalance(accountNamePrefix,\
\ accountNameSuffix);"
@@ -1932,6 +2256,20 @@ paths:
code: "CompletableFuture>> response = fireblocks.vaults().getVaultAssets(accountNamePrefix,\
\ accountNameSuffix);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.vaults.get_vault_assets(account_name_prefix,\
+ \ account_name_suffix);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.vaults.getVaultAssets(vaultsApiGetVaultAssetsRequest);"
+ - lang: Java
+ source: "CompletableFuture>> response = fireblocks.vaults().getVaultAssets(accountNamePrefix,\
+ \ accountNameSuffix);"
+ - lang: Python
+ source: "response = fireblocks.vaults.get_vault_assets(account_name_prefix,\
+ \ account_name_suffix);"
x-accepts: application/json
/vault/assets/bulk:
post:
@@ -1991,6 +2329,19 @@ paths:
code: "CompletableFuture> response = fireblocks.assets().createAssetsBulk(createAssetsBulkRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.assets.create_assets_bulk(create_assets_bulk_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.assets.createAssetsBulk(assetsApiCreateAssetsBulkRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.assets().createAssetsBulk(createAssetsBulkRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.assets.create_assets_bulk(create_assets_bulk_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/vault/assets/{assetId}:
@@ -2032,7 +2383,7 @@ paths:
code-samples:
- language: python
code: assets_balance = fireblocks.get_vault_balance_by_asset(asset_id)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const assetsBalance = await fireblocks.getVaultBalanceByAsset(assetId);
name: Fireblocks SDK Javascript example
@@ -2042,6 +2393,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.vaults().getVaultBalanceByAsset(assetId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.vaults.get_vault_balance_by_asset(asset_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.vaults.getVaultBalanceByAsset(vaultsApiGetVaultBalanceByAssetRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.vaults().getVaultBalanceByAsset(assetId);
+ - lang: Python
+ source: response = fireblocks.vaults.get_vault_balance_by_asset(asset_id);
x-accepts: application/json
/workspace/freeze:
post:
@@ -2116,7 +2477,7 @@ paths:
code-samples:
- language: python
code: exchangeAccounts = fireblocks.get_exchange_accounts()
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const exchangeAccounts = await fireblocks.getExchangeAccounts();
name: Fireblocks SDK Javascript example
@@ -2180,7 +2541,7 @@ paths:
name: Fireblocks SDK Javascript example
- language: python
code: exchangeAccounts = fireblocks.get_exchange_accounts_paged()
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: typescript
code: "const response: Promise>\
\ = fireblocks.exchangeAccounts.getPagedExchangeAccounts(exchangeAccountsApiGetPagedExchangeAccountsRequest);"
@@ -2190,6 +2551,21 @@ paths:
\ = fireblocks.exchangeAccounts().getPagedExchangeAccounts(limit, before,\
\ after);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.exchange_accounts.get_paged_exchange_accounts(limit,\
+ \ before, after);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.exchangeAccounts.getPagedExchangeAccounts(exchangeAccountsApiGetPagedExchangeAccountsRequest);"
+ - lang: Java
+ source: "CompletableFuture>> response\
+ \ = fireblocks.exchangeAccounts().getPagedExchangeAccounts(limit, before,\
+ \ after);"
+ - lang: Python
+ source: "response = fireblocks.exchange_accounts.get_paged_exchange_accounts(limit,\
+ \ before, after);"
x-accepts: application/json
/exchange_accounts/{exchangeAccountId}:
get:
@@ -2230,7 +2606,7 @@ paths:
code-samples:
- language: python
code: exchangeAccount = fireblocks.get_exchange_account(exchangeAccountId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const exchnageAccount = await fireblocks.get_exchange_account(exchangeAccountId);
name: Fireblocks SDK Javascript example
@@ -2240,6 +2616,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccount(exchangeAccountId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.exchange_accounts.get_exchange_account(exchange_account_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.exchangeAccounts.getExchangeAccount(exchangeAccountsApiGetExchangeAccountRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccount(exchangeAccountId);
+ - lang: Python
+ source: response = fireblocks.exchange_accounts.get_exchange_account(exchange_account_id);
x-accepts: application/json
/exchange_accounts/{exchangeAccountId}/internal_transfer:
post:
@@ -2304,6 +2690,21 @@ paths:
\ = fireblocks.exchangeAccounts().internalTransfer(exchangeAccountId,\
\ createInternalTransferRequest, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.exchange_accounts.internal_transfer(exchange_account_id,\
+ \ create_internal_transfer_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.exchangeAccounts.internalTransfer(exchangeAccountsApiInternalTransferRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.exchangeAccounts().internalTransfer(exchangeAccountId, createInternalTransferRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.exchange_accounts.internal_transfer(exchange_account_id,\
+ \ create_internal_transfer_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/exchange_accounts/{exchangeAccountId}/convert:
@@ -2372,6 +2773,21 @@ paths:
\ fireblocks.exchangeAccounts().convertAssets(exchangeAccountId, convertAssetsRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.exchange_accounts.convert_assets(exchange_account_id,\
+ \ convert_assets_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.exchangeAccounts.convertAssets(exchangeAccountsApiConvertAssetsRequest);"
+ - lang: Java
+ source: "CompletableFuture> response =\
+ \ fireblocks.exchangeAccounts().convertAssets(exchangeAccountId, convertAssetsRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.exchange_accounts.convert_assets(exchange_account_id,\
+ \ convert_assets_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/exchange_accounts/{exchangeAccountId}/{assetId}:
@@ -2422,7 +2838,7 @@ paths:
- language: python
code: "exchangeAsset = fireblocks.get_exchange_account_asset(exchangeAccountId,\
\ assetId)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const exchangeAsset = await fireblocks.getExchangeAsset(exchangeAccountId,\
\ assetId);"
@@ -2434,6 +2850,19 @@ paths:
code: "CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccountAsset(exchangeAccountId,\
\ assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.exchange_accounts.get_exchange_account_asset(exchange_account_id,\
+ \ asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.exchangeAccounts.getExchangeAccountAsset(exchangeAccountsApiGetExchangeAccountAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.exchangeAccounts().getExchangeAccountAsset(exchangeAccountId,\
+ \ assetId);"
+ - lang: Python
+ source: "response = fireblocks.exchange_accounts.get_exchange_account_asset(exchange_account_id,\
+ \ asset_id);"
x-accepts: application/json
/exchange_accounts/credentials_public_key:
get:
@@ -2493,7 +2922,7 @@ paths:
code-samples:
- language: python
code: transactions = fireblocks.get_fiat_accounts()
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const transactions = await fireblocks.getFiatAccounts();
name: Fireblocks SDK Javascript example
@@ -2504,6 +2933,17 @@ paths:
- language: java
code: CompletableFuture>> response = fireblocks.fiatAccounts().getFiatAccounts();
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.fiat_accounts.get_fiat_accounts();
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.fiatAccounts.getFiatAccounts();"
+ - lang: Java
+ source: CompletableFuture>> response = fireblocks.fiatAccounts().getFiatAccounts();
+ - lang: Python
+ source: response = fireblocks.fiat_accounts.get_fiat_accounts();
x-accepts: application/json
/fiat_accounts/{accountId}:
get:
@@ -2544,7 +2984,7 @@ paths:
code-samples:
- language: python
code: transactions = fireblocks.get_fiat_account_by_id(account_id)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const transactions = await fireblocks.getFiatAccountById(accountId);
name: Fireblocks SDK Javascript example
@@ -2554,6 +2994,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.fiatAccounts().getFiatAccount(accountId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.fiat_accounts.get_fiat_account(account_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.fiatAccounts.getFiatAccount(fiatAccountsApiGetFiatAccountRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.fiatAccounts().getFiatAccount(accountId);
+ - lang: Python
+ source: response = fireblocks.fiat_accounts.get_fiat_account(account_id);
x-accepts: application/json
/fiat_accounts/{accountId}/redeem_to_linked_dda:
post:
@@ -2610,7 +3060,7 @@ paths:
code-samples:
- language: python
code: "transactions = fireblocks.redeem_to_linked_dda(account_id, amount)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const transactions = await fireblocks.redeemToLinkedDDA(accountId,\
\ amount);"
@@ -2624,6 +3074,20 @@ paths:
\ = fireblocks.fiatAccounts().redeemFundsToLinkedDDA(accountId, funds,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.fiat_accounts.redeem_funds_to_linked_d_d_a(account_id,\
+ \ funds, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.fiatAccounts.redeemFundsToLinkedDDA(fiatAccountsApiRedeemFundsToLinkedDDARequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.fiatAccounts().redeemFundsToLinkedDDA(accountId, funds, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.fiat_accounts.redeem_funds_to_linked_d_d_a(account_id,\
+ \ funds, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/fiat_accounts/{accountId}/deposit_from_linked_dda:
@@ -2681,7 +3145,7 @@ paths:
code-samples:
- language: python
code: "transactions = fireblocks.deposit_from_linked_dda(account_id, amount)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const transactions = await fireblocks.depositFromLinkedDDA(accountId,\
\ amount);"
@@ -2695,6 +3159,21 @@ paths:
\ response = fireblocks.fiatAccounts().depositFundsFromLinkedDDA(accountId,\
\ funds, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.fiat_accounts.deposit_funds_from_linked_d_d_a(account_id,\
+ \ funds, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.fiatAccounts.depositFundsFromLinkedDDA(fiatAccountsApiDepositFundsFromLinkedDDARequest);"
+ - lang: Java
+ source: "CompletableFuture>\
+ \ response = fireblocks.fiatAccounts().depositFundsFromLinkedDDA(accountId,\
+ \ funds, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.fiat_accounts.deposit_funds_from_linked_d_d_a(account_id,\
+ \ funds, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/network_connections:
@@ -2744,7 +3223,7 @@ paths:
code-samples:
- language: python
code: network_connections = fireblocks.get_network_connections()
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const networkConnections = await fireblocks.getNetworkConnections();
name: Fireblocks SDK Javascript example
@@ -2756,6 +3235,18 @@ paths:
code: CompletableFuture>> response
= fireblocks.networkConnections().getNetworkConnections();
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.network_connections.get_network_connections();
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.getNetworkConnections();"
+ - lang: Java
+ source: CompletableFuture>> response
+ = fireblocks.networkConnections().getNetworkConnections();
+ - lang: Python
+ source: response = fireblocks.network_connections.get_network_connections();
x-accepts: application/json
post:
description: |
@@ -2829,6 +3320,21 @@ paths:
\ = fireblocks.networkConnections().createNetworkConnection(networkConnection,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.network_connections.create_network_connection(network_connection,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.createNetworkConnection(networkConnectionsApiCreateNetworkConnectionRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.networkConnections().createNetworkConnection(networkConnection,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.network_connections.create_network_connection(network_connection,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/network_connections/{connectionId}/set_routing_policy:
@@ -2900,6 +3406,20 @@ paths:
code: "CompletableFuture> response\
\ = fireblocks.networkConnections().setRoutingPolicy(connectionId, setRoutingPolicyRequest);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.network_connections.set_routing_policy(connection_id,\
+ \ set_routing_policy_request);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.setRoutingPolicy(networkConnectionsApiSetRoutingPolicyRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.networkConnections().setRoutingPolicy(connectionId, setRoutingPolicyRequest);"
+ - lang: Python
+ source: "response = fireblocks.network_connections.set_routing_policy(connection_id,\
+ \ set_routing_policy_request);"
x-content-type: application/json
x-accepts: application/json
/network_connections/{connectionId}/is_third_party_routing/{assetType}:
@@ -2958,6 +3478,20 @@ paths:
code: "CompletableFuture> response = fireblocks.networkConnections().checkThirdPartyRouting(connectionId,\
\ assetType);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.network_connections.check_third_party_routing(connection_id,\
+ \ asset_type);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.networkConnections.checkThirdPartyRouting(networkConnectionsApiCheckThirdPartyRoutingRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.networkConnections().checkThirdPartyRouting(connectionId,\
+ \ assetType);"
+ - lang: Python
+ source: "response = fireblocks.network_connections.check_third_party_routing(connection_id,\
+ \ asset_type);"
x-accepts: application/json
/network_connections/{connectionId}:
delete:
@@ -3021,6 +3555,18 @@ paths:
code: CompletableFuture> response
= fireblocks.networkConnections().deleteNetworkConnection(connectionId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.network_connections.delete_network_connection(connection_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.deleteNetworkConnection(networkConnectionsApiDeleteNetworkConnectionRequest);"
+ - lang: Java
+ source: CompletableFuture> response
+ = fireblocks.networkConnections().deleteNetworkConnection(connectionId);
+ - lang: Python
+ source: response = fireblocks.network_connections.delete_network_connection(connection_id);
x-accepts: application/json
get:
description: |
@@ -3077,7 +3623,7 @@ paths:
code-samples:
- language: python
code: network_connection = fireblocks.get_network_connection_by_id(connectionId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const network_connection = await fireblocks.getNetworkConnection(connectionId);
name: Fireblocks SDK Javascript example
@@ -3089,6 +3635,18 @@ paths:
code: CompletableFuture> response
= fireblocks.networkConnections().getNetwork(connectionId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.network_connections.get_network(connection_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.getNetwork(networkConnectionsApiGetNetworkRequest);"
+ - lang: Java
+ source: CompletableFuture> response
+ = fireblocks.networkConnections().getNetwork(connectionId);
+ - lang: Python
+ source: response = fireblocks.network_connections.get_network(connection_id);
x-accepts: application/json
/network_ids:
get:
@@ -3142,6 +3700,17 @@ paths:
- language: java
code: CompletableFuture>> response = fireblocks.networkConnections().getNetworkIds();
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.network_connections.get_network_ids();
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.getNetworkIds();"
+ - lang: Java
+ source: CompletableFuture>> response = fireblocks.networkConnections().getNetworkIds();
+ - lang: Python
+ source: response = fireblocks.network_connections.get_network_ids();
x-accepts: application/json
post:
description: |
@@ -3214,6 +3783,20 @@ paths:
code: "CompletableFuture> response = fireblocks.networkConnections().createNetworkId(createNetworkIdRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.network_connections.create_network_id(create_network_id_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.networkConnections.createNetworkId(networkConnectionsApiCreateNetworkIdRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.networkConnections().createNetworkId(createNetworkIdRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.network_connections.create_network_id(create_network_id_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/network_ids/routing_policy_asset_groups:
@@ -3254,6 +3837,17 @@ paths:
- language: java
code: CompletableFuture>> response = fireblocks.networkConnections().getRoutingPolicyAssetGroups();
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.network_connections.get_routing_policy_asset_groups();
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.getRoutingPolicyAssetGroups();"
+ - lang: Java
+ source: CompletableFuture>> response = fireblocks.networkConnections().getRoutingPolicyAssetGroups();
+ - lang: Python
+ source: response = fireblocks.network_connections.get_routing_policy_asset_groups();
x-accepts: application/json
/network_ids/{networkId}:
delete:
@@ -3314,6 +3908,18 @@ paths:
code: CompletableFuture> response =
fireblocks.networkConnections().deleteNetworkId(networkId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.network_connections.delete_network_id(network_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.deleteNetworkId(networkConnectionsApiDeleteNetworkIdRequest);"
+ - lang: Java
+ source: CompletableFuture> response =
+ fireblocks.networkConnections().deleteNetworkId(networkId);
+ - lang: Python
+ source: response = fireblocks.network_connections.delete_network_id(network_id);
x-accepts: application/json
get:
description: |
@@ -3375,6 +3981,17 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.networkConnections().getNetworkId(networkId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.network_connections.get_network_id(network_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.networkConnections.getNetworkId(networkConnectionsApiGetNetworkIdRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.networkConnections().getNetworkId(networkId);
+ - lang: Python
+ source: response = fireblocks.network_connections.get_network_id(network_id);
x-accepts: application/json
/network_ids/{networkId}/set_routing_policy:
patch:
@@ -3445,6 +4062,20 @@ paths:
code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdRoutingPolicy(networkId,\
\ setNetworkIdRoutingPolicyRequest);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.network_connections.set_network_id_routing_policy(network_id,\
+ \ set_network_id_routing_policy_request);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.setNetworkIdRoutingPolicy(networkConnectionsApiSetNetworkIdRoutingPolicyRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdRoutingPolicy(networkId,\
+ \ setNetworkIdRoutingPolicyRequest);"
+ - lang: Python
+ source: "response = fireblocks.network_connections.set_network_id_routing_policy(network_id,\
+ \ set_network_id_routing_policy_request);"
x-content-type: application/json
x-accepts: application/json
/network_ids/{networkId}/set_discoverability:
@@ -3515,6 +4146,20 @@ paths:
code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest,\
\ networkId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.network_connections.set_network_id_discoverability(set_network_id_discoverability_request,\
+ \ network_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.setNetworkIdDiscoverability(networkConnectionsApiSetNetworkIdDiscoverabilityRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdDiscoverability(setNetworkIdDiscoverabilityRequest,\
+ \ networkId);"
+ - lang: Python
+ source: "response = fireblocks.network_connections.set_network_id_discoverability(set_network_id_discoverability_request,\
+ \ network_id);"
x-content-type: application/json
x-accepts: application/json
/network_ids/{networkId}/set_name:
@@ -3585,6 +4230,20 @@ paths:
code: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdName(setNetworkIdNameRequest,\
\ networkId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.network_connections.set_network_id_name(set_network_id_name_request,\
+ \ network_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.networkConnections.setNetworkIdName(networkConnectionsApiSetNetworkIdNameRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.networkConnections().setNetworkIdName(setNetworkIdNameRequest,\
+ \ networkId);"
+ - lang: Python
+ source: "response = fireblocks.network_connections.set_network_id_name(set_network_id_name_request,\
+ \ network_id);"
x-content-type: application/json
x-accepts: application/json
/internal_wallets:
@@ -3625,6 +4284,17 @@ paths:
- language: java
code: CompletableFuture>> response = fireblocks.internalWallets().getInternalWallets();
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.internal_wallets.get_internal_wallets();
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.internalWallets.getInternalWallets();"
+ - lang: Java
+ source: CompletableFuture>> response = fireblocks.internalWallets().getInternalWallets();
+ - lang: Python
+ source: response = fireblocks.internal_wallets.get_internal_wallets();
x-accepts: application/json
post:
description: Creates a new internal wallet with the requested name.
@@ -3672,7 +4342,7 @@ paths:
code-samples:
- language: python
code: "internalWallet = fireblocks.create_internal_wallet(name, customer_ref_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const internalWallet = await fireblocks.createInternalWallet(name,\
\ customerRefId);"
@@ -3684,6 +4354,19 @@ paths:
code: "CompletableFuture> response = fireblocks.internalWallets().createInternalWallet(createWalletRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.internal_wallets.create_internal_wallet(create_wallet_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.internalWallets.createInternalWallet(internalWalletsApiCreateInternalWalletRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.internalWallets().createInternalWallet(createWalletRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.internal_wallets.create_internal_wallet(create_wallet_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/internal_wallets/{walletId}:
@@ -3721,7 +4404,7 @@ paths:
code-samples:
- language: python
code: result = firebocks.delete_internal_wallet(walletId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const result = await fireblocks.deleteInternalWallet(walletId);
name: Fireblocks SDK Javascript example
@@ -3731,6 +4414,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.internalWallets().deleteInternalWallet(walletId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.internal_wallets.delete_internal_wallet(wallet_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.internalWallets.deleteInternalWallet(internalWalletsApiDeleteInternalWalletRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.internalWallets().deleteInternalWallet(walletId);
+ - lang: Python
+ source: response = fireblocks.internal_wallets.delete_internal_wallet(wallet_id);
x-accepts: application/json
get:
description: Returns all assets in an internal wallet by ID.
@@ -3770,7 +4463,7 @@ paths:
code-samples:
- language: python
code: internalWallet = fireblocks.get_internal_wallet(walletId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const result = await fireblocks.getInternalWallet(walletId);
name: Fireblocks SDK Javascript example
@@ -3780,6 +4473,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.internalWallets().getInternalWallet(walletId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.internal_wallets.get_internal_wallet(wallet_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.internalWallets.getInternalWallet(internalWalletsApiGetInternalWalletRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.internalWallets().getInternalWallet(walletId);
+ - lang: Python
+ source: response = fireblocks.internal_wallets.get_internal_wallet(wallet_id);
x-accepts: application/json
/internal_wallets/{walletId}/set_customer_ref_id:
post:
@@ -3835,7 +4538,7 @@ paths:
- language: python
code: "result = firebocks.set_customer_ref_id_for_internal_wallet(wallet_id,\
\ customer_ref_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const result = await fireblocks.setCustomerRefIdForInternalWallet(walletId,\
\ customerRefId);"
@@ -3847,6 +4550,19 @@ paths:
code: "CompletableFuture> response = fireblocks.internalWallets().setCustomerRefIdForInternalWallet(setCustomerRefIdRequest,\
\ walletId, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.internal_wallets.set_customer_ref_id_for_internal_wallet(set_customer_ref_id_request,\
+ \ wallet_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.internalWallets.setCustomerRefIdForInternalWallet(internalWalletsApiSetCustomerRefIdForInternalWalletRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.internalWallets().setCustomerRefIdForInternalWallet(setCustomerRefIdRequest,\
+ \ walletId, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.internal_wallets.set_customer_ref_id_for_internal_wallet(set_customer_ref_id_request,\
+ \ wallet_id, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/internal_wallets/{walletId}/{assetId}:
@@ -3893,7 +4609,7 @@ paths:
code-samples:
- language: python
code: "result = fireblocks.delete_internal_wallet_asset(walletId, assetId)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const result = await fireblocks.deleteInternalWalletAsset(walletId,\
\ assetId);"
@@ -3905,6 +4621,19 @@ paths:
code: "CompletableFuture> response = fireblocks.internalWallets().deleteInternalWalletAsset(walletId,\
\ assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.internal_wallets.delete_internal_wallet_asset(wallet_id,\
+ \ asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.internalWallets.deleteInternalWalletAsset(internalWalletsApiDeleteInternalWalletAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.internalWallets().deleteInternalWalletAsset(walletId,\
+ \ assetId);"
+ - lang: Python
+ source: "response = fireblocks.internal_wallets.delete_internal_wallet_asset(wallet_id,\
+ \ asset_id);"
x-accepts: application/json
get:
description: Returns information for an asset in an internal wallet.
@@ -3954,7 +4683,7 @@ paths:
- language: python
code: "internalWalletAsset = fireblocks.get_internal_wallet_asset(walletId,\
\ assetId)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const internalWalletAsset = fireblocks.getInternalWalletAsset(walletId,\
\ assetId);"
@@ -3966,6 +4695,19 @@ paths:
code: "CompletableFuture> response = fireblocks.internalWallets().getInternalWalletAsset(walletId,\
\ assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.internal_wallets.get_internal_wallet_asset(wallet_id,\
+ \ asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.internalWallets.getInternalWalletAsset(internalWalletsApiGetInternalWalletAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.internalWallets().getInternalWalletAsset(walletId,\
+ \ assetId);"
+ - lang: Python
+ source: "response = fireblocks.internal_wallets.get_internal_wallet_asset(wallet_id,\
+ \ asset_id);"
x-accepts: application/json
post:
description: Adds an asset to an existing internal wallet.
@@ -4031,7 +4773,7 @@ paths:
- language: python
code: "internalWalletAsset = fireblocks.create_internal_wallet_asset(walletId,\
\ assetId, address, tag)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const internalWalletAsset = await fireblocks.createInternalWalletAsset(walletContainerId,\
\ assetId, address, tag);"
@@ -4043,6 +4785,19 @@ paths:
code: "CompletableFuture> response = fireblocks.internalWallets().createInternalWalletAsset(walletId,\
\ assetId, createInternalWalletAssetRequest, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.internal_wallets.create_internal_wallet_asset(wallet_id,\
+ \ asset_id, create_internal_wallet_asset_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.internalWallets.createInternalWalletAsset(internalWalletsApiCreateInternalWalletAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.internalWallets().createInternalWalletAsset(walletId,\
+ \ assetId, createInternalWalletAssetRequest, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.internal_wallets.create_internal_wallet_asset(wallet_id,\
+ \ asset_id, create_internal_wallet_asset_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/key_link/signing_keys:
@@ -4179,6 +4934,23 @@ paths:
\ = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize,\
\ sortBy, order, vaultAccountId, agentUserId, algorithm, enabled, available);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.key_link_beta.get_signing_keys_list(page_cursor,\
+ \ page_size, sort_by, order, vault_account_id, agent_user_id, algorithm,\
+ \ enabled, available);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.keyLinkBeta.getSigningKeysList(keyLinkBetaApiGetSigningKeysListRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.keyLinkBeta().getSigningKeysList(pageCursor, pageSize, sortBy,\
+ \ order, vaultAccountId, agentUserId, algorithm, enabled, available);"
+ - lang: Python
+ source: "response = fireblocks.key_link_beta.get_signing_keys_list(page_cursor,\
+ \ page_size, sort_by, order, vault_account_id, agent_user_id, algorithm,\
+ \ enabled, available);"
x-accepts: application/json
post:
description: "Adds a new signing key to the workspace. The added key will be\
@@ -4239,6 +5011,19 @@ paths:
code: "CompletableFuture> response = fireblocks.keyLinkBeta().createSigningKey(createSigningKeyDto,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.key_link_beta.create_signing_key(create_signing_key_dto,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.keyLinkBeta.createSigningKey(keyLinkBetaApiCreateSigningKeyRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.keyLinkBeta().createSigningKey(createSigningKeyDto,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.key_link_beta.create_signing_key(create_signing_key_dto,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/key_link/signing_keys/{keyId}:
@@ -4290,6 +5075,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKey(keyId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.key_link_beta.get_signing_key(key_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.keyLinkBeta.getSigningKey(keyLinkBetaApiGetSigningKeyRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.keyLinkBeta().getSigningKey(keyId);
+ - lang: Python
+ source: response = fireblocks.key_link_beta.get_signing_key(key_id);
x-accepts: application/json
patch:
description: "Allows assigning the signing key to a vault account, if it hasn't\
@@ -4346,6 +5141,19 @@ paths:
code: "CompletableFuture> response = fireblocks.keyLinkBeta().updateSigningKey(modifySigningKeyDto,\
\ keyId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.key_link_beta.update_signing_key(modify_signing_key_dto,\
+ \ key_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.keyLinkBeta.updateSigningKey(keyLinkBetaApiUpdateSigningKeyRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.keyLinkBeta().updateSigningKey(modifySigningKeyDto,\
+ \ keyId);"
+ - lang: Python
+ source: "response = fireblocks.key_link_beta.update_signing_key(modify_signing_key_dto,\
+ \ key_id);"
x-content-type: application/json
x-accepts: application/json
/key_link/signing_keys/{keyId}/agent_user_id:
@@ -4402,6 +5210,19 @@ paths:
code: "CompletableFuture> response = fireblocks.keyLinkBeta().setAgentId(modifySigningKeyAgentIdDto,\
\ keyId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.key_link_beta.set_agent_id(modify_signing_key_agent_id_dto,\
+ \ key_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.keyLinkBeta.setAgentId(keyLinkBetaApiSetAgentIdRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.keyLinkBeta().setAgentId(modifySigningKeyAgentIdDto,\
+ \ keyId);"
+ - lang: Python
+ source: "response = fireblocks.key_link_beta.set_agent_id(modify_signing_key_agent_id_dto,\
+ \ key_id);"
x-content-type: application/json
x-accepts: application/json
/key_link/validation_keys:
@@ -4490,6 +5311,21 @@ paths:
\ = fireblocks.keyLinkBeta().getValidationKeysList(pageCursor, pageSize,\
\ sortBy, order);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.key_link_beta.get_validation_keys_list(page_cursor,\
+ \ page_size, sort_by, order);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.keyLinkBeta.getValidationKeysList(keyLinkBetaApiGetValidationKeysListRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.keyLinkBeta().getValidationKeysList(pageCursor, pageSize,\
+ \ sortBy, order);"
+ - lang: Python
+ source: "response = fireblocks.key_link_beta.get_validation_keys_list(page_cursor,\
+ \ page_size, sort_by, order);"
x-accepts: application/json
post:
description: "Adds a new validation key used to validate signing keys. The new\
@@ -4550,6 +5386,21 @@ paths:
\ = fireblocks.keyLinkBeta().createValidationKey(createValidationKeyDto,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.key_link_beta.create_validation_key(create_validation_key_dto,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.keyLinkBeta.createValidationKey(keyLinkBetaApiCreateValidationKeyRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.keyLinkBeta().createValidationKey(createValidationKeyDto,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.key_link_beta.create_validation_key(create_validation_key_dto,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/key_link/validation_keys/{keyId}:
@@ -4599,6 +5450,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.keyLinkBeta().getValidationKey(keyId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.key_link_beta.get_validation_key(key_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.keyLinkBeta.getValidationKey(keyLinkBetaApiGetValidationKeyRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.keyLinkBeta().getValidationKey(keyId);
+ - lang: Python
+ source: response = fireblocks.key_link_beta.get_validation_key(key_id);
x-accepts: application/json
patch:
description: "Allows disabling validation key even if it has not expired yet.\
@@ -4656,6 +5517,19 @@ paths:
code: "CompletableFuture> response = fireblocks.keyLinkBeta().disableValidationKey(modifyValidationKeyDto,\
\ keyId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.key_link_beta.disable_validation_key(modify_validation_key_dto,\
+ \ key_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.keyLinkBeta.disableValidationKey(keyLinkBetaApiDisableValidationKeyRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.keyLinkBeta().disableValidationKey(modifyValidationKeyDto,\
+ \ keyId);"
+ - lang: Python
+ source: "response = fireblocks.key_link_beta.disable_validation_key(modify_validation_key_dto,\
+ \ key_id);"
x-content-type: application/json
x-accepts: application/json
/external_wallets:
@@ -4688,7 +5562,7 @@ paths:
code-samples:
- language: python
code: externalWallets = fireblocks.get_external_wallets()
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const externalWallets = await fireblocks.getExternalWallets();
name: Fireblocks SDK Javascript example
@@ -4699,6 +5573,17 @@ paths:
- language: java
code: CompletableFuture>> response = fireblocks.externalWallets().getExternalWallets();
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.external_wallets.get_external_wallets();
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.externalWallets.getExternalWallets();"
+ - lang: Java
+ source: CompletableFuture>> response = fireblocks.externalWallets().getExternalWallets();
+ - lang: Python
+ source: response = fireblocks.external_wallets.get_external_wallets();
x-accepts: application/json
post:
description: Creates a new external wallet with the requested name.
@@ -4746,7 +5631,7 @@ paths:
code-samples:
- language: python
code: "externalWallet = fireblocks.create_external_wallet(name, customer_ref_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const externalWallet = await fireblocks.createExternalWallet(name,\
\ customerRefId);"
@@ -4758,6 +5643,19 @@ paths:
code: "CompletableFuture> response = fireblocks.externalWallets().createExternalWallet(createWalletRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.external_wallets.create_external_wallet(create_wallet_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.externalWallets.createExternalWallet(externalWalletsApiCreateExternalWalletRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.externalWallets().createExternalWallet(createWalletRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.external_wallets.create_external_wallet(create_wallet_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/external_wallets/{walletId}:
@@ -4795,7 +5693,7 @@ paths:
code-samples:
- language: python
code: result = firebocks.delete_external_wallet(walletId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const result = await fireblocks.deleteExternalWallet(walletId);
name: Fireblocks SDK Javascript example
@@ -4805,6 +5703,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.externalWallets().deleteExternalWallet(walletId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.external_wallets.delete_external_wallet(wallet_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.externalWallets.deleteExternalWallet(externalWalletsApiDeleteExternalWalletRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.externalWallets().deleteExternalWallet(walletId);
+ - lang: Python
+ source: response = fireblocks.external_wallets.delete_external_wallet(wallet_id);
x-accepts: application/json
get:
description: Returns an external wallet by ID.
@@ -4844,7 +5752,7 @@ paths:
code-samples:
- language: python
code: externalWallet = fireblocks.get_external_wallet(walletId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const externalWallet = await fireblocks.getExternalWallet(walletId);
name: Fireblocks SDK Javascript example
@@ -4854,6 +5762,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.externalWallets().getExternalWallet(walletId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.external_wallets.get_external_wallet(wallet_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.externalWallets.getExternalWallet(externalWalletsApiGetExternalWalletRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.externalWallets().getExternalWallet(walletId);
+ - lang: Python
+ source: response = fireblocks.external_wallets.get_external_wallet(wallet_id);
x-accepts: application/json
/external_wallets/{walletId}/set_customer_ref_id:
post:
@@ -4909,7 +5827,7 @@ paths:
- language: python
code: "result = firebocks.set_customer_ref_id_for_external_wallet(wallet_id,\
\ customer_ref_id)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const result = await fireblocks.setCustomerRefIdForExternalWallet(walletId,\
\ customerRefId);"
@@ -4921,6 +5839,19 @@ paths:
code: "CompletableFuture> response = fireblocks.externalWallets().setExternalWalletCustomerRefId(setCustomerRefIdRequest,\
\ walletId, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.external_wallets.set_external_wallet_customer_ref_id(set_customer_ref_id_request,\
+ \ wallet_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.externalWallets.setExternalWalletCustomerRefId(externalWalletsApiSetExternalWalletCustomerRefIdRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.externalWallets().setExternalWalletCustomerRefId(setCustomerRefIdRequest,\
+ \ walletId, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.external_wallets.set_external_wallet_customer_ref_id(set_customer_ref_id_request,\
+ \ wallet_id, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/external_wallets/{walletId}/{assetId}:
@@ -4967,7 +5898,7 @@ paths:
code-samples:
- language: python
code: "result = fireblocks.delete_external_wallet_asset(walletId, assetId)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const result = await fireblocks.deleteExternalWalletAsset(walletId,\
\ assetId);"
@@ -4979,6 +5910,19 @@ paths:
code: "CompletableFuture> response = fireblocks.externalWallets().removeAssetFromExternalWallet(walletId,\
\ assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.external_wallets.remove_asset_from_external_wallet(wallet_id,\
+ \ asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.externalWallets.removeAssetFromExternalWallet(externalWalletsApiRemoveAssetFromExternalWalletRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.externalWallets().removeAssetFromExternalWallet(walletId,\
+ \ assetId);"
+ - lang: Python
+ source: "response = fireblocks.external_wallets.remove_asset_from_external_wallet(wallet_id,\
+ \ asset_id);"
x-accepts: application/json
get:
description: Returns an external wallet by wallet ID and asset ID.
@@ -5028,7 +5972,7 @@ paths:
- language: python
code: "externalWalletAsset = fireblocks.get_external_wallet_asset(walletId,\
\ assetId)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const externalWalletAsset = fireblocks.getExternalWalletAsset(walletId,\
\ assetId)"
@@ -5041,6 +5985,20 @@ paths:
code: "CompletableFuture> response = fireblocks.externalWallets().getExternalWalletAsset(walletId,\
\ assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.external_wallets.get_external_wallet_asset(wallet_id,\
+ \ asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.externalWallets.getExternalWalletAsset(externalWalletsApiGetExternalWalletAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.externalWallets().getExternalWalletAsset(walletId,\
+ \ assetId);"
+ - lang: Python
+ source: "response = fireblocks.external_wallets.get_external_wallet_asset(wallet_id,\
+ \ asset_id);"
x-accepts: application/json
post:
description: Adds an asset to an existing external wallet.
@@ -5106,7 +6064,7 @@ paths:
- language: python
code: "externalWalletAsset = fireblocks.create_external_wallet_asset(walletId,\
\ assetId, address, tag)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const externalWalletAsset = await fireblocks.createExternalWalletAsset(walletContainerId,\
\ assetId, address, tag);"
@@ -5119,6 +6077,20 @@ paths:
code: "CompletableFuture> response = fireblocks.externalWallets().addAssetToExternalWallet(walletId,\
\ assetId, addAssetToExternalWalletRequest, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.external_wallets.add_asset_to_external_wallet(wallet_id,\
+ \ asset_id, add_asset_to_external_wallet_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.externalWallets.addAssetToExternalWallet(externalWalletsApiAddAssetToExternalWalletRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.externalWallets().addAssetToExternalWallet(walletId,\
+ \ assetId, addAssetToExternalWalletRequest, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.external_wallets.add_asset_to_external_wallet(wallet_id,\
+ \ asset_id, add_asset_to_external_wallet_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/contracts:
@@ -5156,6 +6128,17 @@ paths:
- language: java
code: CompletableFuture>> response = fireblocks.contracts().getContracts();
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.contracts.get_contracts();
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.contracts.getContracts();"
+ - lang: Java
+ source: CompletableFuture>> response = fireblocks.contracts().getContracts();
+ - lang: Python
+ source: response = fireblocks.contracts.get_contracts();
x-accepts: application/json
post:
description: Creates a new contract.
@@ -5208,6 +6191,19 @@ paths:
code: "CompletableFuture> response = fireblocks.contracts().createContract(createContractRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.contracts.create_contract(create_contract_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.contracts.createContract(contractsApiCreateContractRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.contracts().createContract(createContractRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.contracts.create_contract(create_contract_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/contracts/{contractId}:
@@ -5249,6 +6245,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.contracts().deleteContract(contractId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.contracts.delete_contract(contract_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.contracts.deleteContract(contractsApiDeleteContractRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.contracts().deleteContract(contractId);
+ - lang: Python
+ source: response = fireblocks.contracts.delete_contract(contract_id);
x-accepts: application/json
get:
description: Returns a contract by ID.
@@ -5292,6 +6298,16 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.contracts().getContract(contractId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.contracts.get_contract(contract_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.contracts.getContract(contractsApiGetContractRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.contracts().getContract(contractId);
+ - lang: Python
+ source: response = fireblocks.contracts.get_contract(contract_id);
x-accepts: application/json
/contracts/{contractId}/{assetId}:
delete:
@@ -5342,6 +6358,19 @@ paths:
code: "CompletableFuture> response = fireblocks.contracts().deleteContractAsset(contractId,\
\ assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.contracts.delete_contract_asset(contract_id,\
+ \ asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.contracts.deleteContractAsset(contractsApiDeleteContractAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.contracts().deleteContractAsset(contractId,\
+ \ assetId);"
+ - lang: Python
+ source: "response = fireblocks.contracts.delete_contract_asset(contract_id,\
+ \ asset_id);"
x-accepts: application/json
get:
description: Returns a contract asset by ID.
@@ -5396,6 +6425,18 @@ paths:
code: "CompletableFuture> response = fireblocks.contracts().getContractAsset(contractId,\
\ assetId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.contracts.get_contract_asset(contract_id, asset_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.contracts.getContractAsset(contractsApiGetContractAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.contracts().getContractAsset(contractId,\
+ \ assetId);"
+ - lang: Python
+ source: "response = fireblocks.contracts.get_contract_asset(contract_id, asset_id);"
x-accepts: application/json
post:
description: Adds an asset to an existing contract.
@@ -5466,6 +6507,20 @@ paths:
code: "CompletableFuture> response = fireblocks.contracts().addContractAsset(contractId,\
\ assetId, addContractAssetRequest, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.contracts.add_contract_asset(contract_id, asset_id,\
+ \ add_contract_asset_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.contracts.addContractAsset(contractsApiAddContractAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.contracts().addContractAsset(contractId,\
+ \ assetId, addContractAssetRequest, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.contracts.add_contract_asset(contract_id, asset_id,\
+ \ add_contract_asset_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/supported_assets:
@@ -5498,7 +6553,7 @@ paths:
code-samples:
- language: python
code: supportedAssets = fireblocks.get_supported_assets()
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const supportedAssets = await fireblocks.getSupportedAssets();
name: Fireblocks SDK Javascript example
@@ -5510,6 +6565,18 @@ paths:
code: CompletableFuture>> response =
fireblocks.blockchainsAssets().getSupportedAssets();
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.blockchains_&_assets.get_supported_assets();
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.blockchainsAssets.getSupportedAssets();"
+ - lang: Java
+ source: CompletableFuture>> response =
+ fireblocks.blockchainsAssets().getSupportedAssets();
+ - lang: Python
+ source: response = fireblocks.blockchains_&_assets.get_supported_assets();
x-accepts: application/json
/assets:
post:
@@ -5602,7 +6669,7 @@ paths:
- language: python
code: "supportedAssets = fireblocks.register_new_asset(blockchainId, address,\
\ symbol)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const supportedAssets = await fireblocks.registerNewAsset(blockchainId,\
\ address, symbol);"
@@ -5614,6 +6681,116 @@ paths:
code: "CompletableFuture> response = fireblocks.blockchainsAssets().registerNewAsset(registerNewAssetRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.blockchains_&_assets.register_new_asset(register_new_asset_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> = fireblocks.blockchainsAssets.registerNewAsset(blockchainsAssetsApiRegisterNewAssetRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.blockchainsAssets().registerNewAsset(registerNewAssetRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.blockchains_&_assets.register_new_asset(register_new_asset_request,\
+ \ idempotency_key);"
+ x-content-type: application/json
+ x-accepts: application/json
+ /assets/prices/{id}:
+ post:
+ description: |
+ Set asset price for the given asset id. Returns the asset price response.
+ operationId: setAssetPrice
+ parameters:
+ - description: The ID of the asset
+ example: ETH
+ explode: false
+ in: path
+ name: id
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: "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."
+ explode: false
+ in: header
+ name: Idempotency-Key
+ required: false
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SetAssetPriceRequest'
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AssetPriceResponse'
+ description: Asset price has been set successfully.
+ "403":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AssetPriceForbiddenErrorResponse'
+ description: |
+ - Tenant is not allowed to set rate. Error code: 1002.
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AssetPriceNotFoundErrorResponse'
+ description: |
+ - Currency not found. Error code 1001
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorSchema'
+ description: Error Response
+ headers:
+ X-Request-ID:
+ $ref: '#/components/headers/X-Request-ID'
+ summary: Set asset price
+ tags:
+ - Blockchains & assets
+ x-readme:
+ code-samples:
+ - language: python
+ code: "supportedAssets = fireblocks.set_asset_price(id, currency, price)"
+ name: Fireblocks SDK Python example (Legacy)
+ - language: javascript
+ code: "const supportedAssets = await fireblocks.setAssetPrice(id, currency,\
+ \ price);"
+ name: Fireblocks SDK Javascript example
+ - language: typescript
+ code: "const response: Promise> =\
+ \ fireblocks.blockchainsAssets.setAssetPrice(blockchainsAssetsApiSetAssetPriceRequest);"
+ name: Fireblocks SDK TypeScript example
+ - language: java
+ code: "CompletableFuture> response = fireblocks.blockchainsAssets().setAssetPrice(id,\
+ \ setAssetPriceRequest, idempotencyKey);"
+ name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.blockchains_&_assets.set_asset_price(id, set_asset_price_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise> =\
+ \ fireblocks.blockchainsAssets.setAssetPrice(blockchainsAssetsApiSetAssetPriceRequest);"
+ - lang: Java
+ source: "CompletableFuture> response = fireblocks.blockchainsAssets().setAssetPrice(id,\
+ \ setAssetPriceRequest, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.blockchains_&_assets.set_asset_price(id, set_asset_price_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/transactions:
@@ -5802,7 +6979,7 @@ paths:
code-samples:
- language: python
code: "transactions = fireblocks.get_transactions(status, after)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: |
const transactions = await fireblocks.getTransactions({
@@ -5819,6 +6996,24 @@ paths:
\ sort, limit, sourceType, sourceId, destType, destId, assets, txHash,\
\ sourceWalletId, destWalletId);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.transactions.get_transactions(before, after,\
+ \ status, order_by, sort, limit, source_type, source_id, dest_type, dest_id,\
+ \ assets, tx_hash, source_wallet_id, dest_wallet_id);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.transactions.getTransactions(transactionsApiGetTransactionsRequest);"
+ - lang: Java
+ source: "CompletableFuture>> response\
+ \ = fireblocks.transactions().getTransactions(before, after, status, orderBy,\
+ \ sort, limit, sourceType, sourceId, destType, destId, assets, txHash, sourceWalletId,\
+ \ destWalletId);"
+ - lang: Python
+ source: "response = fireblocks.transactions.get_transactions(before, after,\
+ \ status, order_by, sort, limit, source_type, source_id, dest_type, dest_id,\
+ \ assets, tx_hash, source_wallet_id, dest_wallet_id);"
x-accepts: application/json
post:
description: Creates a new transaction.
@@ -5877,7 +7072,7 @@ paths:
- language: python
code: |
tx_result = client.create_transaction( asset_id="BTC", amount="50", source=TransferPeerPath(VAULT_ACCOUNT, from_vault_account_id), destination=DestinationTransferPeerPath(VAULT_ACCOUNT, to_vault_account_id) )
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: |
const payload: TransactionArguments = { assetId: asset, source: { type: sourceType, id: sourceId || 0 }, destination: { type: destinationType, id: String(destinationId) }, amount: String(amount), fee: String(fee), note: "Created by fireblocks SDK" }; const result = await fireblocks.createTransaction(payload);
@@ -5891,6 +7086,21 @@ paths:
\ = fireblocks.transactions().createTransaction(transactionRequest, xEndUserWalletId,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.transactions.create_transaction(transaction_request,\
+ \ x_end_user_wallet_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.transactions.createTransaction(transactionsApiCreateTransactionRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.transactions().createTransaction(transactionRequest, xEndUserWalletId,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.transactions.create_transaction(transaction_request,\
+ \ x_end_user_wallet_id, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/transactions/estimate_fee:
@@ -5943,7 +7153,7 @@ paths:
- language: python
code: |
estimated_fee = client.estimate_fee_for_transaction( asset_id="BTC", amount="50", source=TransferPeerPath(VAULT_ACCOUNT, from_vault_account_id), destination=DestinationTransferPeerPath(VAULT_ACCOUNT, to_vault_account_id) )
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: |
const payload: TransactionArguments = { assetId: asset, source: { type: sourceType, id: sourceId || 0 }, destination: { type: destinationType, id: String(destinationId) }, amount: Number(amount) }; const estimatedFee = await fireblocks.estimateFeeForTransaction(payload);
@@ -5957,6 +7167,21 @@ paths:
\ = fireblocks.transactions().estimateTransactionFee(transactionRequest,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.transactions.estimate_transaction_fee(transaction_request,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.transactions.estimateTransactionFee(transactionsApiEstimateTransactionFeeRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.transactions().estimateTransactionFee(transactionRequest,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.transactions.estimate_transaction_fee(transaction_request,\
+ \ idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/transactions/{txId}:
@@ -6008,7 +7233,7 @@ paths:
code-samples:
- language: python
code: tx = fireblocks.get_transaction_by_id(txId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const tx = await fireblocks.getTransactionById(txId);
name: Fireblocks SDK Javascript example
@@ -6019,6 +7244,17 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.transactions().getTransaction(txId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.transactions.get_transaction(tx_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.transactions.getTransaction(transactionsApiGetTransactionRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.transactions().getTransaction(txId);
+ - lang: Python
+ source: response = fireblocks.transactions.get_transaction(tx_id);
x-accepts: application/json
/transactions/external_tx_id/{externalTxId}:
get:
@@ -6060,7 +7296,7 @@ paths:
code-samples:
- language: python
code: tx = fireblocks.get_transaction_by_external_tx_id(externalTxId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const tx = await fireblocks.getTransactionByExternalTxId(externalTxId);
name: Fireblocks SDK Javascript example
@@ -6071,6 +7307,17 @@ paths:
- language: java
code: CompletableFuture> response = fireblocks.transactions().getTransactionByExternalId(externalTxId);
name: Fireblocks SDK Java example
+ - language: python
+ code: response = fireblocks.transactions.get_transaction_by_external_id(external_tx_id);
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.transactions.getTransactionByExternalId(transactionsApiGetTransactionByExternalIdRequest);"
+ - lang: Java
+ source: CompletableFuture> response = fireblocks.transactions().getTransactionByExternalId(externalTxId);
+ - lang: Python
+ source: response = fireblocks.transactions.get_transaction_by_external_id(external_tx_id);
x-accepts: application/json
/transactions/{txId}/set_confirmation_threshold:
post:
@@ -6128,7 +7375,7 @@ paths:
code-samples:
- language: python
code: set_conf_threshold = client.set_confirmation_threshold_by_tx_id(body)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const setConfThreshold = await fireblocks.setConfirmationThresholdByTxId(body);
name: Fireblocks SDK Javascript example
@@ -6141,6 +7388,21 @@ paths:
\ response = fireblocks.transactions().setTransactionConfirmationThreshold(txId,\
\ setConfirmationsThresholdRequest, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.transactions.set_transaction_confirmation_threshold(tx_id,\
+ \ set_confirmations_threshold_request, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.transactions.setTransactionConfirmationThreshold(transactionsApiSetTransactionConfirmationThresholdRequest);"
+ - lang: Java
+ source: "CompletableFuture>\
+ \ response = fireblocks.transactions().setTransactionConfirmationThreshold(txId,\
+ \ setConfirmationsThresholdRequest, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.transactions.set_transaction_confirmation_threshold(tx_id,\
+ \ set_confirmations_threshold_request, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/transactions/{txId}/drop:
@@ -6208,7 +7470,7 @@ paths:
code-samples:
- language: python
code: "result = fireblocks.drop_transaction(txId, fee_level)"
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: "const result = await fireblocks.dropTransaction(txId, feeLevel);"
name: Fireblocks SDK Javascript example
@@ -6221,6 +7483,21 @@ paths:
\ = fireblocks.transactions().dropTransaction(txId, dropTransactionRequest,\
\ xEndUserWalletId, idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.transactions.drop_transaction(tx_id, drop_transaction_request,\
+ \ x_end_user_wallet_id, idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.transactions.dropTransaction(transactionsApiDropTransactionRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.transactions().dropTransaction(txId, dropTransactionRequest,\
+ \ xEndUserWalletId, idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.transactions.drop_transaction(tx_id, drop_transaction_request,\
+ \ x_end_user_wallet_id, idempotency_key);"
x-content-type: application/json
x-accepts: application/json
/transactions/{txId}/cancel:
@@ -6283,7 +7560,7 @@ paths:
code-samples:
- language: python
code: result = fireblocks.cancel_transaction_by_id(txId)
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const result = await fireblocks.cancelTransactionById(txId);
name: Fireblocks SDK Javascript example
@@ -6296,6 +7573,21 @@ paths:
\ = fireblocks.transactions().cancelTransaction(txId, xEndUserWalletId,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.transactions.cancel_transaction(tx_id, x_end_user_wallet_id,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise>\
+ \ = fireblocks.transactions.cancelTransaction(transactionsApiCancelTransactionRequest);"
+ - lang: Java
+ source: "CompletableFuture> response\
+ \ = fireblocks.transactions().cancelTransaction(txId, xEndUserWalletId,\
+ \ idempotencyKey);"
+ - lang: Python
+ source: "response = fireblocks.transactions.cancel_transaction(tx_id, x_end_user_wallet_id,\
+ \ idempotency_key);"
x-accepts: application/json
/transactions/{txId}/freeze:
post:
@@ -6348,7 +7640,7 @@ paths:
code-samples:
- language: python
code: result = fireblocks.freeze_transaction_by_id(txId);
- name: Fireblocks SDK Python example
+ name: Fireblocks SDK Python example (Legacy)
- language: javascript
code: const result = await fireblocks.freezeTransactionById(txId);
name: Fireblocks SDK Javascript example
@@ -6361,6 +7653,21 @@ paths:
\ = fireblocks.transactions().freezeTransaction(txId, xEndUserWalletId,\
\ idempotencyKey);"
name: Fireblocks SDK Java example
+ - language: python
+ code: "response = fireblocks.transactions.freeze_transaction(tx_id, x_end_user_wallet_id,\
+ \ idempotency_key);"
+ name: Fireblocks SDK Python example
+ x-codeSamples:
+ - lang: TypeScript
+ source: "const response: Promise