Ethereum → Goliath
Step-by-step integration guide for bridging ETH, USDC, or XCN from Ethereum Mainnet to Goliath Mainnet — with ethers.js, viem, and status-polling examples.
Prerequisites
Supported Tokens
Token
Ethereum-side asset
Address on Ethereum
The BridgeLock Contract
// Native ETH
function depositNative(address destinationAddress)
external payable
returns (bytes32 depositId);
// ERC-20 tokens
function deposit(address token, uint256 amount, address destinationAddress)
external
returns (bytes32 depositId);Step 1 — (Optional) Quote the transfer
Step 2 — Approve ERC-20 allowance (USDC and XCN only)
Step 3 — Submit the deposit
Native ETH
USDC (6 decimals)
XCN (ERC-20 on Ethereum, 18 decimals)
Step 4 — Extract the depositId (optional)
depositId (optional)Step 5 — Poll the bridge API
Step 6 — Verify on Goliath
Putting It All Together
Common Errors
Symptom
Cause
Fix
Next
Last updated