Address generation and Transaction creation method for Bep20 and ERC20 Tokens

We had a clarity for ETH, BNB, and BTC in the Sandbox workspace, using (ETH_TEST5, BNB_TEST, BTC_TEST) for address generation and transaction creation.

Now, we need to integrate support for BEP20 and ERC20 tokens. For example, if USDC is on the BEP20 network, how can we handle address generation and implement the transaction creation method for such tokens?

Please guide me on how to proceed.

Hi,

To add EVM tokens to your WS, you can do so from the console according to -
https://support.fireblocks.io/hc/en-us/articles/5601259928220-Adding-EVM-assets-to-a-workspace

Or you can use our API endpoint -

The addresses generated for those tokens are the same address as the base asset in that vault.
If you have an ETH address in vault X, and add an ERC20 token to that vault, they will have the same address (as well with BNB since it is an EVM).

The transaction creation for those tokens are the same as for the base asset.
*The fees are paid in the base asset so if you are transffering USDC/BEP20 token please make sure you have ETH and BNB_BSC.

So, now we register the token as follows,

const result = await fireblocks.registerNewAsset('ETH_TEST_HOODI', 'TOKENADDRESS', 'USDC');
console.log(result, "register new asset");

in this error message throws like,

data: { message: 'Blockchain not found', code: 2 }

Guide me, how to resolve this

Hi Pemaju,

The endpoint registerNewAsset:

registerNewAsset(blockchainId: string, address: string, symbol?: string, requestOptions?: RequestOptions)
expects to receive blockchainId which is a number, then the address of the asset you want to add, and the symbol.
for example:

  registerNewAsset(blockchainId = "ETH_TEST5",address = "0x7cCF17653AEB337084C39D0478604b1EBAfF9d28",
symbol = "YTAL")

In your case since you are using this on SEPOLIA →
the blockchainId = ETH_TEST5

Hi Rotem,

Thanks, but we want to integrate in Hoodi network, so only passed the parameter like “ETH_TEST_HOODI”. So how can we pass for Hoodi network ?