Get the details of an NFT item.
{
"contract": {
"source": {
"main": "//...",
"imports": {
@opengsn/contracts/src/BaseRelayRecipient.sol: "..."
@opengsn/contracts/src/interfaces/IRelayRecipient.sol: "..."
@openzeppelin/contracts/access/AccessControl.sol: "..."
@openzeppelin/contracts/access/IAccessControl.sol: "..."
@openzeppelin/contracts/token/ERC721/ERC721.sol: "..."
@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol: "..."
@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol: "..."
@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol: "..."
@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol: "..."
@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol: "..."
@openzeppelin/contracts/utils/Address.sol: "..."
@openzeppelin/contracts/utils/Context.sol: "..."
@openzeppelin/contracts/utils/Strings.sol: "..."
}
},
"abi": "[{...}, {...}, {...}, ...]",
"bytecode": "0x..."
}
}
curl --request GET \
--url https://api.playfix.io/nft/<nft_collection_name>/contract \
--header 'Authorization: Bearer <your_access_token>'
import requests
r = requests.get(
"https://api.playfix.io/nft/<nft_collection_name>",
headers = {
"Authorization": "Bearer <your_access_token>"
}
)
print(r.text)
{
"contract": {
"source": {
"main": "//...",
"imports": {
@opengsn/contracts/src/BaseRelayRecipient.sol: "..."
@opengsn/contracts/src/interfaces/IRelayRecipient.sol: "..."
@openzeppelin/contracts/access/AccessControl.sol: "..."
@openzeppelin/contracts/access/IAccessControl.sol: "..."
@openzeppelin/contracts/token/ERC721/ERC721.sol: "..."
@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol: "..."
@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol: "..."
@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol: "..."
@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol: "..."
@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol: "..."
@openzeppelin/contracts/utils/Address.sol: "..."
@openzeppelin/contracts/utils/Context.sol: "..."
@openzeppelin/contracts/utils/Strings.sol: "..."
}
},
"abi": "[{...}, {...}, {...}, ...]",
"bytecode": "0x..."
}
}
The response is identical to the response from generating the NFT contract.