Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Visual

Functionality

Profile Look-up

FCH Not Found

  • Collect

    • FIO Crypto Handle

  • Validate

    • FIO Crypto Handle

  • Display

    • Links

      • Look It Up

        • On click

          • Validate FCH

          • Display

Profile - Payments

Profile -

Payment Details

  • Display

    • Elements as defined on Profile - Payments Page

    • Disclaimer - only show if token_code and chain_code are not the same

    • FIO Crypto Handle

    • Public address as obtained from /get_pub_address

    • Public address QR code

    • Links

      • X

        • On click

          • Close pop-up

      • Copy

        • On click

          • Copy public address to clipboard

Profile - NFT Signatures

Empty State

Image Added

  • Display

    • FIO Crypto Handle

    • NFT Signatures option

    • Links

      • Look One Up

        • On click

          • Display Profile Look-up Page

      • NFT Image

        • On click

          • Display NFT Signature Details Page

      • Profile tabs

        • Payments

          • On click display Profile - Payments Page

        • NFT Signatures

          • On click display Profile - NFT Signatures Page

        • Socials

          • On click display Profile - Socials Page

NFT Signature Details

Image Added

Image Altered

Image Added

Image not Available

Image Added

Multiple Signatures

Image Added

  • Display

    • FIO Crypto Handle

    • Elements

      • See NFT Metadata

        • Show element and header only if element available

    • Links

      • X

        • On click

          • Close pop-up

      • View NFT - show if External URL available

        • On click

          • Open External URL in New Tab

Profile - Socials

Image Added

Empty State

Image Added

  • Display

    • FIO Crypto Handle

    • Social links

      • Obtained from /get_nfts_fio_address and using chain_code: SOCIALS and the following token_codes:

        • DISCORD

          • Url

            • https://discordapp.com/users/username

        • FACEBOOK

          • Url

            • https://facebook.com/username

        • INSTAGRAM

          • Url

            • https://instagram.com/username

        • LINKEDIN

          • Url

            • https://www.linkedin.com/in/username

        • REDDIT

          • Url

            • https://www.reddit.com/user/username

        • TWITTER

          • Url

            • https://twitter.com/username

        • TELEGRAM

          • Url

            • https://t.me/username

        • WHATSUP

          • Url

            • https://wa.me/username

    • Links

      • Look One Up

        • On click

          • Display Profile Look-up Page

      • Social Handle Tile

        • On click

          • Open url in New Tab

      • Profile tabs

        • Payments

          • On click display Profile - Payments Page

        • NFT Signatures

          • On click display Profile - NFT Signatures Page

        • Socials

          • On click display Profile - Socials Page

...

Requirement

Details

Token wildcard

  • It’s possible that token_id returned is a wildcard (“*”). If so no metadata is returned and “Multiple Signatures” variant is shown.

Fetching NFT Metadata

  • Get data from both

    • /get_nfts_fio_address

    • Infura NFT API spec

Combine Metadata

  • From /get_nfts_fio_address

    • NFT Hash

    • Creator URL

  • From Infura NFT API

    • NFT Name

    • NFT Description

    • External URL

  • Conditional

    • NFT Image

      • hostname rewrite

        • If NFT Image hostname is ipfs.infura.io change to fio.infura-ipfs.io

      • Source priority

        • Use if present in /get_nfts_fio_address and is image

        • Else

        • Use if present in Infura NFT API and is image

        • Else

        • Show “No image” variant

Imaged Altered banner

  • If image is present and hash is available, hash the image using SHA-256 and compare to hash from FIO API:

    • If same

      • Display “Image Not Altered Since Signed”

    • If not same

      • Display “Image Altered Since Signed”

    • Otherwise do not display any banner

FIO API spec

Requirement

Details

API spec

https://developers.fioprotocol.io/pages/api/fio-api/#post-/get_nfts_fio_address

Request Parameters

  • fio_address - FCH of profile

  • limit - 100

  • offset - 0

Response

  • url - NFT Image

  • hash - NFT Hash

  • metadatacreator_url - Creator URL

  • more - If more > 0 submit another request with offset set to total number of results returned

...