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 offramp transactions.
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.
3
Fee settlement
After the offramp is processed, fees are credited to the specified beneficiary wallets in stablecoin.
Supported Rails
Developer fees are currently supported for USD offramps only. Additional currencies and payment rails—including global fiat currencies and non-USD transfer methods—will be supported soon. Stay tuned for updates!
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 transaction to automatically calculate and distribute fees.
Request
Array of fee configurations to be applied. Each fee object requires:
Response
Total amount debited from the source wallet, including the offramp amount and all developer fees.
Developer fee details including calculated amounts for each fee.
For detailed field documentation, see the Create Offramp API reference.
Key Concepts
Fee Models
Fee Models
HIFI supports two fee calculation models:Percentage Fees:
- Calculated as a percentage of the offramp amount
- Specified as a decimal value (e.g.,
"0.002"for 0.2% or 20 basis points) - Example: 0.2% of 100 USDC = 0.2 USDC
- Fixed amount regardless of transaction size
- Specified as a string value (e.g.,
"5"for 5 USDC) - Example: 5 USDC flat fee
Fee Distribution
Fee Distribution
Developer fees work as follows:
- Total debit: The source wallet is debited for the offramp amount plus all fees
- Offramp processing: The offramp amount is converted to fiat and sent to the bank account
- Fee distribution: Each fee is credited to its specified beneficiary wallet in stablecoin
amountIncludeDeveloperFee field in the response shows the total amount debited, helping you calculate the exact amount needed in the source wallet.Multiple Beneficiaries
Multiple Beneficiaries
You can distribute fees to up to 10 different beneficiary wallets in a single transaction:Fees are distributed in the order they are specified in the array.
Fee Tracking
Fee Tracking
Each developer fee has:
- id: Unique identifier for the fee instance
- transactionHash: Blockchain transaction hash for fee distribution (available after fees are sent)
- fees[].amount: Calculated fee amount that will be credited
Getting Help
- 📧 Email: support@hifibridge.com
- 💬 Slack: Message us in our shared Slack channel
Related Resources
- Offramps - Complete guide to creating offramp transactions
- Settlement Rules - Fee calculation for virtual accounts
- API Reference - Complete endpoint documentation