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?
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.
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