Developer fees work for offramp transactions. Looking to charge fees for Virtual Accounts? Try Settlement Rules.
How Developer Fees Work
1
Define fees and beneficiary
Specify the fee calculation method and destination wallets by including the developer fee when creating an offramp.
2
Automatic distribution
Fees are automatically calculated and distributed during the offramp process. The total amount (offramp amount + fees) is debited from the source wallet.
Fee Models
HIFI currently supports two types of fee models:- Percentage: The fee is calculated based on the amount being converted into fiat.
- Flat: The fee is charged as a fixed amount, regardless of the amount being converted into fiat.
Fee Calculation Example
An offramp transaction with an amount of 100 USDC and two developer fees:- 20 bps (0.002) as a percentage, credited to Beneficiary Wallet A
- 5 USDC as a flat fee, credited to Beneficiary Wallet B
- 100 USDC will be converted into fiat and sent to the recipient’s bank account
- 0.2 USDC will be delivered to Wallet A
- 5 USDC will be delivered to Wallet B
Applying Developer Fees
Include thedeveloperFee field when creating an offramp to automatically calculate and distribute fees. Like other v3 Offramps, this follows a quote-then-accept flow: creating the offramp locks in a quote, and a separate call accepts it to execute the transfer.
Request
Response
For detailed field documentation, see Create an Offramp.
Getting Help
- 📧 Email: support@hifi.com
- 💬 Slack: Message us in our shared Slack channel
Related Resources
- Offramps - Complete guide to creating offramp transactions
- Create an Offramp - Complete endpoint documentation