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.
Get the wallet's profile picture
function getProfilePicture (client: AptosClient, address: string, config: ProfilePictureConfig): Promise<ProfilePicture>Params
client- Aptos client objectaddress- The address of the walletconfig(optional)fallback- Boolean, use a fallback generated image (defaulttrue)resize- Object with Cloudflare image resize params (default{ width: 100 })
Return value
Object with the following fields:
isAvailable- Boolean,trueif 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 ifisAvailableis falsename- NFT name (only ifisAvailable: true)address- Owner addresstokenId- The NFT token identifier (only ifisAvailable: true)
Last updated