Bridge usdc
(Created page with "'''bridge usdc''' is a command that allows you to move USDC tokens between different blockchains using a multichain bridge. This process is known as "bridging". == Parameters...") |
Revision as of 20:06, 4 July 2023
bridge usdc is a command that allows you to move USDC tokens between different blockchains using a multichain bridge. This process is known as "bridging".
Parameters
Amount: The amount of USDC tokens you wish to bridge from one chain to another.
Chain In: The blockchain from which you're sending the USDC tokens.
Chain Out: The blockchain to which you're moving the USDC tokens.
Transaction Info Variable: (Advanced, Optional) A variable to store the transaction details associated with the bridging operation. The default value is '#txinfo'.
Example
config defi wallet("your private key") bridge usdc("100", "BinanceSmartChain", "Avalanche", '#txid') log object(#txid)
Please replace "your private key" with your actual DeFi wallet's private key.
Be mindful when you are handling your private key. It's a sensitive piece of data that allows full control over your funds in your DeFi wallet. Therefore, never share this key publicly or with anyone.
The script above bridges 100 USDC tokens from Binance Smart Chain to Avalanche and logs the transaction details to the console.
Before bridging tokens, make sure you have enough USDC tokens and sufficient gas fees in the native token of the 'Chain In' blockchain for the transaction to be processed. Also, double-check the compatibility between the 'Chain In' and 'Chain Out' destinations for the multichain bridge.