Get a Wallet's Profile Picture
Use the functionality below to fetch a wallet's profile picture in order to display it on your own protocol's front-end.
Params
connection
- RPC connection objectpublicKey
- The public key of the walletconfig
(optional)fallback
- Boolean, use a fallback generated image (defaulttrue
)resize
- Object with Cloudflare image resize params (default{ widht: 100 }
)
fallback
- Boolean, use a fallback generated image (defaulttrue
)
Return value
Object with the following fields:
isAvailable
- Boolean,true
if there is a profile picture for the given walleturl
- The URL of the profile image, is always populated (either a fallback image or an empty-image icon), you can choose to ignore it ifisAvailable
is falsename
- NFT name (only ifisAvailable: true
)metadata
- NFT metadata object (only ifisAvailable: true
)tokenAccount
- The public key of the token account that holds the NFT (only ifisAvailable: true
)mintAccount
- The public key of the NFT's mint (only ifisAvailable: true
)
Last updated