hookData mechanism. Currently available for Solana → Base flows only.
Get Your Builder Code
When you register on base.dev, you will find a Builder Code under your app’s settings. This is a random string (e.g., k3p9da) that you will use to generate your attribution suffix.
Attach to Bridge Message
Set
to = BRIDGE_CAMPAIGN_ADDRESS and attach a call to Flywheel.send.- Simple Bridge
- Bridge + Follow-Up Call
For a bridge with no follow-up call:
Learn More: A Full Implementation Example
Terminally Onchain is a production Next.js app that exposes the bridge via a command terminal UI. Users connect a Solana wallet, type commands such as to bridge and call a contract on Base:You can use Terminally Onchain to test bridge transactions with Builder Codes like so:To see how this is implemented, you can take a look at the Github repo:
sol2base/MainContent.tsx
Contract Addresses
| Contract | Base Mainnet | Base Sepolia |
|---|---|---|
BRIDGE_CAMPAIGN_ADDRESS | 0x539A97cc4724d5b2740DB98Bc71445448eFC1Bde | 0xE2AD1C34382410C30d826B019A0B3700F5c4e6c9 |
FLYWHEEL_ADDRESS | 0x00000F14AD09382841DB481403D1775ADeE1179F | 0x00000F14AD09382841DB481403D1775ADeE1179F |
MULTICALL_ADDRESS | 0xcA11bde05977b3631167028862bE2a173976CA11 | 0xcA11bde05977b3631167028862bE2a173976CA11 |