GUM Docs
Developer portal

Universal Swap & Bridge

Earn fees

Preview an app fee, customize rates by token pair, and see how your share is credited and settled in USDC.

No account or API key is needed. On an API deployment with self-serve fees enabled, add your payout address as fee.recipient to earn 80% of the app fee on eligible, delivered transfers. Track earnings and change rates on the dashboard.

Your fees are settled automatically and periodically in USDC: on Solana for a Solana address, on Base for an EVM address.

Start in one step

JavaScript
const response = await fetch('https://bridge-api.gum.ag/api/bridge/v2/quotes', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    from: { chain: 'solana:mainnet', token: 'native' },
    to: { chain: 'evm:8453', token: 'native' },
    amount: '1000000000',
    // Add sender and recipient (the user's real wallets) to get quotes you can order.
    fee: { recipient: 'YourSolanaOrEvmAddress' },
  }),
});
if (!response.ok) throw new Error(await response.text());
const { quotes, fee } = await response.json();
if (!fee) throw new Error('The API did not apply the requested app fee.');
// fee: { recipient, bps: 20, bucket: 'major', source: 'default', shareBps: 8000, routers: ['gum', 'relay', 'mayan', …] }

The published @gumag/bridge 0.1.1 does not expose quote fees or bridge.fees. Use REST for fee-enabled deployments until a release includes those helpers; check your installed SDK before copying a fee example into it.

Which routers carry your fee

With fee set, the API asks only the routers that pay the fee to GUM’s own wallets. The others aren’t quoted, so some pairs get fewer quotes, or none. Each response lists the routers it could use in fee.routers.

RouterWith your feeRoutesWhere GUM collects it
GUM Universal SwapYesEvery route it serves.Builder fee, held for GUM on Jupnet in Universal Swap’s builder account.
GUM SolverYesEvery route it serves: routes Universal Swap doesn’t reach, such as Elysium.Builder fee to GUM’s fee wallet on the source chain, in the escrow’s stablecoin.
RelayYesEvery route it serves.A USDC balance at Relay that GUM claims.
MayanSome routesSwift routes up to 200 bps, MCTP and Wormhole routes up to 50–100 bps. Plain MCTP transfers aren’t quoted.GUM’s Solana, EVM or Sui fee wallet. Fees on EVM-source Swift transfers wait in Mayan’s fee contract until GUM withdraws them.
NEAR IntentsYesKeys with NEAR Intents turned on. Users pay twice your rate there, because NEAR Intents keeps half; your share is worked out on your rate.GUM’s account inside NEAR Intents.
AcrossNoIts v1 API takes no app fee.—
deBridgeNoIts fee comes after its own fixed fee and swap, so it can’t match the rate you set.—
THORChainNoNot until GUM registers a THORChain affiliate name.—
Circle CCTPNoNo fee hook.—
Circle CCTP StandardNoNo fee hook.—
EcoNoNo fee hook.—
LayerswapNoNo fee hook.—
LI.FI IntentsNoNo fee hook.—
Bungee (Socket)NoNo fee hook.—

GUM has no fee wallet on TRON, TON, Bitcoin, the XRP Ledger or HyperCore yet. A route that would pay GUM’s fee on one of them isn’t quoted with a fee. Relay always pays GUM on an EVM chain, so Relay routes to and from these chains still carry your fee.

GUM collects every fee, credits your share once the transfer is delivered and verified, and settles it in USDC.

Orders built from these quotes carry your fee. Your dashboard shows your volume and earnings, and Activity lists each transfer with the router that carried it.

What users pay

Without a rate, the pair decides it:

PairDefault
Two dollar stablecoins at their peg (USDC to USDT, USDC to USDC)2 bps
Majors: SOL, ETH, BTC, BNB, HYPE, SUI, AVAX, POL, TRX, TON, XRP, their wraps and liquid-staking tokens, with stablecoins20 bps
Everything else50 bps

Name your own with fee.bps, 0 to 200, or save your own defaults (below). To add no integrator fee, omit fee entirely. An explicit fee.bps: 0 also disables the integrator fee and overrides saved rates, but still requires a valid fee.recipient and fee support on the API. Network and router fees still apply.

The fee is in each route’s price: amountOut already has it taken out, and appFeeBps and appFeeUsd say what that route charges. Routes that can’t carry a fee aren’t quoted. The higher the rate, the fewer routes: some routers cap app fees at 50 to 100 bps.

How you’re paid

Your share80% of every fee. GUM keeps 20%
CreditedWhen the transfer is delivered and its source is verified on chain
Settled inUSDC: on Solana to a Solana address, on Base to an EVM address
ScreeningPayout addresses are screened. A flagged address isn’t paid

Your fees are settled automatically and periodically. Use an address that can receive USDC on its chain: a smart-contract wallet that exists on another chain but not on Base (a Safe, say) can’t receive it on Base.

Check your balance

Open your dashboard and connect your payout wallet to see its volume, earnings and transfers. To look up another account, paste its Solana or EVM recipient address. To share a read-only view, use /bridge?address=YourAddress#dashboard.

From code, use GET https://bridge-api.gum.ag/api/bridge/v2/fees/{recipient}. The fee accounts reference describes totals, recent transfers, recorded settlements and the public leaderboard.

Change your defaults

Open Fee settings in your dashboard. Connect your payout wallet to sign a settings change.

Settings are optional. You can change bucket rates, add token overrides and give the account a label. Each save replaces the previous settings, so include every setting you want to keep.

For the accepted settings, exact message/signature formats and REST endpoints, see Fee accounts — authorize a change.