Bridge USDC to your OP Stack Rollup
This guide will show you how to manually bridge USDC to your rollup using Foundry CLI commands.
Depositing
On the settlement layer, execute the following steps to bridge USDC to your rollup:
Locate Bridge Contracts
In the Conduit UI, navigate to the Apps section. Click on Your Apps and select Bridged USDC. You’ll find the Installation Details in the bottom-right corner, including contract addresses for:
Bridged USDC (Rollup)USDC (Settlement Layer)Bridge (Rollup)Bridge (Settlement Layer)Rollup Factory (Rollup)
Export these addresses as environment variables:
Set settlement layer variables
Pick your settlement layer and export the Settlement USDC Token Address and the RPC URL as environment variables:
Configure Foundry with your wallet
We need to sign the transactions with a private key. Refer to Foundry’s Key Management Best Practices for production use.
The following steps will utilize the --private-key flag and the $PRIVATE_KEY environment variable. Set the environment variable with the following command:
If you’re using a different method, replace --private-key $PRIVATE_KEY with the appropriate flag in the commands below.
Fund your wallet
Make sure your wallet is funded with the native token and USDC on the settlement layer. If you are bridging onto a Testnet you can claim some testnet USDC here: Circle Testnet Faucet.
Withdrawing
After a few minutes, your deposit should be processed and available on your rollup. To withdraw USDC, follow these steps:
Learn More
For a detailed overview of how the USDC bridge functions on Optimism, you can find the official documentation and the repository here: