Retrieving Specific Vault Accounts and Wallet

Retrieve a Vault Account in Fireblocks vs. retrieve a Wallet in Krayon

Fireblocks: Retrieving a Specific Vault Account

Key Features:

  • API Endpoint: https://api.fireblocks.io/v1/vault/accounts/
  • Purpose: Return the requested vault account.

Krayon: Retrieving an Individual Wallet

Key Features:

  • API Endpoint: https://api.aqua.test.krayondigital.com/main/api/v1/wallets/
  • Purpose: Retrieve all details for a specific wallet.

Retrieve wallet example:

import axios from 'axios';

const options = {
  method: 'GET',
  url: 'https://api.aqua.test.krayondigital.com/main/api/v1/wallets/id',
  params: {blockchain: 'ethereum'}, // Can be used when this is a cluster wallet
  headers: {accept: 'application/json'}
};

axios
  .request(options)
  .then(function (response) {
    console.log(response.data);
  })
  .catch(function (error) {
    console.error(error);
  });
import requests

# blockchain queryparam can be used when this is a cluster wallet
url = "https://api.aqua.test.krayondigital.com/main/api/v1/wallets/id?blockchain=ethereum"

headers = {"accept": "application/json"}

response = requests.get(url, headers=headers)

print(response.text)


Steps to Migrate from Fireblocks to Krayon

  1. Retrieve Specific Vault in Fireblocks: Use the Fireblocks API to retrieve details for a specific vault account. This will give you all the information you need for that particular vault.

  2. Retrieve Individual Wallet in Krayon: Use the Krayon API to retrieve all details for a specific wallet. This will give you a comprehensive view of that wallet's details.

  3. Map Specific Vaults to Individual Wallets: Create a mapping between the specific Fireblocks vault and the corresponding Krayon wallet.

  4. Test: Perform some test operations to ensure that the Krayon wallet accurately reflects the specific Fireblocks vault it is mapped to.

  5. Finalize: Once you're satisfied with the testing, you can proceed to use the new Krayon wallet for your operations.