The FIO Wrapping image service is used to standardize the image returned for FIO Domains that have been wrapped as NFTs on another protocol such as Ethereum or Polygon. The URL for the image is auto-generated using the FIO Wrapping URI service which returns JSON associated with a Wrapped FIO Domain.
This service takes as an input a URL with a domain name passed as a parameter. In this example "sampledomain" is being passed in.
https://metadata.fioprotocol.io/nftimage/sampledomain.svg
It returns a dynamically generated .svg image with the FIO logo and the name of the wrapped FIO Domain.
Requires nodejs.
git clone https://github.com/fioprotocol/fio-wrap-image
cd fio-wrap-image
npm install
To run locally, first start the service. It will run on port 3010:
npm run dev
Next, call the local service with an example domain:
http://localhost:3010/nftimage/sampledomain.svg