Page Spec
Item | Content |
---|---|
Page URL | /fio-chain/overview |
Page Title | FIO Protocol - FIO Chain Overview |
Design | https://www.figma.com/file/n33HwJfIuwy068A7G0Bdpg/FIO-Website?type=design&node-id=576-5607 |
Section Content
FIO Chain Live!
...
When user clicks Search or hits enter redirect to the following url (same tab) based on content in this order:
Content format | Redirect Url |
---|---|
String longer than 64 characters | |
Regex: | |
Regex: | |
Regex: |
Dynamic Content
On initial load show “Waiting for data” (see Figma) before data is populated from APIs
This content needs to refresh every 3 seconds
Show max 5 transactions and then start replacing the older ones
Content element | Endpoint | Request | Response | ||
---|---|---|---|---|---|
Latest Block Producer | N/A | Use
|
Always same
Code Block |
---|
{
"json": true,
"code": "eosio",
"scope": "eosio",
"table": "producers"
} |
Iterate through rows until you find
owner
which matches Last Block Producer account name from step aboveUse:
fio_address
as Block Producer Nameurl
as Base URL to use in next step
Code Block |
---|
{
"rows": [
{
"id": 0,
"owner": "dacobcm2lnnc",
"fio_address": "bp@thedac",
"addresshash": "0x44ddade5cd4acba595ea2a42c23414b2",
"total_votes": "298659819248324224.00000000000000000",
"producer_public_key": "FIO8UxsfvX6QpjukrFqbaUMtT7WfeiXZRE26F4ATAwYjwZacUACNw",
"is_active": 1,
"url": "https://eosdac.io",
"unpaid_blocks": 0,
"last_claim_time": "2023-04-24T18:27:32.500",
"last_bpclaim": 1682433093,
"location": 10
},
]
} |
GET BASE URL
/bp.json
N/A
Use:
org
→website
as Website URLorg
→branding
→logo_svg
as LogoIf image fails to load use generic “block” icon same as next to Last Block
org
→location
→country
as CountryFor flag use https://www.countryflagicons.com/FLAT/32/DE.png where DE is Country
org
→social
→twitter
as Twitter URLDo not show icon if not present
org
→social
→telegram
as Telegram URLDo not show icon if not present
language | json |
---|
N/A |
| |||||||||
Latest Block | N/A | Use
| ||||||||
Transactions | Use
| Iterate through
Make entire transaction id in list and overlay link to: https://fio.bloks.io/transaction/Transaction ID
|
Benefits and Innovations
Links will be added later