Mint NFTs on iPhone

How to use the Underdog API to mint your iPhone photos as an NFT

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.


Getting Started

There are three parts to creating an NFT with Apple Shortcuts:

  1. Generating an image URL for your photo

  2. Prompting a name for your NFT

  3. Passing the data to the Underdog API

Generating an Image URL

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.

Prompting a Name for your NFT

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.

Creating an NFT with the Underdog API

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.

Further Reading

pageCreate an NFT

Last updated