Transaction fee API
API reference for configuring transaction-fee rates, recipient updates, rate freezes, and collection reads through DALP token-feature routes.
After a token has the transaction-fee feature attached, API callers can update rates, change the fee recipient, freeze future rate changes, and read collection history through token feature routes.
For the fee calculation model and feature invariants, see Transaction Fee architecture. For operator steps in the Console, see configure and operate transaction fee.
transaction-fee is mutually exclusive with transaction-fee-accounting. Use transaction-fee when the asset should deduct the fee on chain in the asset's own units.
Configuration during token creation
{
"transaction-fee": {
"mintFeeBps": 100,
"burnFeeBps": 100,
"transferFeeBps": 50,
"recipient": "0x..."
}
}| Parameter | Type | Required | Description |
|---|---|---|---|
mintFeeBps | Integer | Yes | Mint fee in basis points. Zero suppresses mint-fee collection. |
burnFeeBps | Integer | Yes | Burn fee in basis points. |
transferFeeBps | Integer | Yes | Holder-initiated transfer fee in basis points. |
recipient | Ethereum address | Yes | Wallet that receives collected fees in the asset's own units. |
Behaviour
The platform deducts the fee from the operation amount before crediting the holder. A 100-unit mint with mintFeeBps: 100 credits 99 units to the holder and 1 unit to recipient.
Updating parameters
All transaction-fee mutations execute through the transaction queue. The caller needs the token permission for the action, wallet verification, and an attached transaction-fee feature on the target token.
Set fee rates
PATCH /api/v2/tokens/{tokenAddress}/features/transaction-fee/rates{
"mintFeeBps": 100,
"burnFeeBps": 100,
"transferFeeBps": 25
}Set fee recipient
PATCH /api/v2/tokens/{tokenAddress}/features/transaction-fee/recipient{
"feeRecipient": "0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
}Freeze fee rates
POST /api/v2/tokens/{tokenAddress}/features/transaction-fee/rate-freezesThe freeze route has no transaction-fee-specific body fields beyond the token address path parameter. User-authenticated requests still include the wallet verification body required by token mutations. After the freeze succeeds, later rate updates fail with the token fee rates frozen error.
Reading collected fees
GET /api/v2/tokens/{tokenAddress}/transaction-fee/collectionsThe collection read returns paginated transaction-fee rows. Use it for dashboards, reconciliation jobs, and audit exports instead of scanning token events directly.
Response model
Each mutation returns the standard queued blockchain mutation response for the token. The response includes the queued transaction status link for the submitted transaction-fee operation.
Related
- Transaction Fee architecture explains the calculation model and invariants.
- Configure and operate transaction fee covers Console operator steps.
- transaction-fee-accounting is the mutually exclusive accounting-only variant.
- Feature constraints
AUM Fee API reference
API reference for configuring AUM Fee, reading accrued estimates, collecting fees, freezing the rate, and listing collection events.
Transaction fee accounting API reference
Reference for the transaction-fee-accounting API routes that configure rates, recipients, reconciliation, exemptions, and accrual reads.