Skip to main content

Prerequisites

  • The TypeScript project.
  • One wallet per chain family you refer on. The share is paid on the source chain.

Script

src/earn-referral-fees.ts

Notes

  • Both fields or neither. referralBps is 0 to 15. Your share on one transfer is capped at $10.
  • The share is paid in the same signature as the bridge: an instruction inside the Solana transaction, or the fee step beside the EVM call. Nothing is forwarded later.
  • Your share is taken even on a transfer Bridg itself charges nothing for. fees.referral is null only when no referrer was named.
  • Fee status moves offeredexpectedsettled, or void on a refund or failure. See Referrals.

Endpoints used