Create a Vault and Wallet

Creating a Vault Account in Fireblocks vs. Creating a Wallet in Krayon

Fireblocks: Creating a Vault Account

Key Features:

  • API Endpoint: https://api.fireblocks.io/v1/vault/accounts
  • Purpose: Creates a new vault account with the requested name.

Krayon: Creating a Wallet

Key Features:

  • API Endpoint: https://docs.krayondigital.com/reference/wallets_create
  • Fields: https://docs.krayondigital.com/reference/wallets
  • Purpose: To create a new wallet that can be used for various operations like transactions, asset management, etc.

Create wallet example:

import axios from 'axios';

const options = {
  method: 'POST',
  url: 'https://api.aqua.test.krayondigital.com/main/api/v1/wallets',
  headers: {accept: 'application/json', 'content-type': 'application/json'},
  data: {
    blockchain: 'ethereum', 
    gas_station_status: 1, // Auto fuel enabled
    name: 'Wallet Name',
    group: "group ID", // Group wallets under group
  }
};

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

import requests

url = "https://api.aqua.test.krayondigital.com/main/api/v1/wallets"

payload = {
    "blockchain": "ethereum",
    "gas_station_status": 1, # Auto fuel enabled
    "name": "Wallet Name",
    "group": "group ID", # Group wallets under group
}
headers = {
    "accept": "application/json",
    "content-type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)

Optional parameters

When creating wallets, you can also provide optional parameters.

See all optional parameters available for each API call.

The Steps to Migrate

  1. Prepare Data: Collect all the necessary information to create a new vault account in Fireblocks or a wallet in Krayon. This includes names, types, and other optional fields.

  2. API Call in Fireblocks: Use the Fireblocks API endpoint to create a new vault account. Make sure to adhere to any rate limits.

  3. API Call in Krayon: Use the Krayon API to create a new wallet. Populate the required fields likename, blockchain, etc.

  4. Verify Creation: Verify that the vault account or wallet has been successfully created in the respective platforms after issuing the API calls.

  5. Map Fields: If you're migrating from Fireblocks to Krayon, map any relevant fields from the Fireblocks vault account to the Krayon wallet.

  6. Test: Perform test operations to ensure the newly created vault account or wallet functions as expected.

  7. Finalize: Once satisfied with the testing, you can use the new vault account or wallet for your operations.