Frontend Development Overview
CommissionRoad offers multiple ways to integrate commissions into your dApp, catering to different complexity needs and use cases.
Integration Methods
| Method | Best For | Key Feature |
|---|---|---|
| Standard Calls | Simple interactions (Swap, Deposit) | Easiest to implement. Works for 90% of use cases. |
| Weiroll VM | Complex, multi-step transactions | Chain outputs to inputs (e.g. Swap result -> Lending Deposit). |
| EIP-7702 | Gasless / Relayer flows | User "becomes" the executor. No approvals needed. |
Which one should I choose?
- Start with Standard Calls. It handles the basics: executing a transaction and collecting a fee.
- If you find yourself needing to know the exact output amount of a swap to construct the next transaction data before the transaction is mined, you need Weiroll.
- If you are building a wallet or an advanced "Smart Account" experience where you want to sponsor gas usage or avoid
approve()transactions entirely, look at EIP-7702.