Sending fees
You have the option to charge sending fees, on top of any estimated network fees, for facilitating transfers. Each asset you support can have a different fee structure and you can specify both fixed and variable fees per asset. The fee amount is added on top of the quote that is generated after the ILP rate probe completes. You can define sending fees through the Backend Admin API or the Rafiki Admin application.
Set sending fees
mutation SetFee($input: SetFeeInput!) { setFee(input: $input) { code success message fee { id assetId type fixed basisPoints createdAt } }}
For this example, let’s assume your asset scale is 2. You’ll charge a fixed fee of 100 ($1.00) and a variable fee of 100 (1%).
{ "input": { "assetId": "14863f6f-4bda-42ef-8715-bf4762898af8", "type": "SENDING", "fee": { "fixed": 100, "basisPoints": 100 } }}
For more information about this mutation’s input object, see SetFeeInput
.
{ "data": { "setFee": { "code": "200", "success": true, "message": "Fee set", "fee": { "id": "140fd9c0-8f14-4850-9724-102f04d97e69", "assetId": "14863f6f-4bda-42ef-8715-bf4762898af8", "type": "SENDING", "fixed": "100", "basisPoints": 100, "createdAt": "2023-09-13T14:59:53.435Z" } } }}