Looking to charge fees for offramps? Visit Developer Fees for more details.
How Settlement Rules Work
- Create settlement rule – Define fee calculation methods and destination wallets
- Apply to virtual account – Associate the rule with a user’s virtual account
- Automatic distribution – Fees are automatically calculated and distributed on each transaction
Rule Configuration
Settlement rules support two calculation models that can be combined:- Fixed: Apply a single rate or value to all transactions
- Tiered: Apply different rates or values based on transaction amount ranges
Create Settlement Rule
Multiple rules can be applied to a single settlement rule configuration. The rules are processed in the order they are defined.
Response Structure
When you create a settlement rule, the API response includes detailed information about the rule configuration:Rule Types
Settlement rules support two calculation models that can be combined to create flexible fee structures:Fixed Calculation with Fixed Value
Fixed Calculation with Fixed Value
Charge a flat fee amount per transaction regardless of transaction size.
Fixed Calculation with Percentage
Fixed Calculation with Percentage
Charge a percentage of the transaction amount using a single rate.
Tiered Calculation with Percentage
Tiered Calculation with Percentage
Charge a percentage using different rates based on transaction amount ranges. Useful for volume-based pricing.
For tiered rules, leave
min empty for the first tier and max empty for the last tier to create open-ended ranges.Apply Rule to Virtual Account
After creating a settlement rule, associate it with a specific user’s virtual account:Settlement rules must be created on the same blockchain network as the virtual account’s destination chain. For example, a virtual account configured for POLYGON can only use settlement rules created on POLYGON.
Fee Distribution
When a transaction is processed through a virtual account with settlement rules:- The transaction amount is received through the virtual account
- Fees are automatically deducted from the transaction
- The remaining amount is sent to the virtual account’s destination wallet
- Fee payments are sent to the specified wallet addresses