@@ -2407,28 +2407,44 @@ paths:
24072407 /ncw/{walletId}/public_key_info:
24082408 get:
24092409 description: Gets the public key information based on derivation path and signing
2410- algorithm.
2410+ algorithm within a Non-Custodial Wallet
24112411 operationId: getPublicKeyInfoNcw
24122412 parameters:
2413- - explode: false
2413+ - description: The ID of the Non-Custodial wallet
2414+ explode: false
24142415 in: path
24152416 name: walletId
24162417 required: true
24172418 schema:
2419+ example: 550e8400-e29b-41d4-a716-446655440000
24182420 type: string
24192421 style: simple
2420- - explode: true
2422+ - description: "An array of integers (passed as JSON stringified array) representing\
2423+ \ the full BIP44 derivation path of the requested public key. \nThe first\
2424+ \ element must always be 44.\n"
2425+ example:
2426+ - 44
2427+ - 0
2428+ - 0
2429+ - 0
2430+ - 0
2431+ explode: true
24212432 in: query
24222433 name: derivationPath
24232434 required: true
24242435 schema:
24252436 type: string
24262437 style: form
2427- - explode: true
2438+ - description: Elliptic Curve
2439+ explode: true
24282440 in: query
24292441 name: algorithm
24302442 required: true
24312443 schema:
2444+ enum:
2445+ - MPC_ECDSA_SECP256K1
2446+ - MPC_ECDSA_SECP256R1
2447+ - MPC_EDDSA_ED25519
24322448 type: string
24332449 style: form
24342450 - explode: true
@@ -2457,64 +2473,94 @@ paths:
24572473 headers:
24582474 X-Request-ID:
24592475 $ref: '#/components/headers/X-Request-ID'
2460- summary: Get the public key information
2476+ summary: Get the public key for a derivation path
24612477 tags:
24622478 - Embedded Wallets
2463- x-internal: true
24642479 x-readme:
24652480 code-samples:
2466- - language: python
2467- code: "pubKey = fireblocks.NCW.get_public_key_info(wallet_id, algorithm,\
2468- \ derivation_path, compressed)"
2469- name: Fireblocks SDK Python example (Legacy)
24702481 - language: javascript
2471- code: |
2472- const PublicKeyInfoArgs = { algorithm: 'MPC_ECDSA_SECP256K1', derivationPath: '[44,0,0,0,0]' } const pubKey = await fireblocks.NCW.getPublicKeyInfo(walletId, PublicKeyInfoArgs);
2482+ code: "const publicKeyInfoArgs = { \n algorithm: 'MPC_ECDSA_SECP256K1',\n\
2483+ \ derivationPath: [44, 0, 0, 0, 0],\n compressed: true\n};\nconst pubKey\
2484+ \ = await fireblocks.NCW.getPublicKeyInfo(walletId, publicKeyInfoArgs);\n"
24732485 name: Fireblocks SDK Javascript example
2486+ - language: typescript
2487+ code: "const response: Promise<FireblocksResponse<PublicKeyInformation>>\
2488+ \ = fireblocks.embeddedWallets.getPublicKeyInfoNcw(embeddedWalletsApiGetPublicKeyInfoNcwRequest);"
2489+ name: Fireblocks SDK TypeScript example
2490+ - language: java
2491+ code: "CompletableFuture<ApiResponse<PublicKeyInformation>> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId,\
2492+ \ derivationPath, algorithm, compressed);"
2493+ name: Fireblocks SDK Java example
2494+ - language: python
2495+ code: "response = fireblocks.embedded_wallets.get_public_key_info_ncw(wallet_id,\
2496+ \ derivation_path, algorithm, compressed);"
2497+ name: Fireblocks SDK Python example
2498+ x-codeSamples:
2499+ - lang: TypeScript
2500+ source: "const response: Promise<FireblocksResponse<PublicKeyInformation>>\
2501+ \ = fireblocks.embeddedWallets.getPublicKeyInfoNcw(embeddedWalletsApiGetPublicKeyInfoNcwRequest);"
2502+ - lang: Java
2503+ source: "CompletableFuture<ApiResponse<PublicKeyInformation>> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId,\
2504+ \ derivationPath, algorithm, compressed);"
2505+ - lang: Python
2506+ source: "response = fireblocks.embedded_wallets.get_public_key_info_ncw(wallet_id,\
2507+ \ derivation_path, algorithm, compressed);"
24742508 x-accepts: application/json
24752509 /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info:
24762510 get:
2477- description: Gets the public key information for the account asset.
2511+ description: Gets the public key of an asset associated with a specific account
2512+ within a Non-Custodial Wallet
24782513 operationId: getPublicKeyInfoForAddressNcw
24792514 parameters:
2480- - explode: false
2515+ - description: The ID of the Non-Custodial wallet
2516+ explode: false
24812517 in: path
24822518 name: walletId
24832519 required: true
24842520 schema:
2521+ example: 550e8400-e29b-41d4-a716-446655440000
24852522 type: string
24862523 style: simple
2487- - explode: false
2524+ - description: The ID of the account
2525+ explode: false
24882526 in: path
24892527 name: accountId
24902528 required: true
24912529 schema:
2530+ example: "0"
24922531 format: numeric
24932532 type: string
24942533 style: simple
2495- - explode: false
2534+ - description: The ID of the asset
2535+ explode: false
24962536 in: path
24972537 name: assetId
24982538 required: true
24992539 schema:
2540+ example: BTC
25002541 type: string
25012542 x-fb-entity: asset
25022543 style: simple
2503- - explode: false
2544+ - description: BIP44 derivation path - change value
2545+ explode: false
25042546 in: path
25052547 name: change
25062548 required: true
25072549 schema:
2550+ example: 0
25082551 type: number
25092552 style: simple
2510- - explode: false
2553+ - description: BIP44 derivation path - index value
2554+ explode: false
25112555 in: path
25122556 name: addressIndex
25132557 required: true
25142558 schema:
2559+ example: 0
25152560 type: number
25162561 style: simple
2517- - explode: true
2562+ - description: Compressed/Uncompressed public key format
2563+ explode: true
25182564 in: query
25192565 name: compressed
25202566 required: false
@@ -2540,20 +2586,39 @@ paths:
25402586 headers:
25412587 X-Request-ID:
25422588 $ref: '#/components/headers/X-Request-ID'
2543- summary: Get the public key for an account asset
2589+ summary: Get the public key of an asset
25442590 tags:
25452591 - Embedded Wallets
2546- x-internal: true
25472592 x-readme:
25482593 code-samples:
2549- - language: python
2550- code: "pubKey = fireblocks.NCW.get_public_key_info_by_account_asset(wallet_id,\
2551- \ asset_id, account_id, change, address_index, compressed)"
2552- name: Fireblocks SDK Python example (Legacy)
25532594 - language: javascript
2554- code: |
2555- const PublicKeyInfoByAccountAssetArgs = { assetId: 'ETH', accountId: 0, change: 0, addressIndex: 0, compressed: true } const pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId, PublicKeyInfoByAccountAssetArgs);
2595+ code: "const publicKeyInfoByAccountAssetArgs = {\n assetId: 'ETH',\n accountId:\
2596+ \ 0,\n change: 0,\n addressIndex: 0,\n compressed: true\n}; \
2597+ \ \nconst pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId,\
2598+ \ publicKeyInfoByAccountAssetArgs);\n"
25562599 name: Fireblocks SDK Javascript example
2600+ - language: typescript
2601+ code: "const response: Promise<FireblocksResponse<PublicKeyInformation>>\
2602+ \ = fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(embeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest);"
2603+ name: Fireblocks SDK TypeScript example
2604+ - language: java
2605+ code: "CompletableFuture<ApiResponse<PublicKeyInformation>> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId,\
2606+ \ accountId, assetId, change, addressIndex, compressed);"
2607+ name: Fireblocks SDK Java example
2608+ - language: python
2609+ code: "response = fireblocks.embedded_wallets.get_public_key_info_for_address_ncw(wallet_id,\
2610+ \ account_id, asset_id, change, address_index, compressed);"
2611+ name: Fireblocks SDK Python example
2612+ x-codeSamples:
2613+ - lang: TypeScript
2614+ source: "const response: Promise<FireblocksResponse<PublicKeyInformation>>\
2615+ \ = fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(embeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest);"
2616+ - lang: Java
2617+ source: "CompletableFuture<ApiResponse<PublicKeyInformation>> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId,\
2618+ \ accountId, assetId, change, addressIndex, compressed);"
2619+ - lang: Python
2620+ source: "response = fireblocks.embedded_wallets.get_public_key_info_for_address_ncw(wallet_id,\
2621+ \ account_id, asset_id, change, address_index, compressed);"
25572622 x-accepts: application/json
25582623 /workspace/freeze:
25592624 post:
@@ -18959,18 +19024,35 @@ components:
1895919024 PublicKeyInformation:
1896019025 example:
1896119026 derivationPath:
18962- - 0.8008281904610115
18963- - 0.8008281904610115
18964- publicKey: publicKey
18965- algorithm: algorithm
19027+ - 44
19028+ - 0
19029+ - 0
19030+ - 0
19031+ - 0
19032+ publicKey: 1044c36403c1802818b472398f546a43a0d91569d5583a6e807c3825b155c7bd
19033+ algorithm: MPC_ECDSA_SECP256K1
1896619034 properties:
1896719035 algorithm:
19036+ description: Elliptic Curve
19037+ enum:
19038+ - MPC_ECDSA_SECP256K1
19039+ - MPC_ECDSA_SECP256R1
19040+ - MPC_EDDSA_ED25519
1896819041 type: string
1896919042 derivationPath:
19043+ description: BIP44 derivation path
19044+ example:
19045+ - 44
19046+ - 0
19047+ - 0
19048+ - 0
19049+ - 0
1897019050 items:
18971- type: number
19051+ type: integer
1897219052 type: array
1897319053 publicKey:
19054+ description: Compressed/Uncompressed public key value in hex representation
19055+ example: 1044c36403c1802818b472398f546a43a0d91569d5583a6e807c3825b155c7bd
1897419056 type: string
1897519057 type: object
1897619058 GetVaultAssetsResponse:
0 commit comments