Learn about Decibel’s technical architecture and how builders can leverage the platform
Builder codes allow you to earn fees when users execute transactions through your application. When placing orders or executing other transactions, you can specify a builder address and fee to receive a portion of the transaction fees.
User Approval Required: Users must approve the maximum builder fee before your application can collect fees. This is a security measure to prevent unauthorized fee collection.
Seven projects are already building on Decibel with Builder Codes. Some bring new ways to trade: Copin lets you discover and copy top perp traders, Samosa puts perps in Telegram, and PulseTrader delivers backtested quant signals you can execute in one click. Others extend what’s possible: Panora aggregates liquidity across Aptos, RNDM deploys AI agents that run autonomous DeFi strategies, Moar provides up to 15x composable leverage, and Tapp adds programmable hooks to the trading stack. See the full ecosystem spotlight for details.
Before users can pay builder fees, they need to approve a maximum builder fee amount. This is a one-time approval that allows your application to collect fees up to the approved limit:
Copy
Ask AI
await dex.approveMaxBuilderFee({ builderAddr: builderAddress, // Builder's address (64 characters, padded with zeros) maxFee: maxBuilderFeeBps, // Maximum fee in basis points (e.g., 10 = 0.1%)});
Parameters:
builderAddr: The address of the builder that should receive the fee. Must be a 64-character hex string (pad with leading zeros after 0x).
maxFee: The maximum fee in basis points (1 basis point = 0.01%). For example: