I’m currently working with a Fireblocks sandbox account that includes multiple networks such as BTC_TEST
and XRP_TEST
, both functioning properly with updated balances and transfers.
However, I encounter an error when trying to create addresses for networks such as:
BNB_TEST
ETH_TEST5
ETH_TEST_HOODI
ETH-AETH_RIN
ETH-AETH_SEPOLIA
ETH-OPT_KOV
SOL_TEST
Problem:
Each time I attempt to create an address on these networks, I receive the following error:
{
"message": "Creating addresses for the provided asset is not supported",
"code": 1010
}
Code:
const FireblocksSDK = require('fireblocks-sdk');
const fireblocks = new FireblocksSDK('YOUR_API_KEY');
async function createNetwork() {
try {
const vaultAccount = await fireblocks.createVaultAccount("Ram");
console.log(vaultAccount);
const vaultAsset = await fireblocks.createVaultAsset(vaultAccount.id, "BNB_TEST");
console.log(vaultAsset);
const address = await fireblocks.generateNewAddress(vaultAccount.id, "BNB_TEST");
console.log(address);
} catch (error) {
console.error("Error creating network:", error);
}
}