Fees & Gas
Read the relay fee policy and see who pays gas for each funding and payment path.
Protocol and relay charges#
The fee specification separates principal, relay service fees, gas and Fuyu Earn yield fees. Deposits have no protocol fee on principal. A relay may sponsor private sends and related operations, while public-amount operations can use its published service and gas schedule.
Quote against the policy published by the selected runtime. Development prices and sponsorship apply to that configuration; do not hard-code them for another deployment.
Calculate the fee in the client#
The app downloads the full schedule and calculates fees locally. This avoids revealing the private asset through an individual price request. The spend authorizes its fee and payee, so another submitter cannot redirect the payment.
Calculate in token base units with integer arithmetic. The fee conversion rounds required amounts upward as described in the published policy.
Who pays gas?#
| Path | Gas payer |
|---|---|
| Direct deposit from a wallet | The funding wallet |
| Relayed private operation | The relay hot wallet, under its sponsorship or fee policy |
| Ordinary external transfer to a Portal | The external wallet or exchange |
| Sponsored Portal setup and collection | The service operator |
| Permissionless completion from your wallet | Your submitting wallet |
| Direct recovery or withdrawal | Your submitting wallet |
If the relay schedule changes#
A saved proof can have a fee below a new relay schedule. The relay may refuse it even while the Pool could still execute that authorization. Check current relay acceptance before retrying.
Keep the saved authorization and reconcile its state first. Do not silently create a higher-fee proof from the same inputs while the original could execute.