Skip to main content
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.
Fees are not refundable once sent out to the beneficiary fee wallets. Fees are sent out the moment the sender wallet is debited, not when the offramp transaction completes.

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.
All fees are added on top of the offramp amount and credited to the beneficiary wallet in stablecoin.

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
When the offramp is created, a total of 105.2 USDC (100 + 100 × 0.002 + 5) will be debited from the sender’s wallet. After settlement:
  • 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 the developerFee 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

amountIncludeDeveloperFee will be the total amount that’s debited from the sender user’s wallet.
Once the quote looks right, accept it to execute the transfer:
For detailed field documentation, see Create an Offramp.

Getting Help

  • 📧 Email: support@hifi.com
  • 💬 Slack: Message us in our shared Slack channel