Page Spec
Item | Content |
---|---|
Page URL | /discover/fio-chain/fees |
Page Title | FIO Protocol - FIO Chain - Fees |
Design | https://www.figma.com/file/n33HwJfIuwy068A7G0Bdpg/FIO-Website?type=design&node-id=517-3976 |
Section Content
Current fees
...
Type | Transaction | Action | Amount in FIO Tokens | ||
---|---|---|---|---|---|
FIO Token | Transfer FIO Tokens | trnsfiopubky | 10 FIO ($0.25) | ||
Transfer locked FIO Tokens | trnsloctoks | 10 FIO ($0.25) | |||
FIO Handle | Register new FIO Handle | regaddress | 10 FIO ($0.25) | ||
Add bundled transactions | addbundles | 10 FIO ($0.25) | |||
Transfer FIO Handle ownership | xferaddress | 10 FIO ($0.25) | |||
FIO Domain | Register new FIO Domain | regdomain | 10 FIO ($0.25) | ||
Renew FIO Domain | renewdomain | 10 FIO ($0.25) | |||
Make FIO Domain public | setdomainpub | 10 FIO ($0.25) | |||
Transfer FIO Domain ownership | xferdomain | 10 FIO ($0.25) | |||
Wrapping | Wrap FIO Tokens | wraptokens | 10 FIO ($0.25) | ||
Wrap FIO Domain | wrapdomain | 10 FIO ($0.25) | |||
Governance | Register as a proxy | regproxy | 10 FIO ($0.25) | ||
Unregister as a proxy | unregproxy | 10 FIO ($0.25) | |||
Register as a Block Producer | regproducer | 10 FIO ($0.25) | |||
Unregister as a Block Producer | unregprod | 10 FIO ($0.25) | |||
Block Production | Set fee ratios | setfeevote | 10 FIO ($0.25) | ||
Set fee multiplier | setfeemult | 10 FIO ($0.25) | |||
Compute fees | computefees | 10 FIO ($0.25) | |||
Set bundled transaction count | bundlevote | 10 FIO ($0.25) | |||
Pay rewards to TPIDs | tpidclaim | 10 FIO ($0.25) | |||
Claim BP rewards | bpclaim | 10 FIO ($0.25) | |||
Burn expired FIO Handles and FIO Domains | burnexpired | 10 FIO ($0.25) | |||
Advanced | msig_propose | propose | 10 FIO ($0.25) | ||
msig_approve | approve | 10 FIO ($0.25) | |||
msig_unapprove | unapprove | 10 FIO ($0.25) | |||
msig_cancel | cancel | 10 FIO ($0.25) | |||
msig_exec | exec | 10 FIO ($0.25) | |||
msig_invalidate | invalidate | 10 FIO ($0.25) | |||
auth_delete | deleteauth | 10 FIO ($0.25) | |||
auth_link | linkauth | 10 FIO ($0.25) | |||
auth_unlink | unlinkauth | 10 FIO ($0.25) | auth_update | updateauth | 10 FIO ($0.25) |
...
Every FIO Handle comes bundled with gas-free transactions.
The number is set by the Block Producers and is currently 100.
Most commonly used FIO Chain interactions can be gas-free and typically use up 1 or 2 bundled transactions. This means every FIO Handle owner has between 50 and 100 free FIO Chain interactions before they have to either pay for more bundled transaction or pay the gas fee.
Third Party Payment of Fees
Certain FIO Chain transactions relating to FIO Handles and Domains can be paid for by a third party.
Specifically, anyone can register a FIO Handle or Domain for someone else, add Bundled Transaction, or renew a FIO Domain even if they do not own it.
This allows for a much smoother user experience, where the user does not need to acquire FIO Tokens to be able to execute these transactions, but can, for example, pay someone with a credit card.
Fee Setting
FIO Chain fees are set by Block Producers (BPs) and are intended to reflect market forces and costs of running block producing infrastructure. To accommodate this:
...
Although most fees are distributed within the same day, the block producer share of FIO Handle and FIO Domain registration/renewal fees are paid out over 365 days to properly incentivize block producers which will be processing bundled transactions over the full validity period.
Dynamic Content
Fee amounts are dynamically set as follows
The above content should be static except for the fee amount column.
Initially set to N/A, before update runs to avoid showing incorrect fees in case fetch fails.
Run Get Fees (see below)
Match the fee based on end_point
Compute USD price
Run Get FIO Token price
Get Fees
Request
Endpoint
Code Block |
---|
POST https://fio.blockpane.com/v1/chain/get_table_rows |
Body
Code Block | ||
---|---|---|
| ||
{ "json": true, "code": "fio.fee", "scope": "fio. |
...
Graphics
...
fee",
"table": "fiofees",
"limit": "1000",
"reverse": false
} |
Response
rows
array multiple of
Code Block | ||
---|---|---|
| ||
{
"fee_id": 0,
"end_point": "register_fio_domain",
"end_point_hash": "0xe7961b95f481a901b3bfa23b800c8fb3",
"type": 0,
"suf_amount": 1720000000000,
"votes_pending": 1
} |
end_point
is the matching string
suf_amount
/ 1000000000 is the fee amount in FIO, show 2 decimal points
Get FIO Token price
Request
Endpoint
Code Block |
---|
https://api.coingecko.com/api/v3/simple/price?ids=fio-protocol&vs_currencies=USD |
Response
Code Block | ||
---|---|---|
| ||
{
"fio-protocol": {
"usd": 0.02060172
}
} |
Fee in USD is suf_amount
/ 1000000000 * usd