From 188a7fed41ae53e2211a58f422e3d0efe0ad9312 Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Tue, 23 Jul 2024 15:08:56 +0000 Subject: [PATCH] Generated SDK #96 --- .github/workflows/auto-reply-issue.yml | 35 + .github/workflows/auto-reply-pr.yml | 36 + .openapi-generator/FILES | 12 + README.md | 11 +- api/openapi.yaml | 3199 ++++++++++++++++- build.gradle | 2 +- docs/AssetPriceForbiddenErrorResponse.md | 14 + docs/AssetPriceNotFoundErrorResponse.md | 14 + docs/AssetPriceResponse.md | 26 + docs/BlockchainsAssetsApi.md | 90 + docs/CollectionOwnershipResponse.md | 2 + docs/NetworkIdResponse.md | 4 +- docs/NftsApi.md | 4 +- docs/SetAssetPriceRequest.md | 14 + docs/TokenOwnershipResponse.md | 2 + docs/TokenResponse.md | 2 + pom.xml | 2 +- .../com/fireblocks/sdk/Configuration.java | 2 +- .../sdk/api/BlockchainsAssetsApi.java | 85 + .../AssetPriceForbiddenErrorResponse.java | 182 + .../AssetPriceNotFoundErrorResponse.java | 182 + .../sdk/model/AssetPriceResponse.java | 339 ++ .../model/CollectionOwnershipResponse.java | 6 +- .../sdk/model/NetworkIdResponse.java | 166 +- .../sdk/model/SetAssetPriceRequest.java | 182 + .../sdk/model/TokenOwnershipResponse.java | 6 +- .../fireblocks/sdk/model/TokenResponse.java | 6 +- .../sdk/api/BlockchainsAssetsApiTest.java | 18 + .../AssetPriceForbiddenErrorResponseTest.java | 39 + .../AssetPriceNotFoundErrorResponseTest.java | 39 + .../sdk/model/AssetPriceResponseTest.java | 57 + .../sdk/model/NetworkIdResponseTest.java | 24 +- .../sdk/model/SetAssetPriceRequestTest.java | 39 + 33 files changed, 4625 insertions(+), 216 deletions(-) create mode 100644 .github/workflows/auto-reply-issue.yml create mode 100644 .github/workflows/auto-reply-pr.yml create mode 100644 docs/AssetPriceForbiddenErrorResponse.md create mode 100644 docs/AssetPriceNotFoundErrorResponse.md create mode 100644 docs/AssetPriceResponse.md create mode 100644 docs/SetAssetPriceRequest.md create mode 100644 src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java create mode 100644 src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java create mode 100644 src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java create mode 100644 src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java 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>\ + \ = fireblocks.transactions.freezeTransaction(transactionsApiFreezeTransactionRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.transactions().freezeTransaction(txId, xEndUserWalletId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.transactions.freeze_transaction(tx_id, x_end_user_wallet_id,\ + \ idempotency_key);" x-accepts: application/json /transactions/{txId}/unfreeze: post: @@ -6414,7 +7721,7 @@ paths: code-samples: - language: python code: result = fireblocks.unfreeze_transaction_by_id(txId) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const result = await fireblocks.unfreezeTransactionById(txId); name: Fireblocks SDK Javascript example @@ -6427,6 +7734,21 @@ paths: \ = fireblocks.transactions().unfreezeTransaction(txId, xEndUserWalletId,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.transactions.unfreeze_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.unfreezeTransaction(transactionsApiUnfreezeTransactionRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.transactions().unfreezeTransaction(txId, xEndUserWalletId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.transactions.unfreeze_transaction(tx_id, x_end_user_wallet_id,\ + \ idempotency_key);" x-accepts: application/json /transactions/validate_address/{assetId}/{address}: get: @@ -6476,7 +7798,7 @@ paths: code-samples: - language: python code: "result = fireblocks.(asset_id, address)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const result = await fireblocks.(assetId, address);" name: Fireblocks SDK Javascript example @@ -6488,6 +7810,18 @@ paths: code: "CompletableFuture> response\ \ = fireblocks.transactions().validateAddress(assetId, address);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.transactions.validate_address(asset_id, address);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.transactions.validateAddress(transactionsApiValidateAddressRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.transactions().validateAddress(assetId, address);" + - lang: Python + source: "response = fireblocks.transactions.validate_address(asset_id, address);" x-accepts: application/json /txHash/{txHash}/set_confirmation_threshold: post: @@ -6545,7 +7879,7 @@ paths: code-samples: - language: python code: set_conf_threshold = client.set_confirmation_threshold_by_tx_hash(body) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const setConfThreshold = await fireblocks.setConfirmationThresholdByTxHash(body); name: Fireblocks SDK Javascript example @@ -6558,6 +7892,21 @@ paths: \ response = fireblocks.transactions().setConfirmationThresholdByTransactionHash(txHash,\ \ setConfirmationsThresholdRequest, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.transactions.set_confirmation_threshold_by_transaction_hash(tx_hash,\ + \ set_confirmations_threshold_request, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.transactions.setConfirmationThresholdByTransactionHash(transactionsApiSetConfirmationThresholdByTransactionHashRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.transactions().setConfirmationThresholdByTransactionHash(txHash,\ + \ setConfirmationsThresholdRequest, idempotencyKey);" + - lang: Python + source: "response = fireblocks.transactions.set_confirmation_threshold_by_transaction_hash(tx_hash,\ + \ set_confirmations_threshold_request, idempotency_key);" x-content-type: application/json x-accepts: application/json /estimate_network_fee: @@ -6602,7 +7951,7 @@ paths: code-samples: - language: python code: fee_result = fireblocks.get_fee_for_asset(asset_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const feeResult = await fireblocks.getFeeForAsset(assetId); name: Fireblocks SDK Javascript example @@ -6614,6 +7963,18 @@ paths: code: CompletableFuture> response = fireblocks.transactions().estimateNetworkFee(assetId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.transactions.estimate_network_fee(asset_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.transactions.estimateNetworkFee(transactionsApiEstimateNetworkFeeRequest);" + - lang: Java + source: CompletableFuture> response + = fireblocks.transactions().estimateNetworkFee(assetId); + - lang: Python + source: response = fireblocks.transactions.estimate_network_fee(asset_id); x-accepts: application/json /payments/payout: post: @@ -6733,6 +8094,19 @@ paths: code: "CompletableFuture> response = fireblocks.paymentsPayout().createPayout(createPayoutRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.payments_payout.create_payout(create_payout_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.paymentsPayout.createPayout(paymentsPayoutApiCreatePayoutRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.paymentsPayout().createPayout(createPayoutRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.payments_payout.create_payout(create_payout_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /payments/payout/{payoutId}/actions/execute: @@ -6810,6 +8184,20 @@ paths: code: "CompletableFuture> response =\ \ fireblocks.paymentsPayout().executePayoutAction(payoutId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.payments_payout.execute_payout_action(payout_id,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.paymentsPayout.executePayoutAction(paymentsPayoutApiExecutePayoutActionRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.paymentsPayout().executePayoutAction(payoutId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.payments_payout.execute_payout_action(payout_id,\ + \ idempotency_key);" x-accepts: application/json /payments/payout/{payoutId}: get: @@ -6905,6 +8293,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.paymentsPayout().getPayout(payoutId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.payments_payout.get_payout(payout_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.paymentsPayout.getPayout(paymentsPayoutApiGetPayoutRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.paymentsPayout().getPayout(payoutId); + - lang: Python + source: response = fireblocks.payments_payout.get_payout(payout_id); x-accepts: application/json /payments/workflow_config: post: @@ -7205,7 +8603,7 @@ paths: code-samples: - language: python code: gas_station_info = fireblocks.get_gas_station_info() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const gasStationInfo = await fireblocks.gasStationInfo(); name: Fireblocks SDK Javascript example @@ -7217,6 +8615,18 @@ paths: code: CompletableFuture> response = fireblocks.gasStations().getGasStationInfo(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.gas_stations.get_gas_station_info(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.gasStations.getGasStationInfo();" + - lang: Java + source: CompletableFuture> response + = fireblocks.gasStations().getGasStationInfo(); + - lang: Python + source: response = fireblocks.gas_stations.get_gas_station_info(); x-accepts: application/json /gas_station/{assetId}: get: @@ -7258,7 +8668,7 @@ paths: code-samples: - language: python code: gas_station_info = fireblocks.get_gas_station_info(asset_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const gasStationInfo = await fireblocks.gasStationInfo(assetId); name: Fireblocks SDK Javascript example @@ -7270,6 +8680,18 @@ paths: code: CompletableFuture> response = fireblocks.gasStations().getGasStationByAssetId(assetId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.gas_stations.get_gas_station_by_asset_id(asset_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.gasStations.getGasStationByAssetId(gasStationsApiGetGasStationByAssetIdRequest);" + - lang: Java + source: CompletableFuture> response + = fireblocks.gasStations().getGasStationByAssetId(assetId); + - lang: Python + source: response = fireblocks.gas_stations.get_gas_station_by_asset_id(asset_id); x-accepts: application/json /gas_station/configuration: put: @@ -7320,7 +8742,7 @@ paths: - language: python code: "gas_station = fireblocks.set_gas_station_configuration(gas_threshold,\ \ gas_cap, max_gas_price, asset_id)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const gasStation = await fireblocks.setGasStationConfiguration(gasThreshold,\ \ gasCap, maxGasPrice)" @@ -7334,6 +8756,21 @@ paths: \ response = fireblocks.gasStations().updateGasStationConfiguration(gasStationConfiguration,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.gas_stations.update_gas_station_configuration(gas_station_configuration,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.gasStations.updateGasStationConfiguration(gasStationsApiUpdateGasStationConfigurationRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.gasStations().updateGasStationConfiguration(gasStationConfiguration,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.gas_stations.update_gas_station_configuration(gas_station_configuration,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /gas_station/configuration/{assetId}: @@ -7400,6 +8837,21 @@ paths: \ response = fireblocks.gasStations().updateGasStationConfigurationByAssetId(gasStationConfiguration,\ \ assetId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.gas_stations.update_gas_station_configuration_by_asset_id(gas_station_configuration,\ + \ asset_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.gasStations.updateGasStationConfigurationByAssetId(gasStationsApiUpdateGasStationConfigurationByAssetIdRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.gasStations().updateGasStationConfigurationByAssetId(gasStationConfiguration,\ + \ assetId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.gas_stations.update_gas_station_configuration_by_asset_id(gas_station_configuration,\ + \ asset_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /management/user_groups: @@ -7443,6 +8895,18 @@ paths: code: CompletableFuture>> response = fireblocks.userGroupsBeta().getUserGroups(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.user_groups_beta.get_user_groups(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> =\ + \ fireblocks.userGroupsBeta.getUserGroups();" + - lang: Java + source: CompletableFuture>> response = + fireblocks.userGroupsBeta().getUserGroups(); + - lang: Python + source: response = fireblocks.user_groups_beta.get_user_groups(); x-accepts: application/json post: description: | @@ -7503,6 +8967,21 @@ paths: \ = fireblocks.userGroupsBeta().createUserGroup(userGroupCreateRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.user_groups_beta.create_user_group(user_group_create_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.userGroupsBeta.createUserGroup(userGroupsBetaApiCreateUserGroupRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.userGroupsBeta().createUserGroup(userGroupCreateRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.user_groups_beta.create_user_group(user_group_create_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /management/user_groups/{groupId}: @@ -7549,6 +9028,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.user_groups_beta.delete_user_group(group_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.userGroupsBeta.deleteUserGroup(userGroupsBetaApiDeleteUserGroupRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.userGroupsBeta().deleteUserGroup(groupId); + - lang: Python + source: response = fireblocks.user_groups_beta.delete_user_group(group_id); x-accepts: application/json get: description: | @@ -7598,6 +9087,17 @@ paths: - language: java code: CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.user_groups_beta.get_user_group(group_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> =\ + \ fireblocks.userGroupsBeta.getUserGroup(userGroupsBetaApiGetUserGroupRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.userGroupsBeta().getUserGroup(groupId); + - lang: Python + source: response = fireblocks.user_groups_beta.get_user_group(group_id); x-accepts: application/json put: description: | @@ -7666,6 +9166,21 @@ paths: \ = fireblocks.userGroupsBeta().updateUserGroup(userGroupUpdateRequest,\ \ groupId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.user_groups_beta.update_user_group(user_group_update_request,\ + \ group_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.userGroupsBeta.updateUserGroup(userGroupsBetaApiUpdateUserGroupRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.userGroupsBeta().updateUserGroup(userGroupUpdateRequest,\ + \ groupId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.user_groups_beta.update_user_group(user_group_update_request,\ + \ group_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /users: @@ -7701,7 +9216,7 @@ paths: code-samples: - language: python code: users = fireblocks.get_users() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const users = await fireblocks.getUsers(); name: Fireblocks SDK Javascript example @@ -7711,6 +9226,16 @@ paths: - language: java code: CompletableFuture>> response = fireblocks.users().getUsers(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.users.get_users(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.users.getUsers();" + - lang: Java + source: CompletableFuture>> response = fireblocks.users().getUsers(); + - lang: Python + source: response = fireblocks.users.get_users(); x-accepts: application/json /audits: get: @@ -7760,6 +9285,18 @@ paths: code: CompletableFuture> response = fireblocks.auditLogs().getAudits(timePeriod); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.audit_logs.get_audits(time_period); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.auditLogs.getAudits(auditLogsApiGetAuditsRequest);" + - lang: Java + source: CompletableFuture> response = + fireblocks.auditLogs().getAudits(timePeriod); + - lang: Python + source: response = fireblocks.audit_logs.get_audits(time_period); x-accepts: application/json /management/audit_logs: get: @@ -7817,6 +9354,18 @@ paths: code: "CompletableFuture> response = fireblocks.auditLogs().getAuditLogs(timePeriod,\ \ cursor);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.audit_logs.get_audit_logs(time_period, cursor);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.auditLogs.getAuditLogs(auditLogsApiGetAuditLogsRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.auditLogs().getAuditLogs(timePeriod,\ + \ cursor);" + - lang: Python + source: "response = fireblocks.audit_logs.get_audit_logs(time_period, cursor);" x-accepts: application/json /off_exchange/add: post: @@ -7869,6 +9418,20 @@ paths: \ = fireblocks.offExchanges().addOffExchange(addCollateralRequestBody,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.off_exchanges.add_off_exchange(add_collateral_request_body,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.offExchanges.addOffExchange(offExchangesApiAddOffExchangeRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.offExchanges().addOffExchange(addCollateralRequestBody, idempotencyKey);" + - lang: Python + source: "response = fireblocks.off_exchanges.add_off_exchange(add_collateral_request_body,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /off_exchange/remove: @@ -7922,6 +9485,21 @@ paths: \ = fireblocks.offExchanges().removeOffExchange(removeCollateralRequestBody,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.off_exchanges.remove_off_exchange(remove_collateral_request_body,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.offExchanges.removeOffExchange(offExchangesApiRemoveOffExchangeRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.offExchanges().removeOffExchange(removeCollateralRequestBody,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.off_exchanges.remove_off_exchange(remove_collateral_request_body,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /off_exchange/settlements/trader: @@ -7974,6 +9552,20 @@ paths: code: "CompletableFuture> response = fireblocks.offExchanges().settleOffExchangeTrades(settlementRequestBody,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.off_exchanges.settle_off_exchange_trades(settlement_request_body,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> =\ + \ fireblocks.offExchanges.settleOffExchangeTrades(offExchangesApiSettleOffExchangeTradesRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.offExchanges().settleOffExchangeTrades(settlementRequestBody,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.off_exchanges.settle_off_exchange_trades(settlement_request_body,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /off_exchange/settlements/transactions: @@ -8016,6 +9608,17 @@ paths: - language: java code: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeSettlementTransactions(mainExchangeAccountId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.off_exchanges.get_off_exchange_settlement_transactions(main_exchange_account_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.offExchanges.getOffExchangeSettlementTransactions(offExchangesApiGetOffExchangeSettlementTransactionsRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeSettlementTransactions(mainExchangeAccountId); + - lang: Python + source: response = fireblocks.off_exchanges.get_off_exchange_settlement_transactions(main_exchange_account_id); x-accepts: application/json /off_exchange/collateral_accounts/{mainExchangeAccountId}: get: @@ -8061,6 +9664,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeCollateralAccounts(mainExchangeAccountId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.off_exchanges.get_off_exchange_collateral_accounts(main_exchange_account_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.offExchanges.getOffExchangeCollateralAccounts(offExchangesApiGetOffExchangeCollateralAccountsRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.offExchanges().getOffExchangeCollateralAccounts(mainExchangeAccountId); + - lang: Python + source: response = fireblocks.off_exchanges.get_off_exchange_collateral_accounts(main_exchange_account_id); x-accepts: application/json /webhooks/resend: post: @@ -8104,7 +9717,7 @@ paths: code-samples: - language: python code: result = fireblocks.resend_webhooks() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const result = await fireblocks.resendWebhooks(); name: Fireblocks SDK Javascript example @@ -8116,6 +9729,18 @@ paths: code: CompletableFuture> response = fireblocks.webhooks().resendWebhooks(idempotencyKey); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.webhooks.resend_webhooks(idempotency_key); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooks.resendWebhooks(webhooksApiResendWebhooksRequest);" + - lang: Java + source: CompletableFuture> response = + fireblocks.webhooks().resendWebhooks(idempotencyKey); + - lang: Python + source: response = fireblocks.webhooks.resend_webhooks(idempotency_key); x-accepts: application/json /webhooks/resend/{txId}: post: @@ -8174,7 +9799,7 @@ paths: - language: python code: "result = fireblocks.resend_transaction_webhooks_by_id(txId, resend_created,\ \ resend_status_updated)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const result = await fireblocks.resendTransactionWebhooksById(txId,\ \ resendCreated, resendStatusUpdated);" @@ -8188,6 +9813,21 @@ paths: \ response = fireblocks.webhooks().resendTransactionWebhooks(resendTransactionWebhooksRequest,\ \ txId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.webhooks.resend_transaction_webhooks(resend_transaction_webhooks_request,\ + \ tx_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.webhooks.resendTransactionWebhooks(webhooksApiResendTransactionWebhooksRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.webhooks().resendTransactionWebhooks(resendTransactionWebhooksRequest,\ + \ txId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.webhooks.resend_transaction_webhooks(resend_transaction_webhooks_request,\ + \ tx_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /tokenization/templates: @@ -8285,7 +9925,7 @@ paths: code-samples: - language: python code: contract_templates = fireblocks.get_contract_templates() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const contractTemplates = await fireblocks.getContractTemplates(); name: Fireblocks SDK Javascript example @@ -8298,6 +9938,21 @@ paths: \ = fireblocks.contractTemplates().getContractTemplates(limit, offset,\ \ pageCursor, pageSize, type, initializationPhase);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.contract_templates.get_contract_templates(limit,\ + \ offset, page_cursor, page_size, type, initialization_phase);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.contractTemplates.getContractTemplates(contractTemplatesApiGetContractTemplatesRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.contractTemplates().getContractTemplates(limit, offset, pageCursor,\ + \ pageSize, type, initializationPhase);" + - lang: Python + source: "response = fireblocks.contract_templates.get_contract_templates(limit,\ + \ offset, page_cursor, page_size, type, initialization_phase);" x-accepts: application/json post: description: Upload a new contract template. This contract template will be @@ -8344,7 +9999,7 @@ paths: code-samples: - language: python code: template = fireblocks.upload_contract_template(upload_request) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const contractTemplate = await fireblocks.uploadContractTemplate(uploadRequest); name: Fireblocks SDK Javascript example @@ -8356,6 +10011,20 @@ paths: code: "CompletableFuture> response = fireblocks.contractTemplates().uploadContractTemplate(contractUploadRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.contract_templates.upload_contract_template(contract_upload_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.contractTemplates.uploadContractTemplate(contractTemplatesApiUploadContractTemplateRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.contractTemplates().uploadContractTemplate(contractUploadRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.contract_templates.upload_contract_template(contract_upload_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /tokenization/templates/{contractTemplateId}: @@ -8398,7 +10067,7 @@ paths: code-samples: - language: python code: fireblocks.deleteContractTemplate(contract_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: await fireblocks.getContractTemplate(contractId); name: Fireblocks SDK Javascript example @@ -8408,6 +10077,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.contractTemplates().deleteContractTemplateById(contractTemplateId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.contract_templates.delete_contract_template_by_id(contract_template_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.contractTemplates.deleteContractTemplateById(contractTemplatesApiDeleteContractTemplateByIdRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.contractTemplates().deleteContractTemplateById(contractTemplateId); + - lang: Python + source: response = fireblocks.contract_templates.delete_contract_template_by_id(contract_template_id); x-accepts: application/json get: description: Return detailed information about the contract template @@ -8451,7 +10130,7 @@ paths: code-samples: - language: python code: contract_template = fireblocks.get_contract_template(contract_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const contractTemplate = await fireblocks.getContractTemplate(contractId); name: Fireblocks SDK Javascript example @@ -8462,6 +10141,17 @@ paths: - language: java code: CompletableFuture> response = fireblocks.contractTemplates().getContractTemplateById(contractTemplateId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.contract_templates.get_contract_template_by_id(contract_template_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.contractTemplates.getContractTemplateById(contractTemplatesApiGetContractTemplateByIdRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.contractTemplates().getContractTemplateById(contractTemplateId); + - lang: Python + source: response = fireblocks.contract_templates.get_contract_template_by_id(contract_template_id); x-accepts: application/json /tokenization/templates/{contractTemplateId}/constructor: get: @@ -8515,7 +10205,7 @@ paths: code-samples: - language: python code: contract_constructor_abi = fireblocks.get_contract_template_constructor(contract_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const contractConstructorAbi = await fireblocks.getContractTemplateConstructor(contractId); name: Fireblocks SDK Javascript example @@ -8526,6 +10216,19 @@ paths: code: "CompletableFuture> response = fireblocks.contractTemplates().getConstructorByContractTemplateId(contractTemplateId,\ \ withDocs);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.contract_templates.get_constructor_by_contract_template_id(contract_template_id,\ + \ with_docs);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.contractTemplates.getConstructorByContractTemplateId(contractTemplatesApiGetConstructorByContractTemplateIdRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.contractTemplates().getConstructorByContractTemplateId(contractTemplateId,\ + \ withDocs);" + - lang: Python + source: "response = fireblocks.contract_templates.get_constructor_by_contract_template_id(contract_template_id,\ + \ with_docs);" x-accepts: application/json /tokenization/templates/{contractTemplateId}/function: get: @@ -8582,6 +10285,19 @@ paths: code: "CompletableFuture> response = fireblocks.contractTemplates().getFunctionAbiByContractTemplateId(contractTemplateId,\ \ functionSignature);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.contract_templates.get_function_abi_by_contract_template_id(contract_template_id,\ + \ function_signature);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.contractTemplates.getFunctionAbiByContractTemplateId(contractTemplatesApiGetFunctionAbiByContractTemplateIdRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.contractTemplates().getFunctionAbiByContractTemplateId(contractTemplateId,\ + \ functionSignature);" + - lang: Python + source: "response = fireblocks.contract_templates.get_function_abi_by_contract_template_id(contract_template_id,\ + \ function_signature);" x-accepts: application/json /tokenization/templates/{contractTemplateId}/deploy: post: @@ -8644,7 +10360,7 @@ paths: code-samples: - language: python code: "response = fireblocks.deploy_contract(contract_id, contract_deploy_request)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const { txId } = await fireblocks.deployContract(contractId, contractDeployRequest);" name: Fireblocks SDK Javascript example @@ -8657,6 +10373,21 @@ paths: \ fireblocks.contractTemplates().deployContract(contractDeployRequest,\ \ contractTemplateId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.contract_templates.deploy_contract(contract_deploy_request,\ + \ contract_template_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.contractTemplates.deployContract(contractTemplatesApiDeployContractRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.contractTemplates().deployContract(contractDeployRequest, contractTemplateId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.contract_templates.deploy_contract(contract_deploy_request,\ + \ contract_template_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /tokenization/contracts: @@ -8732,7 +10463,7 @@ paths: code-samples: - language: python code: deployed_contracts = fireblocks.get_contracts_by_filter(template_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const deployedContracts = await fireblocks.getContractsByFilter(templateId); name: Fireblocks SDK Javascript example @@ -8745,6 +10476,21 @@ paths: \ response = fireblocks.deployedContracts().getDeployedContracts(pageCursor,\ \ pageSize, contractAddress, assetId, templateId);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.deployed_contracts.get_deployed_contracts(page_cursor,\ + \ page_size, contract_address, asset_id, template_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.deployedContracts.getDeployedContracts(deployedContractsApiGetDeployedContractsRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.deployedContracts().getDeployedContracts(pageCursor,\ + \ pageSize, contractAddress, assetId, templateId);" + - lang: Python + source: "response = fireblocks.deployed_contracts.get_deployed_contracts(page_cursor,\ + \ page_size, contract_address, asset_id, template_id);" x-accepts: application/json /tokenization/contracts/{id}: get: @@ -8783,7 +10529,7 @@ paths: code-samples: - language: python code: deployed_contracts = fireblocks.get_contract_by_id(contract_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const deployedContracts = await fireblocks.getContractById(contractId); name: Fireblocks SDK Javascript example @@ -8795,6 +10541,18 @@ paths: code: CompletableFuture> response = fireblocks.deployedContracts().getDeployedContractById(id); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.deployed_contracts.get_deployed_contract_by_id(id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.deployedContracts.getDeployedContractById(deployedContractsApiGetDeployedContractByIdRequest);" + - lang: Java + source: CompletableFuture> response + = fireblocks.deployedContracts().getDeployedContractById(id); + - lang: Python + source: response = fireblocks.deployed_contracts.get_deployed_contract_by_id(id); x-accepts: application/json /tokenization/contracts/{assetId}/{contractAddress}: get: @@ -8842,7 +10600,7 @@ paths: - language: python code: "deployed_contract = fireblocks.get_contract_by_address(base_asset_id,\ \ contract_address)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const deployedContract = await fireblocks.getContractByAddress(baseAssetId,\ \ contractAddress);" @@ -8856,6 +10614,21 @@ paths: \ = fireblocks.deployedContracts().getDeployedContractByAddress(contractAddress,\ \ assetId);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.deployed_contracts.get_deployed_contract_by_address(contract_address,\ + \ asset_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.deployedContracts.getDeployedContractByAddress(deployedContractsApiGetDeployedContractByAddressRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.deployedContracts().getDeployedContractByAddress(contractAddress,\ + \ assetId);" + - lang: Python + source: "response = fireblocks.deployed_contracts.get_deployed_contract_by_address(contract_address,\ + \ asset_id);" x-accepts: application/json /tokenization/tokens: get: @@ -8914,7 +10687,7 @@ paths: code-samples: - language: python code: linked_tokens = fireblocks.get_linked_tokens(payload) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const linkedTokens = await fireblocks.getLinkedTokens(payload); name: Fireblocks SDK Javascript example @@ -8926,6 +10699,20 @@ paths: code: "CompletableFuture> response\ \ = fireblocks.tokenization().getLinkedTokens(pageCursor, pageSize, status);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.tokenization.get_linked_tokens(page_cursor,\ + \ page_size, status);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.tokenization.getLinkedTokens(tokenizationApiGetLinkedTokensRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.tokenization().getLinkedTokens(pageCursor, pageSize, status);" + - lang: Python + source: "response = fireblocks.tokenization.get_linked_tokens(page_cursor,\ + \ page_size, status);" x-accepts: application/json post: description: "Facilitates the creation of a new token, supporting both EVM-based\ @@ -8973,7 +10760,7 @@ paths: code-samples: - language: python code: token = fireblocks.issue_new_token(payload) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const token = await fireblocks.issueNewToken(payload); name: Fireblocks SDK Javascript example @@ -8984,6 +10771,19 @@ paths: code: "CompletableFuture> response = fireblocks.tokenization().issueNewToken(createTokenRequestDto,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.tokenization.issue_new_token(create_token_request_dto,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.tokenization.issueNewToken(tokenizationApiIssueNewTokenRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.tokenization().issueNewToken(createTokenRequestDto,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.tokenization.issue_new_token(create_token_request_dto,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /tokenization/tokens/link: @@ -9052,7 +10852,7 @@ paths: code-samples: - language: python code: "token = fireblocks.link_token(\"FUNGIBLE_TOKEN\", ref_id)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const token = await fireblocks.linkToken(\"FUNGIBLE_TOKEN\", refId);" name: Fireblocks SDK Javascript example @@ -9063,6 +10863,17 @@ paths: code: "CompletableFuture> response = fireblocks.tokenization().link(tokenLinkRequestDto,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.tokenization.link(token_link_request_dto, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.tokenization.link(tokenizationApiLinkRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.tokenization().link(tokenLinkRequestDto,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.tokenization.link(token_link_request_dto, idempotency_key);" x-content-type: application/json x-accepts: application/json /tokenization/tokens/{id}: @@ -9110,7 +10921,7 @@ paths: code-samples: - language: python code: token = fireblocks.unlink_token(token_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const token = await fireblocks.unlinkToken(tokenId); name: Fireblocks SDK Javascript example @@ -9120,6 +10931,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.tokenization().unlink(id); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.tokenization.unlink(id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.tokenization.unlink(tokenizationApiUnlinkRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.tokenization().unlink(id); + - lang: Python + source: response = fireblocks.tokenization.unlink(id); x-accepts: application/json get: description: "Return a linked token, with its status and metadata." @@ -9157,7 +10978,7 @@ paths: code-samples: - language: python code: token = fireblocks.get_linked_token(token_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const token = await fireblocks.getLinkedToken(tokenId); name: Fireblocks SDK Javascript example @@ -9167,6 +10988,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.tokenization().getLinkedToken(id); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.tokenization.get_linked_token(id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.tokenization.getLinkedToken(tokenizationApiGetLinkedTokenRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.tokenization().getLinkedToken(id); + - lang: Python + source: response = fireblocks.tokenization.get_linked_token(id); x-accepts: application/json /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions: get: @@ -9225,7 +11056,7 @@ paths: - language: python code: "deployed_contract_abi = fireblocks.get_contracts_abi(base_asset_id,\ \ contract_address)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const deployedContractAbi = await fireblocks.getContractAbi(baseAssetId,\ \ contractAddress);" @@ -9239,6 +11070,21 @@ paths: \ fireblocks.contractInteractions().getDeployedContractAbi(contractAddress,\ \ assetId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.contract_interactions.get_deployed_contract_abi(contract_address,\ + \ asset_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.contractInteractions.getDeployedContractAbi(contractInteractionsApiGetDeployedContractAbiRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.contractInteractions().getDeployedContractAbi(contractAddress,\ + \ assetId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.contract_interactions.get_deployed_contract_abi(contract_address,\ + \ asset_id, idempotency_key);" x-accepts: application/json /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/read: post: @@ -9303,7 +11149,7 @@ paths: - language: python code: "read_response = fireblocks.read_contract_call_function(base_asset_id,\ \ contract_address, payload)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const readResponse= await fireblocks.readContractCallFunction(baseAssetId,\ \ contractAddress, payload);" @@ -9317,6 +11163,21 @@ paths: \ = fireblocks.contractInteractions().readCallFunction(readCallFunctionDto,\ \ contractAddress, assetId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.contract_interactions.read_call_function(read_call_function_dto,\ + \ contract_address, asset_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.contractInteractions.readCallFunction(contractInteractionsApiReadCallFunctionRequest);" + - lang: Java + source: "CompletableFuture>> response\ + \ = fireblocks.contractInteractions().readCallFunction(readCallFunctionDto,\ + \ contractAddress, assetId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.contract_interactions.read_call_function(read_call_function_dto,\ + \ contract_address, asset_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /contract_interactions/base_asset_id/{assetId}/contract_address/{contractAddress}/functions/write: @@ -9384,7 +11245,7 @@ paths: - language: python code: "write_function_response = fireblocks.write_contract_call_function(base_asset_id,\ \ contract_address, payload)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: "const writeFunctionResponse = await fireblocks.writeContractCallFunction(baseAssetId,\ \ contractAddress, payload);" @@ -9398,6 +11259,21 @@ paths: \ = fireblocks.contractInteractions().writeCallFunction(writeCallFunctionDto,\ \ contractAddress, assetId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.contract_interactions.write_call_function(write_call_function_dto,\ + \ contract_address, asset_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.contractInteractions.writeCallFunction(contractInteractionsApiWriteCallFunctionRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.contractInteractions().writeCallFunction(writeCallFunctionDto,\ + \ contractAddress, assetId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.contract_interactions.write_call_function(write_call_function_dto,\ + \ contract_address, asset_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /staking/chains: @@ -9427,6 +11303,17 @@ paths: - language: java code: CompletableFuture>> response = fireblocks.stakingBeta().getChains(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.staking_beta.get_chains(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.stakingBeta.getChains();" + - lang: Java + source: CompletableFuture>> response = fireblocks.stakingBeta().getChains(); + - lang: Python + source: response = fireblocks.staking_beta.get_chains(); x-accepts: application/json /staking/chains/{chainDescriptor}/chainInfo: get: @@ -9466,6 +11353,17 @@ paths: - language: java code: CompletableFuture> response = fireblocks.stakingBeta().getChainInfo(chainDescriptor); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.staking_beta.get_chain_info(chain_descriptor); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.stakingBeta.getChainInfo(stakingBetaApiGetChainInfoRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.stakingBeta().getChainInfo(chainDescriptor); + - lang: Python + source: response = fireblocks.staking_beta.get_chain_info(chain_descriptor); x-accepts: application/json /staking/chains/{chainDescriptor}/{actionId}: post: @@ -9567,6 +11465,21 @@ paths: \ fireblocks.stakingBeta().executeAction(executeActionRequest, chainDescriptor,\ \ actionId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.staking_beta.execute_action(execute_action_request,\ + \ chain_descriptor, action_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.stakingBeta.executeAction(stakingBetaApiExecuteActionRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.stakingBeta().executeAction(executeActionRequest, chainDescriptor,\ + \ actionId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.staking_beta.execute_action(execute_action_request,\ + \ chain_descriptor, action_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /staking/positions: @@ -9604,6 +11517,17 @@ paths: - language: java code: CompletableFuture>> response = fireblocks.stakingBeta().getAllDelegations(chainDescriptor); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.staking_beta.get_all_delegations(chain_descriptor); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.stakingBeta.getAllDelegations(stakingBetaApiGetAllDelegationsRequest);" + - lang: Java + source: CompletableFuture>> response = fireblocks.stakingBeta().getAllDelegations(chainDescriptor); + - lang: Python + source: response = fireblocks.staking_beta.get_all_delegations(chain_descriptor); x-accepts: application/json /staking/positions/summary: get: @@ -9651,6 +11575,17 @@ paths: - language: java code: CompletableFuture> response = fireblocks.stakingBeta().getSummary(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.staking_beta.get_summary(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.stakingBeta.getSummary();" + - lang: Java + source: CompletableFuture> response = fireblocks.stakingBeta().getSummary(); + - lang: Python + source: response = fireblocks.staking_beta.get_summary(); x-accepts: application/json /staking/positions/summary/vaults: get: @@ -9713,6 +11648,18 @@ paths: code: CompletableFuture> response = fireblocks.stakingBeta().getSummaryByVault(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.staking_beta.get_summary_by_vault(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.stakingBeta.getSummaryByVault();" + - lang: Java + source: CompletableFuture> response + = fireblocks.stakingBeta().getSummaryByVault(); + - lang: Python + source: response = fireblocks.staking_beta.get_summary_by_vault(); x-accepts: application/json /staking/positions/{id}: get: @@ -9746,6 +11693,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.stakingBeta().getDelegationById(id); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.staking_beta.get_delegation_by_id(id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.stakingBeta.getDelegationById(stakingBetaApiGetDelegationByIdRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.stakingBeta().getDelegationById(id); + - lang: Python + source: response = fireblocks.staking_beta.get_delegation_by_id(id); x-accepts: application/json /staking/providers: get: @@ -9771,6 +11728,17 @@ paths: - language: java code: CompletableFuture>> response = fireblocks.stakingBeta().getProviders(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.staking_beta.get_providers(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.stakingBeta.getProviders();" + - lang: Java + source: CompletableFuture>> response = fireblocks.stakingBeta().getProviders(); + - lang: Python + source: response = fireblocks.staking_beta.get_providers(); x-accepts: application/json /staking/providers/{providerId}/approveTermsOfService: post: @@ -9822,6 +11790,20 @@ paths: code: "CompletableFuture> response = fireblocks.stakingBeta().approveTermsOfServiceByProviderId(providerId,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.staking_beta.approve_terms_of_service_by_provider_id(provider_id,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.stakingBeta.approveTermsOfServiceByProviderId(stakingBetaApiApproveTermsOfServiceByProviderIdRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.stakingBeta().approveTermsOfServiceByProviderId(providerId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.staking_beta.approve_terms_of_service_by_provider_id(provider_id,\ + \ idempotency_key);" x-accepts: application/json /admin_quorum: put: @@ -9872,7 +11854,7 @@ paths: code-samples: - language: python code: result = fireblocks.set_admin_quorum_threshold(adminQuorumThreshold) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const result = await fireblocks.setAdminQuorumThreshold(adminQuorumThreshold) name: Fireblocks SDK Javascript example @@ -9902,6 +11884,8 @@ paths: - XTZ_TEST - BASECHAIN_ETH - BASECHAIN_ETH_TEST3 + - ETHERLINK + - ETHERLINK_TEST type: string style: form - description: A comma separated list of Vault Account IDs. Up to 100 are allowed @@ -10069,6 +12053,24 @@ paths: \ ncwId, ncwAccountIds, walletType, ids, collectionIds, pageCursor, pageSize,\ \ sort, order, status, search, spam);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.get_ownership_tokens(blockchain_descriptor,\ + \ vault_account_ids, ncw_id, ncw_account_ids, wallet_type, ids, collection_ids,\ + \ page_cursor, page_size, sort, order, status, search, spam);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.nFTs.getOwnershipTokens(nFTsApiGetOwnershipTokensRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.nFTs().getOwnershipTokens(blockchainDescriptor, vaultAccountIds,\ + \ ncwId, ncwAccountIds, walletType, ids, collectionIds, pageCursor, pageSize,\ + \ sort, order, status, search, spam);" + - lang: Python + source: "response = fireblocks.n_f_ts.get_ownership_tokens(blockchain_descriptor,\ + \ vault_account_ids, ncw_id, ncw_account_ids, wallet_type, ids, collection_ids,\ + \ page_cursor, page_size, sort, order, status, search, spam);" x-accepts: application/json put: description: | @@ -10089,6 +12091,8 @@ paths: - POLYGON_TEST_MUMBAI - AMOY_POLYGON_TEST - BASECHAIN_ETH + - ETHERLINK + - ETHERLINK_TEST type: string style: form - description: Vault account filter @@ -10128,6 +12132,19 @@ paths: code: "CompletableFuture> response = fireblocks.nFTs().updateOwnershipTokens(blockchainDescriptor,\ \ vaultAccountId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.update_ownership_tokens(blockchain_descriptor,\ + \ vault_account_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.nFTs.updateOwnershipTokens(nFTsApiUpdateOwnershipTokensRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.nFTs().updateOwnershipTokens(blockchainDescriptor,\ + \ vaultAccountId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.n_f_ts.update_ownership_tokens(blockchain_descriptor,\ + \ vault_account_id, idempotency_key);" x-accepts: application/json /nfts/ownership/assets: get: @@ -10256,6 +12273,21 @@ paths: \ = fireblocks.nFTs().listOwnedTokens(ncwId, walletType, pageCursor, pageSize,\ \ sort, order, status, search, spam);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.list_owned_tokens(ncw_id, wallet_type,\ + \ page_cursor, page_size, sort, order, status, search, spam);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.nFTs.listOwnedTokens(nFTsApiListOwnedTokensRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.nFTs().listOwnedTokens(ncwId, walletType, pageCursor, pageSize,\ + \ sort, order, status, search, spam);" + - lang: Python + source: "response = fireblocks.n_f_ts.list_owned_tokens(ncw_id, wallet_type,\ + \ page_cursor, page_size, sort, order, status, search, spam);" x-accepts: application/json /nfts/ownership/collections: get: @@ -10373,6 +12405,21 @@ paths: \ = fireblocks.nFTs().listOwnedCollections(ncwId, walletType, search,\ \ pageCursor, pageSize, sort, order, status);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.list_owned_collections(ncw_id, wallet_type,\ + \ search, page_cursor, page_size, sort, order, status);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.nFTs.listOwnedCollections(nFTsApiListOwnedCollectionsRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.nFTs().listOwnedCollections(ncwId, walletType, search, pageCursor,\ + \ pageSize, sort, order, status);" + - lang: Python + source: "response = fireblocks.n_f_ts.list_owned_collections(ncw_id, wallet_type,\ + \ search, page_cursor, page_size, sort, order, status);" x-accepts: application/json /nfts/tokens/{id}: get: @@ -10410,6 +12457,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.nFTs().getNFT(id); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.n_f_ts.get_n_f_t(id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.nFTs.getNFT(nFTsApiGetNFTRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.nFTs().getNFT(id); + - lang: Python + source: response = fireblocks.n_f_ts.get_n_f_t(id); x-accepts: application/json put: description: | @@ -10454,6 +12511,17 @@ paths: code: "CompletableFuture> response = fireblocks.nFTs().refreshNFTMetadata(id,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.refresh_n_f_t_metadata(id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.nFTs.refreshNFTMetadata(nFTsApiRefreshNFTMetadataRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.nFTs().refreshNFTMetadata(id,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.n_f_ts.refresh_n_f_t_metadata(id, idempotency_key);" x-accepts: application/json /nfts/tokens: get: @@ -10538,6 +12606,19 @@ paths: code: "CompletableFuture> response = fireblocks.nFTs().getNFTs(ids,\ \ pageCursor, pageSize, sort, order);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.get_n_f_ts(ids, page_cursor, page_size,\ + \ sort, order);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.nFTs.getNFTs(nFTsApiGetNFTsRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.nFTs().getNFTs(ids,\ + \ pageCursor, pageSize, sort, order);" + - lang: Python + source: "response = fireblocks.n_f_ts.get_n_f_ts(ids, page_cursor, page_size,\ + \ sort, order);" x-accepts: application/json /nfts/ownership/tokens/{id}/status: put: @@ -10589,6 +12670,19 @@ paths: code: "CompletableFuture> response = fireblocks.nFTs().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto,\ \ id, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.update_token_ownership_status(update_token_ownership_status_dto,\ + \ id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.nFTs.updateTokenOwnershipStatus(nFTsApiUpdateTokenOwnershipStatusRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.nFTs().updateTokenOwnershipStatus(updateTokenOwnershipStatusDto,\ + \ id, idempotencyKey);" + - lang: Python + source: "response = fireblocks.n_f_ts.update_token_ownership_status(update_token_ownership_status_dto,\ + \ id, idempotency_key);" x-content-type: application/json x-accepts: application/json /nfts/ownership/tokens/status: @@ -10641,6 +12735,19 @@ paths: code: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.update_tokens_ownership_status(token_ownership_status_update_payload,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipStatus(nFTsApiUpdateTokensOwnershipStatusRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipStatus(tokenOwnershipStatusUpdatePayload,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.n_f_ts.update_tokens_ownership_status(token_ownership_status_update_payload,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /nfts/ownership/tokens/spam: @@ -10694,6 +12801,19 @@ paths: code: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.n_f_ts.update_tokens_ownership_spam(token_ownership_spam_update_payload,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.nFTs.updateTokensOwnershipSpam(nFTsApiUpdateTokensOwnershipSpamRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.nFTs().updateTokensOwnershipSpam(tokenOwnershipSpamUpdatePayload,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.n_f_ts.update_tokens_ownership_spam(token_ownership_spam_update_payload,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /connections: @@ -10808,6 +12928,20 @@ paths: code: "CompletableFuture> response =\ \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.web3_connections.get(order, filter, sort, page_size,\ + \ next);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.web3Connections.get(web3ConnectionsApiGetRequest);" + - lang: Java + source: "CompletableFuture> response =\ + \ fireblocks.web3Connections().get(order, filter, sort, pageSize, next);" + - lang: Python + source: "response = fireblocks.web3_connections.get(order, filter, sort, page_size,\ + \ next);" x-accepts: application/json /connections/wc: post: @@ -10867,6 +13001,20 @@ paths: code: "CompletableFuture> response\ \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.web3_connections.create(create_connection_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.web3Connections.create(web3ConnectionsApiCreateRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.web3Connections().create(createConnectionRequest, idempotencyKey);" + - lang: Python + source: "response = fireblocks.web3_connections.create(create_connection_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /connections/wc/{id}: @@ -10909,6 +13057,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.web3Connections().remove(id); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.web3_connections.remove(id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.web3Connections.remove(web3ConnectionsApiRemoveRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.web3Connections().remove(id); + - lang: Python + source: response = fireblocks.web3_connections.remove(id); x-accepts: application/json put: description: |- @@ -10976,6 +13134,19 @@ paths: code: "CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest,\ \ id, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.web3_connections.submit(respond_to_connection_request,\ + \ id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.web3Connections.submit(web3ConnectionsApiSubmitRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.web3Connections().submit(respondToConnectionRequest,\ + \ id, idempotencyKey);" + - lang: Python + source: "response = fireblocks.web3_connections.submit(respond_to_connection_request,\ + \ id, idempotency_key);" x-content-type: application/json x-accepts: application/json /screening/travel_rule/transaction/validate: @@ -11032,6 +13203,21 @@ paths: \ response = fireblocks.travelRuleBeta().validateTravelRuleTransaction(travelRuleValidateTransactionRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.travel_rule_beta.validate_travel_rule_transaction(travel_rule_validate_transaction_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.travelRuleBeta.validateTravelRuleTransaction(travelRuleBetaApiValidateTravelRuleTransactionRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.travelRuleBeta().validateTravelRuleTransaction(travelRuleValidateTransactionRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.travel_rule_beta.validate_travel_rule_transaction(travel_rule_validate_transaction_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /screening/travel_rule/transaction/validate/full: @@ -11088,6 +13274,21 @@ paths: \ response = fireblocks.travelRuleBeta().validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.travel_rule_beta.validate_full_travel_rule_transaction(travel_rule_validate_full_transaction_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.travelRuleBeta.validateFullTravelRuleTransaction(travelRuleBetaApiValidateFullTravelRuleTransactionRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.travelRuleBeta().validateFullTravelRuleTransaction(travelRuleValidateFullTransactionRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.travel_rule_beta.validate_full_travel_rule_transaction(travel_rule_validate_full_transaction_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /screening/travel_rule/vasp/{did}: @@ -11141,6 +13342,19 @@ paths: code: "CompletableFuture> response = fireblocks.travelRuleBeta().getVASPByDID(did,\ \ fields);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.travel_rule_beta.get_v_a_s_p_by_d_i_d(did,\ + \ fields);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.travelRuleBeta.getVASPByDID(travelRuleBetaApiGetVASPByDIDRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.travelRuleBeta().getVASPByDID(did,\ + \ fields);" + - lang: Python + source: "response = fireblocks.travel_rule_beta.get_v_a_s_p_by_d_i_d(did,\ + \ fields);" x-accepts: application/json /screening/travel_rule/vasp: get: @@ -11207,6 +13421,20 @@ paths: code: "CompletableFuture> response\ \ = fireblocks.travelRuleBeta().getVASPs(order, perPage, page, fields);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.travel_rule_beta.get_v_a_s_ps(order, per_page,\ + \ page, fields);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.travelRuleBeta.getVASPs(travelRuleBetaApiGetVASPsRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.travelRuleBeta().getVASPs(order, perPage, page, fields);" + - lang: Python + source: "response = fireblocks.travel_rule_beta.get_v_a_s_ps(order, per_page,\ + \ page, fields);" x-accepts: application/json /screening/travel_rule/vasp/update: put: @@ -11262,6 +13490,21 @@ paths: \ = fireblocks.travelRuleBeta().updateVasp(travelRuleUpdateVASPDetails,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.travel_rule_beta.update_vasp(travel_rule_update_v_a_s_p_details,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.travelRuleBeta.updateVasp(travelRuleBetaApiUpdateVaspRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.travelRuleBeta().updateVasp(travelRuleUpdateVASPDetails,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.travel_rule_beta.update_vasp(travel_rule_update_v_a_s_p_details,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /screening/travel_rule/post_screening_policy: @@ -11289,6 +13532,18 @@ paths: code: CompletableFuture> response = fireblocks.compliance().getPostScreeningPolicy(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance.get_post_screening_policy(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.compliance.getPostScreeningPolicy();" + - lang: Java + source: CompletableFuture> response = + fireblocks.compliance().getPostScreeningPolicy(); + - lang: Python + source: response = fireblocks.compliance.get_post_screening_policy(); x-accepts: application/json /screening/travel_rule/screening_policy: get: @@ -11315,6 +13570,18 @@ paths: code: CompletableFuture> response = fireblocks.compliance().getScreeningPolicy(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance.get_screening_policy(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.compliance.getScreeningPolicy();" + - lang: Java + source: CompletableFuture> + response = fireblocks.compliance().getScreeningPolicy(); + - lang: Python + source: response = fireblocks.compliance.get_screening_policy(); x-accepts: application/json /screening/travel_rule/policy_configuration: get: @@ -11341,6 +13608,18 @@ paths: code: CompletableFuture> response = fireblocks.complianceScreeningConfiguration().getScreeningConfiguration(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance_screening_configuration.get_screening_configuration(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.complianceScreeningConfiguration.getScreeningConfiguration();" + - lang: Java + source: CompletableFuture> response + = fireblocks.complianceScreeningConfiguration().getScreeningConfiguration(); + - lang: Python + source: response = fireblocks.compliance_screening_configuration.get_screening_configuration(); x-accepts: application/json put: description: "Updates bypass screening, inbound delay, or outbound delay configurations\ @@ -11378,6 +13657,18 @@ paths: code: CompletableFuture> response = fireblocks.compliance().updateTravelRuleConfig(idempotencyKey); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance.update_travel_rule_config(idempotency_key); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.compliance.updateTravelRuleConfig(complianceApiUpdateTravelRuleConfigRequest);" + - lang: Java + source: CompletableFuture> response + = fireblocks.compliance().updateTravelRuleConfig(idempotencyKey); + - lang: Python + source: response = fireblocks.compliance.update_travel_rule_config(idempotency_key); x-accepts: application/json /screening/aml/policy_configuration: get: @@ -11404,6 +13695,18 @@ paths: code: CompletableFuture> response = fireblocks.complianceScreeningConfiguration().getAmlScreeningConfiguration(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance_screening_configuration.get_aml_screening_configuration(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.complianceScreeningConfiguration.getAmlScreeningConfiguration();" + - lang: Java + source: CompletableFuture> response + = fireblocks.complianceScreeningConfiguration().getAmlScreeningConfiguration(); + - lang: Python + source: response = fireblocks.compliance_screening_configuration.get_aml_screening_configuration(); x-accepts: application/json put: description: "Updates bypass screening, inbound delay, or outbound delay configurations\ @@ -11441,6 +13744,18 @@ paths: code: CompletableFuture> response = fireblocks.compliance().updateAmlScreeningConfiguration(idempotencyKey); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance.update_aml_screening_configuration(idempotency_key); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.compliance.updateAmlScreeningConfiguration(complianceApiUpdateAmlScreeningConfigurationRequest);" + - lang: Java + source: CompletableFuture> response + = fireblocks.compliance().updateAmlScreeningConfiguration(idempotencyKey); + - lang: Python + source: response = fireblocks.compliance.update_aml_screening_configuration(idempotency_key); x-accepts: application/json /screening/aml/screening_policy: get: @@ -11467,6 +13782,18 @@ paths: code: CompletableFuture> response = fireblocks.compliance().getAmlScreeningPolicy(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance.get_aml_screening_policy(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.compliance.getAmlScreeningPolicy();" + - lang: Java + source: CompletableFuture> + response = fireblocks.compliance().getAmlScreeningPolicy(); + - lang: Python + source: response = fireblocks.compliance.get_aml_screening_policy(); x-accepts: application/json /screening/aml/post_screening_policy: get: @@ -11493,6 +13820,18 @@ paths: code: CompletableFuture> response = fireblocks.compliance().getAmlPostScreeningPolicy(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance.get_aml_post_screening_policy(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.compliance.getAmlPostScreeningPolicy();" + - lang: Java + source: CompletableFuture> response = + fireblocks.compliance().getAmlPostScreeningPolicy(); + - lang: Python + source: response = fireblocks.compliance.get_aml_post_screening_policy(); x-accepts: application/json /screening/configurations: put: @@ -11530,6 +13869,18 @@ paths: code: CompletableFuture> response = fireblocks.compliance().updateScreeningConfiguration(idempotencyKey); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.compliance.update_screening_configuration(idempotency_key); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.compliance.updateScreeningConfiguration(complianceApiUpdateScreeningConfigurationRequest);" + - lang: Java + source: CompletableFuture> + response = fireblocks.compliance().updateScreeningConfiguration(idempotencyKey); + - lang: Python + source: response = fireblocks.compliance.update_screening_configuration(idempotency_key); x-accepts: application/json /management/ota: get: @@ -11556,6 +13907,17 @@ paths: - language: java code: CompletableFuture> response = fireblocks.oTABeta().getOtaStatus(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.o_t_a_beta.get_ota_status(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.oTABeta.getOtaStatus();" + - lang: Java + source: CompletableFuture> response = fireblocks.oTABeta().getOtaStatus(); + - lang: Python + source: response = fireblocks.o_t_a_beta.get_ota_status(); x-accepts: application/json put: description: Enable or disable transactions to OTA @@ -11607,6 +13969,20 @@ paths: code: "CompletableFuture> response = fireblocks.oTABeta().setOtaStatus(setOtaStatusRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.o_t_a_beta.set_ota_status(set_ota_status_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.oTABeta.setOtaStatus(oTABetaApiSetOtaStatusRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.oTABeta().setOtaStatus(setOtaStatusRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.o_t_a_beta.set_ota_status(set_ota_status_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /management/workspace_status: @@ -11635,6 +14011,18 @@ paths: code: CompletableFuture> response = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.workspace_status_beta.get_workspace_status(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.workspaceStatusBeta.getWorkspaceStatus();" + - lang: Java + source: CompletableFuture> response + = fireblocks.workspaceStatusBeta().getWorkspaceStatus(); + - lang: Python + source: response = fireblocks.workspace_status_beta.get_workspace_status(); x-accepts: application/json /tap/active_policy: get: @@ -11669,7 +14057,7 @@ paths: code-samples: - language: python code: policy = fireblocks.get_active_policy() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const policy = await fireblocks.getActivePolicy(); name: Fireblocks SDK Javascript example @@ -11681,6 +14069,18 @@ paths: code: CompletableFuture> response = fireblocks.policyEditorBeta().getActivePolicy(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.policy_editor_beta.get_active_policy(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.getActivePolicy();" + - lang: Java + source: CompletableFuture> response + = fireblocks.policyEditorBeta().getActivePolicy(); + - lang: Python + source: response = fireblocks.policy_editor_beta.get_active_policy(); x-accepts: application/json /tap/draft: get: @@ -11715,7 +14115,7 @@ paths: code-samples: - language: python code: policy = fireblocks.get_draft() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const policy = await fireblocks.getDraft(); name: Fireblocks SDK Javascript example @@ -11727,6 +14127,18 @@ paths: code: CompletableFuture> response = fireblocks.policyEditorBeta().getDraft(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.policy_editor_beta.get_draft(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.getDraft();" + - lang: Java + source: CompletableFuture> response + = fireblocks.policyEditorBeta().getDraft(); + - lang: Python + source: response = fireblocks.policy_editor_beta.get_draft(); x-accepts: application/json post: description: | @@ -11778,7 +14190,7 @@ paths: code-samples: - language: python code: policy = fireblocks.publish_draft() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const policy = await fireblocks.publishDraft(); name: Fireblocks SDK Javascript example @@ -11789,6 +14201,19 @@ paths: code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraft(publishDraftRequest,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.policy_editor_beta.publish_draft(publish_draft_request,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.policyEditorBeta.publishDraft(policyEditorBetaApiPublishDraftRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishDraft(publishDraftRequest,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.policy_editor_beta.publish_draft(publish_draft_request,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json put: @@ -11841,7 +14266,7 @@ paths: code-samples: - language: python code: policy = fireblocks.update_draft() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const policy = await fireblocks.updateDraft(); name: Fireblocks SDK Javascript example @@ -11853,6 +14278,20 @@ paths: code: "CompletableFuture>\ \ response = fireblocks.policyEditorBeta().updateDraft(policyRules, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.policy_editor_beta.update_draft(policy_rules,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.policyEditorBeta.updateDraft(policyEditorBetaApiUpdateDraftRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.policyEditorBeta().updateDraft(policyRules, idempotencyKey);" + - lang: Python + source: "response = fireblocks.policy_editor_beta.update_draft(policy_rules,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /tap/publish: @@ -11906,7 +14345,7 @@ paths: code-samples: - language: python code: policy = fireblocks.publish_rules() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: javascript code: const policy = await fireblocks.publishRules(); name: Fireblocks SDK Javascript example @@ -11917,6 +14356,19 @@ paths: code: "CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(policyRules,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.policy_editor_beta.publish_policy_rules(policy_rules,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.policyEditorBeta.publishPolicyRules(policyEditorBetaApiPublishPolicyRulesRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.policyEditorBeta().publishPolicyRules(policyRules,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.policy_editor_beta.publish_policy_rules(policy_rules,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /management/users: @@ -11980,7 +14432,7 @@ paths: name: Fireblocks SDK Javascript example - language: python code: consoleUsers = fireblocks.get_console_users() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: typescript code: "const response: Promise>\ \ = fireblocks.consoleUser.getConsoleUsers();" @@ -11989,6 +14441,18 @@ paths: code: CompletableFuture> response = fireblocks.consoleUser().getConsoleUsers(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.console_user.get_console_users(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.consoleUser.getConsoleUsers();" + - lang: Java + source: CompletableFuture> response = + fireblocks.consoleUser().getConsoleUsers(); + - lang: Python + source: response = fireblocks.console_user.get_console_users(); x-accepts: application/json post: description: Creates console user in your tenant @@ -12070,7 +14534,7 @@ paths: - language: python code: "res = fireblocks.create_console_user(first_name, last_name, email,\ \ role)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: typescript code: "const response: Promise> = fireblocks.consoleUser.createConsoleUser(consoleUserApiCreateConsoleUserRequest);" name: Fireblocks SDK TypeScript example @@ -12078,6 +14542,19 @@ paths: code: "CompletableFuture> response = fireblocks.consoleUser().createConsoleUser(createConsoleUser,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.console_user.create_console_user(create_console_user,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.consoleUser.createConsoleUser(consoleUserApiCreateConsoleUserRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.consoleUser().createConsoleUser(createConsoleUser,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.console_user.create_console_user(create_console_user,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /management/api_users: @@ -12141,7 +14618,7 @@ paths: name: Fireblocks SDK Javascript example - language: python code: apiUsers = fireblocks.get_api_users() - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: typescript code: "const response: Promise>\ \ = fireblocks.apiUser.getApiUsers();" @@ -12149,6 +14626,17 @@ paths: - language: java code: CompletableFuture> response = fireblocks.apiUser().getApiUsers(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.api_user.get_api_users(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.apiUser.getApiUsers();" + - lang: Java + source: CompletableFuture> response = fireblocks.apiUser().getApiUsers(); + - lang: Python + source: response = fireblocks.api_user.get_api_users(); x-accepts: application/json post: description: Creates Api user in your tenant @@ -12230,7 +14718,7 @@ paths: - language: python code: "res = fireblocks.create_api_user(name, role, csr_pem, co_signer_setup,\ \ co_signer_setup_is_first_user)" - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: typescript code: "const response: Promise> = fireblocks.apiUser.createApiUser(apiUserApiCreateApiUserRequest);" name: Fireblocks SDK TypeScript example @@ -12238,6 +14726,19 @@ paths: code: "CompletableFuture> response = fireblocks.apiUser().createApiUser(createAPIUser,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.api_user.create_api_user(create_a_p_i_user,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.apiUser.createApiUser(apiUserApiCreateApiUserRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.apiUser().createApiUser(createAPIUser,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.api_user.create_api_user(create_a_p_i_user,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /management/users/{id}/reset_device: @@ -12318,7 +14819,7 @@ paths: name: Fireblocks SDK Javascript example - language: python code: res = fireblocks.reset_device_request(console_user_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: typescript code: "const response: Promise> = fireblocks.resetDevice.resetDevice(resetDeviceApiResetDeviceRequest);" name: Fireblocks SDK TypeScript example @@ -12326,6 +14827,17 @@ paths: code: "CompletableFuture> response = fireblocks.resetDevice().resetDevice(id,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.reset_device.reset_device(id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.resetDevice.resetDevice(resetDeviceApiResetDeviceRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.resetDevice().resetDevice(id,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.reset_device.reset_device(id, idempotency_key);" x-accepts: application/json /management/api_users/{userId}/whitelist_ip_addresses: get: @@ -12397,7 +14909,7 @@ paths: name: Fireblocks SDK Javascript example - language: python code: whitelisted_addresses = fireblocks.get_whitelisted_ip_addresses(api_user_id) - name: Fireblocks SDK Python example + name: Fireblocks SDK Python example (Legacy) - language: typescript code: "const response: Promise>\ \ = fireblocks.whitelistIpAddresses.getWhitelistIpAddresses(whitelistIpAddressesApiGetWhitelistIpAddressesRequest);" @@ -12406,6 +14918,18 @@ paths: code: CompletableFuture> response = fireblocks.whitelistIpAddresses().getWhitelistIpAddresses(userId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.whitelist_ip_addresses.get_whitelist_ip_addresses(user_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.whitelistIpAddresses.getWhitelistIpAddresses(whitelistIpAddressesApiGetWhitelistIpAddressesRequest);" + - lang: Java + source: CompletableFuture> response + = fireblocks.whitelistIpAddresses().getWhitelistIpAddresses(userId); + - lang: Python + source: response = fireblocks.whitelist_ip_addresses.get_whitelist_ip_addresses(user_id); x-accepts: application/json /smart-transfers: get: @@ -12544,6 +15068,24 @@ paths: \ createdByMe, expiresAfter, expiresBefore, type, externalRefId, after,\ \ limit);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.search_tickets(q, statuses,\ + \ network_id, created_by_me, expires_after, expires_before, type, external_ref_id,\ + \ after, limit);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.searchTickets(smartTransferApiSearchTicketsRequest);" + - lang: Java + source: "CompletableFuture>\ + \ response = fireblocks.smartTransfer().searchTickets(q, statuses, networkId,\ + \ createdByMe, expiresAfter, expiresBefore, type, externalRefId, after,\ + \ limit);" + - lang: Python + source: "response = fireblocks.smart_transfer.search_tickets(q, statuses,\ + \ network_id, created_by_me, expires_after, expires_before, type, external_ref_id,\ + \ after, limit);" x-accepts: application/json post: description: Creates new Smart Transfer ticket @@ -12599,6 +15141,20 @@ paths: \ = fireblocks.smartTransfer().createTicket(smartTransferCreateTicket,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.create_ticket(smart_transfer_create_ticket,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.createTicket(smartTransferApiCreateTicketRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().createTicket(smartTransferCreateTicket, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.create_ticket(smart_transfer_create_ticket,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /smart-transfers/{ticketId}: @@ -12645,6 +15201,18 @@ paths: code: CompletableFuture> response = fireblocks.smartTransfer().findTicketById(ticketId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.smart_transfer.find_ticket_by_id(ticket_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.findTicketById(smartTransferApiFindTicketByIdRequest);" + - lang: Java + source: CompletableFuture> response + = fireblocks.smartTransfer().findTicketById(ticketId); + - lang: Python + source: response = fireblocks.smart_transfer.find_ticket_by_id(ticket_id); x-accepts: application/json /smart-transfers/{ticketId}/expires-in: put: @@ -12714,6 +15282,21 @@ paths: \ = fireblocks.smartTransfer().setTicketExpiration(smartTransferSetTicketExpiration,\ \ ticketId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.set_ticket_expiration(smart_transfer_set_ticket_expiration,\ + \ ticket_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.setTicketExpiration(smartTransferApiSetTicketExpirationRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().setTicketExpiration(smartTransferSetTicketExpiration,\ + \ ticketId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.set_ticket_expiration(smart_transfer_set_ticket_expiration,\ + \ ticket_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /smart-transfers/{ticketId}/external-id: @@ -12784,6 +15367,21 @@ paths: \ = fireblocks.smartTransfer().setExternalRefId(smartTransferSetTicketExternalId,\ \ ticketId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.set_external_ref_id(smart_transfer_set_ticket_external_id,\ + \ ticket_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.setExternalRefId(smartTransferApiSetExternalRefIdRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().setExternalRefId(smartTransferSetTicketExternalId,\ + \ ticketId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.set_external_ref_id(smart_transfer_set_ticket_external_id,\ + \ ticket_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /smart-transfers/{ticketId}/submit: @@ -12855,6 +15453,21 @@ paths: \ = fireblocks.smartTransfer().submitTicket(smartTransferSubmitTicket,\ \ ticketId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.submit_ticket(smart_transfer_submit_ticket,\ + \ ticket_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.submitTicket(smartTransferApiSubmitTicketRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().submitTicket(smartTransferSubmitTicket, ticketId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.submit_ticket(smart_transfer_submit_ticket,\ + \ ticket_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /smart-transfers/{ticketId}/fulfill: @@ -12919,6 +15532,18 @@ paths: code: "CompletableFuture> response\ \ = fireblocks.smartTransfer().fulfillTicket(ticketId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.fulfill_ticket(ticket_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.fulfillTicket(smartTransferApiFulfillTicketRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().fulfillTicket(ticketId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.fulfill_ticket(ticket_id, idempotency_key);" x-accepts: application/json /smart-transfers/{ticketId}/cancel: put: @@ -12981,6 +15606,18 @@ paths: code: "CompletableFuture> response\ \ = fireblocks.smartTransfer().cancelTicket(ticketId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.cancel_ticket(ticket_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.cancelTicket(smartTransferApiCancelTicketRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().cancelTicket(ticketId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.cancel_ticket(ticket_id, idempotency_key);" x-accepts: application/json /smart-transfers/{ticketId}/terms: post: @@ -13045,6 +15682,21 @@ paths: \ = fireblocks.smartTransfer().createTicketTerm(smartTransferCreateTicketTerm,\ \ ticketId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.create_ticket_term(smart_transfer_create_ticket_term,\ + \ ticket_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.createTicketTerm(smartTransferApiCreateTicketTermRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().createTicketTerm(smartTransferCreateTicketTerm,\ + \ ticketId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.create_ticket_term(smart_transfer_create_ticket_term,\ + \ ticket_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /smart-transfers/{ticketId}/terms/{termId}: @@ -13093,6 +15745,19 @@ paths: code: "CompletableFuture> response = fireblocks.smartTransfer().removeTicketTerm(ticketId,\ \ termId);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.remove_ticket_term(ticket_id,\ + \ term_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.smartTransfer.removeTicketTerm(smartTransferApiRemoveTicketTermRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.smartTransfer().removeTicketTerm(ticketId,\ + \ termId);" + - lang: Python + source: "response = fireblocks.smart_transfer.remove_ticket_term(ticket_id,\ + \ term_id);" x-accepts: application/json get: description: Find Smart Transfer ticket term by id @@ -13144,6 +15809,20 @@ paths: code: "CompletableFuture> response\ \ = fireblocks.smartTransfer().findTicketTermById(ticketId, termId);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.find_ticket_term_by_id(ticket_id,\ + \ term_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.findTicketTermById(smartTransferApiFindTicketTermByIdRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().findTicketTermById(ticketId, termId);" + - lang: Python + source: "response = fireblocks.smart_transfer.find_ticket_term_by_id(ticket_id,\ + \ term_id);" x-accepts: application/json put: description: Update ticket term (when ticket status is DRAFT) @@ -13213,6 +15892,21 @@ paths: \ = fireblocks.smartTransfer().updateTicketTerm(smartTransferUpdateTicketTerm,\ \ ticketId, termId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.update_ticket_term(smart_transfer_update_ticket_term,\ + \ ticket_id, term_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.updateTicketTerm(smartTransferApiUpdateTicketTermRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().updateTicketTerm(smartTransferUpdateTicketTerm,\ + \ ticketId, termId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.update_ticket_term(smart_transfer_update_ticket_term,\ + \ ticket_id, term_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /smart-transfers/{ticketId}/terms/{termId}/fund: @@ -13291,6 +15985,21 @@ paths: \ = fireblocks.smartTransfer().fundTicketTerm(smartTransferFundTerm, ticketId,\ \ termId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.fund_ticket_term(smart_transfer_fund_term,\ + \ ticket_id, term_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.fundTicketTerm(smartTransferApiFundTicketTermRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().fundTicketTerm(smartTransferFundTerm, ticketId,\ + \ termId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.fund_ticket_term(smart_transfer_fund_term,\ + \ ticket_id, term_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /smart-transfers/{ticketId}/terms/{termId}/manually-fund: @@ -13368,6 +16077,21 @@ paths: \ = fireblocks.smartTransfer().manuallyFundTicketTerm(smartTransferManuallyFundTerm,\ \ ticketId, termId, idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.manually_fund_ticket_term(smart_transfer_manually_fund_term,\ + \ ticket_id, term_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.manuallyFundTicketTerm(smartTransferApiManuallyFundTicketTermRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().manuallyFundTicketTerm(smartTransferManuallyFundTerm,\ + \ ticketId, termId, idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.manually_fund_ticket_term(smart_transfer_manually_fund_term,\ + \ ticket_id, term_id, idempotency_key);" x-content-type: application/json x-accepts: application/json /smart-transfers/settings/user-groups: @@ -13407,6 +16131,18 @@ paths: code: CompletableFuture> response = fireblocks.smartTransfer().getSmartTransferUserGroups(); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.smart_transfer.get_smart_transfer_user_groups(); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.getSmartTransferUserGroups();" + - lang: Java + source: CompletableFuture> response + = fireblocks.smartTransfer().getSmartTransferUserGroups(); + - lang: Python + source: response = fireblocks.smart_transfer.get_smart_transfer_user_groups(); x-accepts: application/json post: description: Set Smart Transfer user group @@ -13462,6 +16198,21 @@ paths: \ = fireblocks.smartTransfer().setUserGroups(smartTransferSetUserGroups,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.smart_transfer.set_user_groups(smart_transfer_set_user_groups,\ + \ idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.smartTransfer.setUserGroups(smartTransferApiSetUserGroupsRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.smartTransfer().setUserGroups(smartTransferSetUserGroups,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.smart_transfer.set_user_groups(smart_transfer_set_user_groups,\ + \ idempotency_key);" x-content-type: application/json x-accepts: application/json /batch/jobs: @@ -13517,6 +16268,17 @@ paths: code: "CompletableFuture>> response = fireblocks.jobManagement().getJobs(fromTime,\ \ toTime);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.job_management.get_jobs(from_time, to_time);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.jobManagement.getJobs(jobManagementApiGetJobsRequest);" + - lang: Java + source: "CompletableFuture>> response = fireblocks.jobManagement().getJobs(fromTime,\ + \ toTime);" + - lang: Python + source: "response = fireblocks.job_management.get_jobs(from_time, to_time);" x-accepts: application/json /batch/{jobId}: get: @@ -13561,6 +16323,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.jobManagement().getJob(jobId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.job_management.get_job(job_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.jobManagement.getJob(jobManagementApiGetJobRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.jobManagement().getJob(jobId); + - lang: Python + source: response = fireblocks.job_management.get_job(job_id); x-accepts: application/json /batch/{jobId}/pause: post: @@ -13611,6 +16383,17 @@ paths: code: "CompletableFuture> response = fireblocks.jobManagement().pauseJob(jobId,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.job_management.pause_job(job_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.jobManagement.pauseJob(jobManagementApiPauseJobRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.jobManagement().pauseJob(jobId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.job_management.pause_job(job_id, idempotency_key);" x-accepts: application/json /batch/{jobId}/continue: post: @@ -13660,6 +16443,17 @@ paths: code: "CompletableFuture> response = fireblocks.jobManagement().continueJob(jobId,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.job_management.continue_job(job_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.jobManagement.continueJob(jobManagementApiContinueJobRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.jobManagement().continueJob(jobId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.job_management.continue_job(job_id, idempotency_key);" x-accepts: application/json /batch/{jobId}/cancel: post: @@ -13711,6 +16505,17 @@ paths: code: "CompletableFuture> response = fireblocks.jobManagement().cancelJob(jobId,\ \ idempotencyKey);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.job_management.cancel_job(job_id, idempotency_key);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.jobManagement.cancelJob(jobManagementApiCancelJobRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.jobManagement().cancelJob(jobId,\ + \ idempotencyKey);" + - lang: Python + source: "response = fireblocks.job_management.cancel_job(job_id, idempotency_key);" x-accepts: application/json /batch/{jobId}/tasks: get: @@ -13755,6 +16560,16 @@ paths: - language: java code: CompletableFuture>> response = fireblocks.jobManagement().getJobTasks(jobId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.job_management.get_job_tasks(job_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.jobManagement.getJobTasks(jobManagementApiGetJobTasksRequest);" + - lang: Java + source: CompletableFuture>> response = fireblocks.jobManagement().getJobTasks(jobId); + - lang: Python + source: response = fireblocks.job_management.get_job_tasks(job_id); x-accepts: application/json /cosigners: get: @@ -13828,6 +16643,20 @@ paths: code: "CompletableFuture> response\ \ = fireblocks.cosignersBeta().getCosigners(order, pageCursor, pageSize);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.cosigners_beta.get_cosigners(order, page_cursor,\ + \ page_size);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.cosignersBeta.getCosigners(cosignersBetaApiGetCosignersRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.cosignersBeta().getCosigners(order, pageCursor, pageSize);" + - lang: Python + source: "response = fireblocks.cosigners_beta.get_cosigners(order, page_cursor,\ + \ page_size);" x-accepts: application/json /cosigners/{cosignerId}: get: @@ -13876,6 +16705,16 @@ paths: - language: java code: CompletableFuture> response = fireblocks.cosignersBeta().getCosigner(cosignerId); name: Fireblocks SDK Java example + - language: python + code: response = fireblocks.cosigners_beta.get_cosigner(cosigner_id); + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.cosignersBeta.getCosigner(cosignersBetaApiGetCosignerRequest);" + - lang: Java + source: CompletableFuture> response = fireblocks.cosignersBeta().getCosigner(cosignerId); + - lang: Python + source: response = fireblocks.cosigners_beta.get_cosigner(cosigner_id); x-accepts: application/json patch: description: | @@ -13930,6 +16769,19 @@ paths: code: "CompletableFuture> response = fireblocks.cosignersBeta().renameCosigner(renameCosigner,\ \ cosignerId);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.cosigners_beta.rename_cosigner(rename_cosigner,\ + \ cosigner_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.cosignersBeta.renameCosigner(cosignersBetaApiRenameCosignerRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.cosignersBeta().renameCosigner(renameCosigner,\ + \ cosignerId);" + - lang: Python + source: "response = fireblocks.cosigners_beta.rename_cosigner(rename_cosigner,\ + \ cosigner_id);" x-content-type: application/json x-accepts: application/json /cosigners/{cosignerId}/api_keys: @@ -14015,6 +16867,21 @@ paths: \ = fireblocks.cosignersBeta().getApiKeys(cosignerId, order, pageCursor,\ \ pageSize);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.cosigners_beta.get_api_keys(cosigner_id, order,\ + \ page_cursor, page_size);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise>\ + \ = fireblocks.cosignersBeta.getApiKeys(cosignersBetaApiGetApiKeysRequest);" + - lang: Java + source: "CompletableFuture> response\ + \ = fireblocks.cosignersBeta().getApiKeys(cosignerId, order, pageCursor,\ + \ pageSize);" + - lang: Python + source: "response = fireblocks.cosigners_beta.get_api_keys(cosigner_id, order,\ + \ page_cursor, page_size);" x-accepts: application/json /cosigners/{cosignerId}/api_keys/{apiKeyId}: get: @@ -14073,6 +16940,17 @@ paths: code: "CompletableFuture> response = fireblocks.cosignersBeta().getApiKey(cosignerId,\ \ apiKeyId);" name: Fireblocks SDK Java example + - language: python + code: "response = fireblocks.cosigners_beta.get_api_key(cosigner_id, api_key_id);" + name: Fireblocks SDK Python example + x-codeSamples: + - lang: TypeScript + source: "const response: Promise> = fireblocks.cosignersBeta.getApiKey(cosignersBetaApiGetApiKeyRequest);" + - lang: Java + source: "CompletableFuture> response = fireblocks.cosignersBeta().getApiKey(cosignerId,\ + \ apiKeyId);" + - lang: Python + source: "response = fireblocks.cosigners_beta.get_api_key(cosigner_id, api_key_id);" x-accepts: application/json components: headers: @@ -15456,20 +18334,30 @@ components: $ref: '#/components/schemas/NetworkIdRoutingPolicy_value' type: object NetworkIdResponse: - allOf: - - $ref: '#/components/schemas/NetworkId' - - properties: - routingPolicy: - $ref: '#/components/schemas/NetworkIdRoutingPolicy' - isDiscoverable: - description: The specific network is discoverable. - type: boolean - type: object example: name: name isDiscoverable: true + routingPolicy: + key: + scheme: CUSTOM + dstId: dstId + dstType: FIAT_ACCOUNT id: id - routingPolicy: null + properties: + routingPolicy: + additionalProperties: + $ref: '#/components/schemas/NetworkIdRoutingPolicy_value' + type: object + isDiscoverable: + description: The specific network is discoverable. + type: boolean + id: + description: The specific network id + type: string + name: + description: The specific network name + type: string + type: object GetNetworkIdsResponse: items: allOf: @@ -16248,6 +19136,95 @@ components: - code - message type: object + SetAssetPriceRequest: + example: + price: 3100 + currency: USD + properties: + currency: + description: Currency (according to ISO 4217 currency codes) + example: USD + type: string + price: + description: Price in currency + example: 3100 + type: number + required: + - currency + - price + type: object + AssetPriceResponse: + example: + price: 3500 + legacyId: ETH + currency: USD + lastUpdateAt: 1716898542 + source: PRIVATE + properties: + legacyId: + description: The ID of the asset + example: ETH + type: string + lastUpdateAt: + description: Time of last price update + example: 1716898542 + type: number + currency: + description: Currency (according to ISO 4217 currency codes) + example: USD + type: string + price: + description: Price in currency + example: 3500 + type: number + source: + description: Source of the price data + enum: + - PUBLIC + - PRIVATE + example: PRIVATE + type: string + required: + - currency + - lastUpdateAt + - legacyId + - price + - source + type: object + AssetPriceForbiddenErrorResponse: + example: + code: "3002" + message: Tenant is not allowed to update asset + properties: + message: + description: Forbidden error message + example: Tenant is not allowed to update asset + type: string + code: + description: Error code + example: "3002" + type: string + required: + - code + - message + type: object + AssetPriceNotFoundErrorResponse: + example: + code: "3001" + message: Currency not found + properties: + message: + description: Not found error message + example: Currency not found + type: string + code: + description: Error code + example: "3001" + type: string + required: + - code + - message + type: object GetTransactionOperation: description: | * `TRANSFER` - Transfers funds from one account to another. UTXO blockchains allow multi-input and multi-output transfers. All other blockchains allow transfers with one source address and one destination address. @@ -22065,6 +25042,8 @@ components: - XTZ_TEST - BASECHAIN_ETH - BASECHAIN_ETH_TEST3 + - ETHERLINK + - ETHERLINK_TEST type: string description: type: string @@ -22216,6 +25195,8 @@ components: - XTZ_TEST - BASECHAIN_ETH - BASECHAIN_ETH_TEST3 + - ETHERLINK + - ETHERLINK_TEST type: string description: type: string @@ -22305,6 +25286,8 @@ components: - XTZ_TEST - BASECHAIN_ETH - BASECHAIN_ETH_TEST3 + - ETHERLINK + - ETHERLINK_TEST type: string contractAddress: description: Collection contract standard diff --git a/build.gradle b/build.gradle index b9c077c..358eefb 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'com.fireblocks.sdk' -version = '3.0.0' +version = '0.0.0' buildscript { repositories { diff --git a/docs/AssetPriceForbiddenErrorResponse.md b/docs/AssetPriceForbiddenErrorResponse.md new file mode 100644 index 0000000..57c53bc --- /dev/null +++ b/docs/AssetPriceForbiddenErrorResponse.md @@ -0,0 +1,14 @@ + + +# AssetPriceForbiddenErrorResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**message** | **String** | Forbidden error message | | +|**code** | **String** | Error code | | + + + diff --git a/docs/AssetPriceNotFoundErrorResponse.md b/docs/AssetPriceNotFoundErrorResponse.md new file mode 100644 index 0000000..1aa559e --- /dev/null +++ b/docs/AssetPriceNotFoundErrorResponse.md @@ -0,0 +1,14 @@ + + +# AssetPriceNotFoundErrorResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**message** | **String** | Not found error message | | +|**code** | **String** | Error code | | + + + diff --git a/docs/AssetPriceResponse.md b/docs/AssetPriceResponse.md new file mode 100644 index 0000000..ca21094 --- /dev/null +++ b/docs/AssetPriceResponse.md @@ -0,0 +1,26 @@ + + +# AssetPriceResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**legacyId** | **String** | The ID of the asset | | +|**lastUpdateAt** | **BigDecimal** | Time of last price update | | +|**currency** | **String** | Currency (according to ISO 4217 currency codes) | | +|**price** | **BigDecimal** | Price in currency | | +|**source** | [**SourceEnum**](#SourceEnum) | Source of the price data | | + + + +## Enum: SourceEnum + +| Name | Value | +|---- | -----| +| PUBLIC | "PUBLIC" | +| PRIVATE | "PRIVATE" | + + + diff --git a/docs/BlockchainsAssetsApi.md b/docs/BlockchainsAssetsApi.md index 696bed6..13f8579 100644 --- a/docs/BlockchainsAssetsApi.md +++ b/docs/BlockchainsAssetsApi.md @@ -6,6 +6,7 @@ All URIs are relative to https://developers.fireblocks.com/reference/ |------------- | ------------- | -------------| | [**getSupportedAssets**](BlockchainsAssetsApi.md#getSupportedAssets) | **GET** /supported_assets | List all asset types supported by Fireblocks | | [**registerNewAsset**](BlockchainsAssetsApi.md#registerNewAsset) | **POST** /assets | Register an asset | +| [**setAssetPrice**](BlockchainsAssetsApi.md#setAssetPrice) | **POST** /assets/prices/{id} | Set asset price | @@ -176,3 +177,92 @@ No authorization required | **409** | - The asset is already supported globally. Error code: 1001 - The asset has already been added to this workspace. Error code: 1002 | - | | **500** | Failed to create asset | - | + +## setAssetPrice + +> CompletableFuture> setAssetPrice setAssetPrice(id, setAssetPriceRequest, idempotencyKey) + +Set asset price + +Set asset price for the given asset id. Returns the asset price response. + +### Example + +```java +// Import classes: +import com.fireblocks.sdk.ApiClient; +import com.fireblocks.sdk.ApiException; +import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.BasePath; +import com.fireblocks.sdk.Fireblocks; +import com.fireblocks.sdk.ConfigurationOptions; +import com.fireblocks.sdk.model.*; +import com.fireblocks.sdk.api.BlockchainsAssetsApi; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; + +public class Example { + public static void main(String[] args) { + ConfigurationOptions configurationOptions = new ConfigurationOptions() + .basePath(BasePath.Sandbox) + .apiKey("my-api-key") + .secretKey("my-secret-key"); + Fireblocks fireblocks = new Fireblocks(configurationOptions); + + String id = "ETH"; // String | The ID of the asset + SetAssetPriceRequest setAssetPriceRequest = new SetAssetPriceRequest(); // SetAssetPriceRequest | + String idempotencyKey = "idempotencyKey_example"; // String | 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. + try { + CompletableFuture> response = fireblocks.blockchainsAssets().setAssetPrice(id, setAssetPriceRequest, idempotencyKey); + System.out.println("Status code: " + response.get().getStatusCode()); + System.out.println("Response headers: " + response.get().getHeaders()); + System.out.println("Response body: " + response.get().getData()); + } catch (InterruptedException | ExecutionException e) { + ApiException apiException = (ApiException)e.getCause(); + System.err.println("Exception when calling BlockchainsAssetsApi#setAssetPrice"); + System.err.println("Status code: " + apiException.getCode()); + System.err.println("Response headers: " + apiException.getResponseHeaders()); + System.err.println("Reason: " + apiException.getResponseBody()); + e.printStackTrace(); + } catch (ApiException e) { + System.err.println("Exception when calling BlockchainsAssetsApi#setAssetPrice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Response headers: " + e.getResponseHeaders()); + System.err.println("Reason: " + e.getResponseBody()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | **String**| The ID of the asset | | +| **setAssetPriceRequest** | [**SetAssetPriceRequest**](SetAssetPriceRequest.md)| | [optional] | +| **idempotencyKey** | **String**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] | + +### Return type + +CompletableFuture> + + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Asset price has been set successfully. | - | +| **403** | - Tenant is not allowed to set rate. Error code: 1002. | - | +| **404** | - Currency not found. Error code 1001 | - | +| **0** | Error Response | * X-Request-ID -
| + diff --git a/docs/CollectionOwnershipResponse.md b/docs/CollectionOwnershipResponse.md index c5af33b..2f36250 100644 --- a/docs/CollectionOwnershipResponse.md +++ b/docs/CollectionOwnershipResponse.md @@ -31,6 +31,8 @@ | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | | BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | +| ETHERLINK | "ETHERLINK" | +| ETHERLINK_TEST | "ETHERLINK_TEST" | diff --git a/docs/NetworkIdResponse.md b/docs/NetworkIdResponse.md index 24df903..093e255 100644 --- a/docs/NetworkIdResponse.md +++ b/docs/NetworkIdResponse.md @@ -7,10 +7,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**id** | **String** | | | -|**name** | **String** | | | |**routingPolicy** | [**Map<String, NetworkIdRoutingPolicyValue>**](NetworkIdRoutingPolicyValue.md) | | [optional] | |**isDiscoverable** | **Boolean** | The specific network is discoverable. | [optional] | +|**id** | **String** | The specific network id | [optional] | +|**name** | **String** | The specific network name | [optional] | diff --git a/docs/NftsApi.md b/docs/NftsApi.md index 83182d7..16e8a49 100644 --- a/docs/NftsApi.md +++ b/docs/NftsApi.md @@ -262,7 +262,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [optional] [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, XTZ, XTZ_TEST, BASECHAIN_ETH, BASECHAIN_ETH_TEST3] | +| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [optional] [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, XTZ, XTZ_TEST, BASECHAIN_ETH, BASECHAIN_ETH_TEST3, ETHERLINK, ETHERLINK_TEST] | | **vaultAccountIds** | **String**| A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. | [optional] | | **ncwId** | **String**| Tenant's Non-Custodial Wallet ID | [optional] | | **ncwAccountIds** | **String**| A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. | [optional] | @@ -635,7 +635,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH] | +| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH, ETHERLINK, ETHERLINK_TEST] | | **vaultAccountId** | **String**| Vault account filter | | | **idempotencyKey** | **String**| A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. | [optional] | diff --git a/docs/SetAssetPriceRequest.md b/docs/SetAssetPriceRequest.md new file mode 100644 index 0000000..9ad053c --- /dev/null +++ b/docs/SetAssetPriceRequest.md @@ -0,0 +1,14 @@ + + +# SetAssetPriceRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**currency** | **String** | Currency (according to ISO 4217 currency codes) | | +|**price** | **BigDecimal** | Price in currency | | + + + diff --git a/docs/TokenOwnershipResponse.md b/docs/TokenOwnershipResponse.md index 74da11c..1f5cc2d 100644 --- a/docs/TokenOwnershipResponse.md +++ b/docs/TokenOwnershipResponse.md @@ -43,6 +43,8 @@ | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | | BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | +| ETHERLINK | "ETHERLINK" | +| ETHERLINK_TEST | "ETHERLINK_TEST" | diff --git a/docs/TokenResponse.md b/docs/TokenResponse.md index 25a8a0c..f980f2b 100644 --- a/docs/TokenResponse.md +++ b/docs/TokenResponse.md @@ -36,6 +36,8 @@ | XTZ_TEST | "XTZ_TEST" | | BASECHAIN_ETH | "BASECHAIN_ETH" | | BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" | +| ETHERLINK | "ETHERLINK" | +| ETHERLINK_TEST | "ETHERLINK_TEST" | diff --git a/pom.xml b/pom.xml index 026eb22..94938f5 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 3.0.0 + 0.0.0 https://github.com/fireblocks/java-sdk The Fireblocks Official SDK is a comprehensive software development kit that enables seamless integration and interaction with the Fireblocks platform. Fireblocks is a cutting-edge blockchain infrastructure platform that provides secure and scalable solutions for managing digital assets and transactions. This SDK empowers developers to build robust applications that can interact with the Fireblocks platform's features, including creating and managing vault accounts, initiating secure transactions, managing assets, and more. It abstracts complex interactions with the Fireblocks API, making it easier for developers to leverage the platform's capabilities while adhering to best practices in security and efficiency. diff --git a/src/main/java/com/fireblocks/sdk/Configuration.java b/src/main/java/com/fireblocks/sdk/Configuration.java index f56aa69..9ec56d0 100644 --- a/src/main/java/com/fireblocks/sdk/Configuration.java +++ b/src/main/java/com/fireblocks/sdk/Configuration.java @@ -14,7 +14,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "3.0.0"; + public static final String VERSION = "0.0.0"; private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java index 04efe94..65b5b48 100644 --- a/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java +++ b/src/main/java/com/fireblocks/sdk/api/BlockchainsAssetsApi.java @@ -18,9 +18,12 @@ import com.fireblocks.sdk.ApiClient; import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.ValidationUtils; +import com.fireblocks.sdk.model.AssetPriceResponse; import com.fireblocks.sdk.model.AssetResponse; import com.fireblocks.sdk.model.AssetTypeResponse; import com.fireblocks.sdk.model.RegisterNewAssetRequest; +import com.fireblocks.sdk.model.SetAssetPriceRequest; import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -215,4 +218,86 @@ private HttpRequest.Builder registerNewAssetRequestBuilder( } return localVarRequestBuilder; } + /** + * Set asset price Set asset price for the given asset id. Returns the asset price response. + * + * @param id The ID of the asset (required) + * @param setAssetPriceRequest (optional) + * @param idempotencyKey A unique identifier for the request. If the request is sent multiple + * times with the same idempotency key, the server will return the same response as the + * first request. The idempotency key is valid for 24 hours. (optional) + * @return CompletableFuture<ApiResponse<AssetPriceResponse>> + * @throws ApiException if fails to make API call + */ + public CompletableFuture> setAssetPrice( + String id, SetAssetPriceRequest setAssetPriceRequest, String idempotencyKey) + throws ApiException { + try { + HttpRequest.Builder localVarRequestBuilder = + setAssetPriceRequestBuilder(id, setAssetPriceRequest, idempotencyKey); + return memberVarHttpClient + .sendAsync(localVarRequestBuilder.build(), HttpResponse.BodyHandlers.ofString()) + .thenComposeAsync( + localVarResponse -> { + if (memberVarAsyncResponseInterceptor != null) { + memberVarAsyncResponseInterceptor.accept(localVarResponse); + } + if (localVarResponse.statusCode() / 100 != 2) { + return CompletableFuture.failedFuture( + getApiException("setAssetPrice", localVarResponse)); + } + try { + String responseBody = localVarResponse.body(); + return CompletableFuture.completedFuture( + new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody == null || responseBody.isBlank() + ? null + : memberVarObjectMapper.readValue( + responseBody, + new TypeReference< + AssetPriceResponse>() {}))); + } catch (IOException e) { + return CompletableFuture.failedFuture(new ApiException(e)); + } + }); + } catch (ApiException e) { + return CompletableFuture.failedFuture(e); + } + } + + private HttpRequest.Builder setAssetPriceRequestBuilder( + String id, SetAssetPriceRequest setAssetPriceRequest, String idempotencyKey) + throws ApiException { + ValidationUtils.assertParamExistsAndNotEmpty("setAssetPrice", "id", id); + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = + "/assets/prices/{id}".replace("{id}", ApiClient.urlEncode(id.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + if (idempotencyKey != null) { + localVarRequestBuilder.header("Idempotency-Key", idempotencyKey.toString()); + } + localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(setAssetPriceRequest); + localVarRequestBuilder.method( + "POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } } diff --git a/src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java new file mode 100644 index 0000000..13845a7 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponse.java @@ -0,0 +1,182 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** AssetPriceForbiddenErrorResponse */ +@JsonPropertyOrder({ + AssetPriceForbiddenErrorResponse.JSON_PROPERTY_MESSAGE, + AssetPriceForbiddenErrorResponse.JSON_PROPERTY_CODE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AssetPriceForbiddenErrorResponse { + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_CODE = "code"; + private String code; + + public AssetPriceForbiddenErrorResponse() {} + + public AssetPriceForbiddenErrorResponse message(String message) { + this.message = message; + return this; + } + + /** + * Forbidden error message + * + * @return message + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getMessage() { + return message; + } + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + public AssetPriceForbiddenErrorResponse code(String code) { + this.code = code; + return this; + } + + /** + * Error code + * + * @return code + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(String code) { + this.code = code; + } + + /** Return true if this AssetPriceForbiddenErrorResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssetPriceForbiddenErrorResponse assetPriceForbiddenErrorResponse = + (AssetPriceForbiddenErrorResponse) o; + return Objects.equals(this.message, assetPriceForbiddenErrorResponse.message) + && Objects.equals(this.code, assetPriceForbiddenErrorResponse.code); + } + + @Override + public int hashCode() { + return Objects.hash(message, code); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssetPriceForbiddenErrorResponse {\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `message` to the URL query string + if (getMessage() != null) { + joiner.add( + String.format( + "%smessage%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `code` to the URL query string + if (getCode() != null) { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java new file mode 100644 index 0000000..6d607e8 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponse.java @@ -0,0 +1,182 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** AssetPriceNotFoundErrorResponse */ +@JsonPropertyOrder({ + AssetPriceNotFoundErrorResponse.JSON_PROPERTY_MESSAGE, + AssetPriceNotFoundErrorResponse.JSON_PROPERTY_CODE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AssetPriceNotFoundErrorResponse { + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public static final String JSON_PROPERTY_CODE = "code"; + private String code; + + public AssetPriceNotFoundErrorResponse() {} + + public AssetPriceNotFoundErrorResponse message(String message) { + this.message = message; + return this; + } + + /** + * Not found error message + * + * @return message + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getMessage() { + return message; + } + + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMessage(String message) { + this.message = message; + } + + public AssetPriceNotFoundErrorResponse code(String code) { + this.code = code; + return this; + } + + /** + * Error code + * + * @return code + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCode() { + return code; + } + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(String code) { + this.code = code; + } + + /** Return true if this AssetPriceNotFoundErrorResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssetPriceNotFoundErrorResponse assetPriceNotFoundErrorResponse = + (AssetPriceNotFoundErrorResponse) o; + return Objects.equals(this.message, assetPriceNotFoundErrorResponse.message) + && Objects.equals(this.code, assetPriceNotFoundErrorResponse.code); + } + + @Override + public int hashCode() { + return Objects.hash(message, code); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssetPriceNotFoundErrorResponse {\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `message` to the URL query string + if (getMessage() != null) { + joiner.add( + String.format( + "%smessage%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `code` to the URL query string + if (getCode() != null) { + joiner.add( + String.format( + "%scode%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java b/src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java new file mode 100644 index 0000000..a83d917 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/AssetPriceResponse.java @@ -0,0 +1,339 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** AssetPriceResponse */ +@JsonPropertyOrder({ + AssetPriceResponse.JSON_PROPERTY_LEGACY_ID, + AssetPriceResponse.JSON_PROPERTY_LAST_UPDATE_AT, + AssetPriceResponse.JSON_PROPERTY_CURRENCY, + AssetPriceResponse.JSON_PROPERTY_PRICE, + AssetPriceResponse.JSON_PROPERTY_SOURCE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AssetPriceResponse { + public static final String JSON_PROPERTY_LEGACY_ID = "legacyId"; + private String legacyId; + + public static final String JSON_PROPERTY_LAST_UPDATE_AT = "lastUpdateAt"; + private BigDecimal lastUpdateAt; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private String currency; + + public static final String JSON_PROPERTY_PRICE = "price"; + private BigDecimal price; + + /** Source of the price data */ + public enum SourceEnum { + PUBLIC("PUBLIC"), + + PRIVATE("PRIVATE"); + + private String value; + + SourceEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SourceEnum fromValue(String value) { + for (SourceEnum b : SourceEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_SOURCE = "source"; + private SourceEnum source; + + public AssetPriceResponse() {} + + public AssetPriceResponse legacyId(String legacyId) { + this.legacyId = legacyId; + return this; + } + + /** + * The ID of the asset + * + * @return legacyId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LEGACY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getLegacyId() { + return legacyId; + } + + @JsonProperty(JSON_PROPERTY_LEGACY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLegacyId(String legacyId) { + this.legacyId = legacyId; + } + + public AssetPriceResponse lastUpdateAt(BigDecimal lastUpdateAt) { + this.lastUpdateAt = lastUpdateAt; + return this; + } + + /** + * Time of last price update + * + * @return lastUpdateAt + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LAST_UPDATE_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getLastUpdateAt() { + return lastUpdateAt; + } + + @JsonProperty(JSON_PROPERTY_LAST_UPDATE_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLastUpdateAt(BigDecimal lastUpdateAt) { + this.lastUpdateAt = lastUpdateAt; + } + + public AssetPriceResponse currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency (according to ISO 4217 currency codes) + * + * @return currency + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCurrency() { + return currency; + } + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCurrency(String currency) { + this.currency = currency; + } + + public AssetPriceResponse price(BigDecimal price) { + this.price = price; + return this; + } + + /** + * Price in currency + * + * @return price + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PRICE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getPrice() { + return price; + } + + @JsonProperty(JSON_PROPERTY_PRICE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPrice(BigDecimal price) { + this.price = price; + } + + public AssetPriceResponse source(SourceEnum source) { + this.source = source; + return this; + } + + /** + * Source of the price data + * + * @return source + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SourceEnum getSource() { + return source; + } + + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSource(SourceEnum source) { + this.source = source; + } + + /** Return true if this AssetPriceResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssetPriceResponse assetPriceResponse = (AssetPriceResponse) o; + return Objects.equals(this.legacyId, assetPriceResponse.legacyId) + && Objects.equals(this.lastUpdateAt, assetPriceResponse.lastUpdateAt) + && Objects.equals(this.currency, assetPriceResponse.currency) + && Objects.equals(this.price, assetPriceResponse.price) + && Objects.equals(this.source, assetPriceResponse.source); + } + + @Override + public int hashCode() { + return Objects.hash(legacyId, lastUpdateAt, currency, price, source); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssetPriceResponse {\n"); + sb.append(" legacyId: ").append(toIndentedString(legacyId)).append("\n"); + sb.append(" lastUpdateAt: ").append(toIndentedString(lastUpdateAt)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `legacyId` to the URL query string + if (getLegacyId() != null) { + joiner.add( + String.format( + "%slegacyId%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getLegacyId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `lastUpdateAt` to the URL query string + if (getLastUpdateAt() != null) { + joiner.add( + String.format( + "%slastUpdateAt%s=%s", + prefix, + suffix, + URLEncoder.encode( + String.valueOf(getLastUpdateAt()), + StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `currency` to the URL query string + if (getCurrency() != null) { + joiner.add( + String.format( + "%scurrency%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCurrency()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `price` to the URL query string + if (getPrice() != null) { + joiner.add( + String.format( + "%sprice%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getPrice()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `source` to the URL query string + if (getSource() != null) { + joiner.add( + String.format( + "%ssource%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getSource()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java index 4301946..9c9cfef 100644 --- a/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/CollectionOwnershipResponse.java @@ -68,7 +68,11 @@ public enum BlockchainDescriptorEnum { BASECHAIN_ETH("BASECHAIN_ETH"), - BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"); + BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"), + + ETHERLINK("ETHERLINK"), + + ETHERLINK_TEST("ETHERLINK_TEST"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java b/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java index 436453f..34a36c5 100644 --- a/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/NetworkIdResponse.java @@ -25,72 +25,26 @@ /** NetworkIdResponse */ @JsonPropertyOrder({ - NetworkIdResponse.JSON_PROPERTY_ID, - NetworkIdResponse.JSON_PROPERTY_NAME, NetworkIdResponse.JSON_PROPERTY_ROUTING_POLICY, - NetworkIdResponse.JSON_PROPERTY_IS_DISCOVERABLE + NetworkIdResponse.JSON_PROPERTY_IS_DISCOVERABLE, + NetworkIdResponse.JSON_PROPERTY_ID, + NetworkIdResponse.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class NetworkIdResponse { - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - public static final String JSON_PROPERTY_ROUTING_POLICY = "routingPolicy"; private Map routingPolicy = new HashMap<>(); public static final String JSON_PROPERTY_IS_DISCOVERABLE = "isDiscoverable"; private Boolean isDiscoverable; - public NetworkIdResponse() {} - - public NetworkIdResponse id(String id) { - this.id = id; - return this; - } - - /** - * Get id - * - * @return id - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { - return id; - } - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setId(String id) { - this.id = id; - } - - public NetworkIdResponse name(String name) { - this.name = name; - return this; - } + public static final String JSON_PROPERTY_ID = "id"; + private String id; - /** - * Get name - * - * @return name - */ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { - return name; - } + public static final String JSON_PROPERTY_NAME = "name"; + private String name; - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setName(String name) { - this.name = name; - } + public NetworkIdResponse() {} public NetworkIdResponse routingPolicy(Map routingPolicy) { this.routingPolicy = routingPolicy; @@ -147,6 +101,52 @@ public void setIsDiscoverable(Boolean isDiscoverable) { this.isDiscoverable = isDiscoverable; } + public NetworkIdResponse id(String id) { + this.id = id; + return this; + } + + /** + * The specific network id + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + public NetworkIdResponse name(String name) { + this.name = name; + return this; + } + + /** + * The specific network name + * + * @return name + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + /** Return true if this NetworkIdResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -157,25 +157,25 @@ public boolean equals(Object o) { return false; } NetworkIdResponse networkIdResponse = (NetworkIdResponse) o; - return Objects.equals(this.id, networkIdResponse.id) - && Objects.equals(this.name, networkIdResponse.name) - && Objects.equals(this.routingPolicy, networkIdResponse.routingPolicy) - && Objects.equals(this.isDiscoverable, networkIdResponse.isDiscoverable); + return Objects.equals(this.routingPolicy, networkIdResponse.routingPolicy) + && Objects.equals(this.isDiscoverable, networkIdResponse.isDiscoverable) + && Objects.equals(this.id, networkIdResponse.id) + && Objects.equals(this.name, networkIdResponse.name); } @Override public int hashCode() { - return Objects.hash(id, name, routingPolicy, isDiscoverable); + return Objects.hash(routingPolicy, isDiscoverable, id, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkIdResponse {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" routingPolicy: ").append(toIndentedString(routingPolicy)).append("\n"); sb.append(" isDiscoverable: ").append(toIndentedString(isDiscoverable)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); } @@ -223,28 +223,6 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `id` to the URL query string - if (getId() != null) { - joiner.add( - String.format( - "%sid%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add( - String.format( - "%sname%s=%s", - prefix, - suffix, - URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) - .replaceAll("\\+", "%20"))); - } - // add `routingPolicy` to the URL query string if (getRoutingPolicy() != null) { for (String _key : getRoutingPolicy().keySet()) { @@ -281,6 +259,28 @@ public String toUrlQueryString(String prefix) { .replaceAll("\\+", "%20"))); } + // add `id` to the URL query string + if (getId() != null) { + joiner.add( + String.format( + "%sid%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `name` to the URL query string + if (getName() != null) { + joiner.add( + String.format( + "%sname%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + return joiner.toString(); } } diff --git a/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java b/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java new file mode 100644 index 0000000..19bfd29 --- /dev/null +++ b/src/main/java/com/fireblocks/sdk/model/SetAssetPriceRequest.java @@ -0,0 +1,182 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.math.BigDecimal; +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.Objects; +import java.util.StringJoiner; + +/** SetAssetPriceRequest */ +@JsonPropertyOrder({ + SetAssetPriceRequest.JSON_PROPERTY_CURRENCY, + SetAssetPriceRequest.JSON_PROPERTY_PRICE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SetAssetPriceRequest { + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private String currency; + + public static final String JSON_PROPERTY_PRICE = "price"; + private BigDecimal price; + + public SetAssetPriceRequest() {} + + public SetAssetPriceRequest currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency (according to ISO 4217 currency codes) + * + * @return currency + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCurrency() { + return currency; + } + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCurrency(String currency) { + this.currency = currency; + } + + public SetAssetPriceRequest price(BigDecimal price) { + this.price = price; + return this; + } + + /** + * Price in currency + * + * @return price + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PRICE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getPrice() { + return price; + } + + @JsonProperty(JSON_PROPERTY_PRICE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPrice(BigDecimal price) { + this.price = price; + } + + /** Return true if this SetAssetPriceRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetAssetPriceRequest setAssetPriceRequest = (SetAssetPriceRequest) o; + return Objects.equals(this.currency, setAssetPriceRequest.currency) + && Objects.equals(this.price, setAssetPriceRequest.price); + } + + @Override + public int hashCode() { + return Objects.hash(currency, price); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetAssetPriceRequest {\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces (except the first + * line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `currency` to the URL query string + if (getCurrency() != null) { + joiner.add( + String.format( + "%scurrency%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getCurrency()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + // add `price` to the URL query string + if (getPrice() != null) { + joiner.add( + String.format( + "%sprice%s=%s", + prefix, + suffix, + URLEncoder.encode(String.valueOf(getPrice()), StandardCharsets.UTF_8) + .replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} diff --git a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java index 2caa662..280915c 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenOwnershipResponse.java @@ -107,7 +107,11 @@ public enum BlockchainDescriptorEnum { BASECHAIN_ETH("BASECHAIN_ETH"), - BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"); + BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"), + + ETHERLINK("ETHERLINK"), + + ETHERLINK_TEST("ETHERLINK_TEST"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java index 10e526d..8977e59 100644 --- a/src/main/java/com/fireblocks/sdk/model/TokenResponse.java +++ b/src/main/java/com/fireblocks/sdk/model/TokenResponse.java @@ -87,7 +87,11 @@ public enum BlockchainDescriptorEnum { BASECHAIN_ETH("BASECHAIN_ETH"), - BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"); + BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3"), + + ETHERLINK("ETHERLINK"), + + ETHERLINK_TEST("ETHERLINK_TEST"); private String value; diff --git a/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java b/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java index c39a21d..27d9772 100644 --- a/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java +++ b/src/test/java/com/fireblocks/sdk/api/BlockchainsAssetsApiTest.java @@ -15,9 +15,11 @@ import com.fireblocks.sdk.ApiException; import com.fireblocks.sdk.ApiResponse; +import com.fireblocks.sdk.model.AssetPriceResponse; import com.fireblocks.sdk.model.AssetResponse; import com.fireblocks.sdk.model.AssetTypeResponse; import com.fireblocks.sdk.model.RegisterNewAssetRequest; +import com.fireblocks.sdk.model.SetAssetPriceRequest; import java.util.List; import java.util.concurrent.CompletableFuture; import org.junit.Ignore; @@ -57,4 +59,20 @@ public void registerNewAssetTest() throws ApiException { CompletableFuture> response = api.registerNewAsset(registerNewAssetRequest, idempotencyKey); } + + /** + * Set asset price + * + *

Set asset price for the given asset id. Returns the asset price response. + * + * @throws ApiException if the Api call fails + */ + @Test + public void setAssetPriceTest() throws ApiException { + String id = null; + SetAssetPriceRequest setAssetPriceRequest = null; + String idempotencyKey = null; + CompletableFuture> response = + api.setAssetPrice(id, setAssetPriceRequest, idempotencyKey); + } } diff --git a/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java new file mode 100644 index 0000000..84705cd --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AssetPriceForbiddenErrorResponseTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.Test; + +/** Model tests for AssetPriceForbiddenErrorResponse */ +public class AssetPriceForbiddenErrorResponseTest { + private final AssetPriceForbiddenErrorResponse model = new AssetPriceForbiddenErrorResponse(); + + /** Model tests for AssetPriceForbiddenErrorResponse */ + @Test + public void testAssetPriceForbiddenErrorResponse() { + // TODO: test AssetPriceForbiddenErrorResponse + } + + /** Test the property 'message' */ + @Test + public void messageTest() { + // TODO: test message + } + + /** Test the property 'code' */ + @Test + public void codeTest() { + // TODO: test code + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java new file mode 100644 index 0000000..f3fa348 --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AssetPriceNotFoundErrorResponseTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.Test; + +/** Model tests for AssetPriceNotFoundErrorResponse */ +public class AssetPriceNotFoundErrorResponseTest { + private final AssetPriceNotFoundErrorResponse model = new AssetPriceNotFoundErrorResponse(); + + /** Model tests for AssetPriceNotFoundErrorResponse */ + @Test + public void testAssetPriceNotFoundErrorResponse() { + // TODO: test AssetPriceNotFoundErrorResponse + } + + /** Test the property 'message' */ + @Test + public void messageTest() { + // TODO: test message + } + + /** Test the property 'code' */ + @Test + public void codeTest() { + // TODO: test code + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java b/src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java new file mode 100644 index 0000000..2f6f53b --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/AssetPriceResponseTest.java @@ -0,0 +1,57 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.Test; + +/** Model tests for AssetPriceResponse */ +public class AssetPriceResponseTest { + private final AssetPriceResponse model = new AssetPriceResponse(); + + /** Model tests for AssetPriceResponse */ + @Test + public void testAssetPriceResponse() { + // TODO: test AssetPriceResponse + } + + /** Test the property 'legacyId' */ + @Test + public void legacyIdTest() { + // TODO: test legacyId + } + + /** Test the property 'lastUpdateAt' */ + @Test + public void lastUpdateAtTest() { + // TODO: test lastUpdateAt + } + + /** Test the property 'currency' */ + @Test + public void currencyTest() { + // TODO: test currency + } + + /** Test the property 'price' */ + @Test + public void priceTest() { + // TODO: test price + } + + /** Test the property 'source' */ + @Test + public void sourceTest() { + // TODO: test source + } +} diff --git a/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java b/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java index 6c2e06b..63e3032 100644 --- a/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java +++ b/src/test/java/com/fireblocks/sdk/model/NetworkIdResponseTest.java @@ -25,18 +25,6 @@ public void testNetworkIdResponse() { // TODO: test NetworkIdResponse } - /** Test the property 'id' */ - @Test - public void idTest() { - // TODO: test id - } - - /** Test the property 'name' */ - @Test - public void nameTest() { - // TODO: test name - } - /** Test the property 'routingPolicy' */ @Test public void routingPolicyTest() { @@ -48,4 +36,16 @@ public void routingPolicyTest() { public void isDiscoverableTest() { // TODO: test isDiscoverable } + + /** Test the property 'id' */ + @Test + public void idTest() { + // TODO: test id + } + + /** Test the property 'name' */ + @Test + public void nameTest() { + // TODO: test name + } } diff --git a/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java b/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java new file mode 100644 index 0000000..c6b1a4e --- /dev/null +++ b/src/test/java/com/fireblocks/sdk/model/SetAssetPriceRequestTest.java @@ -0,0 +1,39 @@ +/* + * Fireblocks API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.6.2 + * Contact: support@fireblocks.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.fireblocks.sdk.model; + + +import org.junit.Test; + +/** Model tests for SetAssetPriceRequest */ +public class SetAssetPriceRequestTest { + private final SetAssetPriceRequest model = new SetAssetPriceRequest(); + + /** Model tests for SetAssetPriceRequest */ + @Test + public void testSetAssetPriceRequest() { + // TODO: test SetAssetPriceRequest + } + + /** Test the property 'currency' */ + @Test + public void currencyTest() { + // TODO: test currency + } + + /** Test the property 'price' */ + @Test + public void priceTest() { + // TODO: test price + } +}