Collections
List of NFT Base Collections API Endpoints.
get
https://explorer.protokol.sh/api/nft/collections
/collections
Curl
Typescript
curl https://explorer.protokol.sh/api/nft/collections
const response = connection.NFTBaseApi("collections").all();
>>> Promise<ApiResponseWithPagination<CollectionsResource[]>>
get
https://explorer.protokol.sh/api/nft/collections/:id
/collections/:id
Curl
Typescript
curl https://explorer.protokol.sh/api/nft/collections/a6ebed9672c970f4eeb4387321806e5eb478d9609b5d67401ecbb32fde759425
const response = connection.NFTBaseApi("collections").get("VALID_ID");
>>> Promise<ApiResponse<CollectionsResource>>
get
https://explorer.protokol.sh/api/nft/collections/:id/schema
/collections/:id/schema
Curl
Typescript
curl https://explorer.protokol.sh/api/nft/collections/a6ebed9672c970f4eeb4387321806e5eb478d9609b5d67401ecbb32fde759425/schema
const response = connection.NFTBaseApi("collections").getSchema("VALID_ID");
>>> Promise<ApiResponse<Schema>>
get
https://explorer.protokol.sh/api/nft/collections/:id/wallets
/collections/:id/wallets
Curl
Typescript
curl https://explorer.protokol.sh/api/nft/collections/a6ebed9672c970f4eeb4387321806e5eb478d9609b5d67401ecbb32fde759425/wallets
const response = connection.NFTBaseApi("collections").wallet("VALID_ID");
>>> Promise<ApiResponse<CollectionsWallet>>
post
https://explorer.protokol.sh/api/nft/collections/search
/collections/search
Curl
Typescript
curl --request POST \
--url https://explorer.protokol.sh/api/nft/collections/search \
--header 'content-type: application/json' \
--data '{"jsonSchema": {"name": "AREX Defense Handguns"}'
const response = connection.NFTBaseApi("collections").searchByCollections({
jsonSchema: {
"VALID_JSON_OBJECT"
},
});
>>> Promise<ApiResponseWithPagination<CollectionsResource[]>>
get
https://explorer.protokol.sh/api/nft/collections/:id/assets
/collections/:id/assets
Curl
Second Tab
curl https://explorer.protokol.sh/api/nft/collections/a6ebed9672c970f4eeb4387321806e5eb478d9609b5d67401ecbb32fde759425/assets
const response = connection.NFTBaseApi("collections").assetByCollectionId("VALID_ID");
>>> Promise<ApiResponseWithPagination<CollectionsAsset[]>>
Last modified 1yr ago