Retrieve an NFT
This endpoint allows you to retrieve a NFT by providing their mint address.
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
mintAddressstringRequiredExample:
Address for the NFT's or token's mint account
EBeLw5jEdrEgDe17BdKGW2MizzGxtxigEuAGvYC7VzDpPattern: ^[A-HJ-NP-Za-km-z1-9]*$Responses
200
Returns an NFT
application/json
namestringRequiredExample:
Name stored as on-chain metadata
NFT #1symbolstringOptionalExample:
Symbol stored as on-chain metadata
NFTdescriptionstringOptionalExample:
Description stored in the metadata
This is my first NFTimagestringRequiredExample:
Image URL for your NFT
https://example.com/image.pnganimationUrlstringOptionalExample:
Animation URL for your NFT
https://example.com/animation.mp4idnumberRequired
Unique ID for an NFT in a Project
projectIdnumberOptional
The ID of the Project the NFT is part of
transferablebooleanOptional
Whether or not the NFT can be transferred based on the Project its a part of
mintAddressstringRequiredExample:
Address for the NFT's or token's mint account
EBeLw5jEdrEgDe17BdKGW2MizzGxtxigEuAGvYC7VzDpPattern: ^[A-HJ-NP-Za-km-z1-9]*$ownerAddressstringOptionalExample:
Wallet addres for the NFT's owner
EBeLw5jEdrEgDe17BdKGW2MizzGxtxigEuAGvYC7VzDpPattern: ^[A-HJ-NP-Za-km-z1-9]*$claimerAddressstringOptionalExample:
Wallet address allowed to claim the NFT
EBeLw5jEdrEgDe17BdKGW2MizzGxtxigEuAGvYC7VzDpPattern: ^[A-HJ-NP-Za-km-z1-9]*$statusstringRequired
403
Forbidden
application/json
404
Not Found
application/json
get
/v1/nfts/:mintAddressExample
curl "https://api.underdogprotocol.com/v1/nfts/7eYfyPfnGzxp8A9TrQJEpKwVCC8nP9viHRRGJ89WzFJB" \
-H "Authorization: Bearer {token}"import axios from 'axios';
const mintAddress = '7eYfyPfnGzxp8A9TrQJEpKwVCC8nP9viHRRGJ89WzFJB';
const getNft = async () => {
try {
const response = await axios.get(`https://api.underdogprotocol.com/v1/nfts/${mintAddress}`, {
headers: {
'Authorization': `Bearer ${token}`
}
});
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Last updated