Skip to main content
In this guide, you’ll learn how to programmatically bridge CELO from Sepolia to Celo Sepolia using the viem OP Stack.

Steps to Bridge CELO

Before transferring tokens, you must authorize the OptimismPortalProxy contract to spend CELO on your behalf. Without this approval, the bridging transaction cannot proceed. Call the depositERC20Transaction function on the OptimismPortalProxy contract on Sepolia. This function moves CELO tokens from your account to the Celo Sepolia.

Code Example

The following example demonstrates how to configure a file with all the details you need for interacting with the Celo Sepolia.