Mint NFTs on iPhone
How to use the Underdog API to mint your iPhone photos as an NFT
Last updated
How to use the Underdog API to mint your iPhone photos as an NFT
Last updated
With the Underdog API, you can make it seamless to mint NFTs on your phone. Using Apple Shortcuts, you can select a photo you can turn into an NFT without buying Solana. If you'd like to test the final version of the Apple Shortcut, you can add it to your phone below.
There are three parts to creating an NFT with Apple Shortcuts:
Generating an image URL for your photo
Prompting a name for your NFT
Passing the data to the Underdog API
The Underdog API expects an image URL to be passed into API. The easiest way to get an image URL for a photo on your phone is to upload it to Imgur.
Imgur expects a JPEG or PNG (photos on your phone are stored as HEIC). You'll also need to toggle the settings to Upload Anonymously and get the Direct Link after the Shortcut step completes.
You can now prompt for user input to name the NFT for your uploaded image. This will give us all the variables we need to create an NFT.
We'll now POST to the NFT endpoint the name and image URL from the previous steps. Note that you'll an Underdog API Key for this to work which you can generate on our dashboard.
The API request will return the mint address (i.e. the unique identifier for the NFT) which you can then use to view on a block explorer like SolScan.