Skip to content

fioprotocol/fio-wrap-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fio-wrap-image

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.

Installation

Requires nodejs.

git clone https://github.com/fioprotocol/fio-wrap-image
cd fio-wrap-image
npm install

Testing

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