Assets
List of NFT Base Assets API Endpoints.
Last updated
List of NFT Base Assets API Endpoints.
Last updated
GET
https://explorer.protokol.sh/api/nft/assets
Returns all Assets
Name | Type | Description |
---|---|---|
{
"meta": {
"totalCountIsEstimate": true,
"count": 3,
"pageCount": 1,
"totalCount": 3,
"next": null,
"previous": null,
"self": "/nft/assets?transform=true&page=1&limit=100",
"first": "/nft/assets?transform=true&page=1&limit=100",
"last": "/nft/assets?transform=true&page=1&limit=100"
},
"data": [
{
"id": "f811518958861d4c1e72943f646b1bd848f606e6cc9bd6300480e6a0b501cf47",
"ownerPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
"senderPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
"collectionId": "8643026a0997dc9fe74ce4aa11f522ecff651fa72ecf0127a0665fd52535bc1b",
"attributes": {
"name": "AREX ALPHA",
"description": "THE AREX ALPHA IS THE NEXT EVOLUTIONARY STEP IN THE AREX HANDGUN FAMILY. IT IS A DIRECT DESCENDANT OF THE AREX ZERO 1 AND HAS INHERITED ITS TOUGHNESS AND RELIABILITY. LISTENING TO THE PRACTICAL SHOOTERS, AREX DESIGNED AND DEVELOPED A PISTOL THAT EXCELS IN COMPETITIVE PRACTICAL SHOOTING AS WELL AS IN TACTICAL SCENARIOS. WITH THE ELUSIVE AND ALL IMPORTANT SHOOTABILITY BEING AREXS PRIMARY GOAL, A STEEL FRAME WAS USED IN PLACE OF AN ALUMINUM ONE. A REENGINEERED GRIP RESULTS IN SHORTER TRIGGER REACH AND NOTABLY HIGHER HAND POSITION. AN UNDERCUT TRIGGER GUARD AND EXTENDED BEAVERTAIL COMPLETE THE ERGONOMIC TRANSFORMATION. THE LONG SLIDE HOUSES A FIVE INCH BARREL, PROVIDING A LONGER LINE OF SIGHT FOR FASTER AND MORE ACCURATE SHOTS. THE SLIDE HAS BEEN LIGHTENED SIGNIFICANTLY UTILIZING LIGHTENING CUTS TO ACCOMPLISH FASTER CYCLING.",
"serialNumber": "6789897676898976",
"caliber": "9 x 19 mm",
"length": "226 mm // 8.9 inches",
"height": "155 mm // 6.1 inches",
"width": "42 mm // 1.65 inches",
"barrelLength": "127 mm // 5.0 inches",
"weight": "1202 g // 42.3 oz",
"frameColors": "Nitrocarburized steel // Graphite black color // Blue // Red",
"slide": "Nitrocarburized steel // Graphite black color",
"slights": "Fiber optic front and fully adjustable black rear sight",
"ipfsImageHash": "QmPbvs8G1jVaH6iHBUC2W1YnwY9AhzD98ydVqnhG9KMej1"
},
"timestamp": {
"epoch": 143237168,
"unix": 1633338368,
"human": "2021-10-04T09:06:08.000Z"
}
},
...
]
}
curl https://explorer.protokol.sh/api/nft/assets
const response = connection.NFTBaseApi("assets").all();
>>> Promise<ApiResponseWithPagination<AssetsResource[]>>
GET
https://explorer.protokol.sh/api/nft/assets/:id
Returns asset by id
{
"data": {
"id": "f811518958861d4c1e72943f646b1bd848f606e6cc9bd6300480e6a0b501cf47",
"ownerPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
"senderPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
"collectionId": "8643026a0997dc9fe74ce4aa11f522ecff651fa72ecf0127a0665fd52535bc1b",
"attributes": {
"name": "AREX ALPHA",
"description": "THE AREX ALPHA IS THE NEXT EVOLUTIONARY STEP IN THE AREX HANDGUN FAMILY. IT IS A DIRECT DESCENDANT OF THE AREX ZERO 1 AND HAS INHERITED ITS TOUGHNESS AND RELIABILITY. LISTENING TO THE PRACTICAL SHOOTERS, AREX DESIGNED AND DEVELOPED A PISTOL THAT EXCELS IN COMPETITIVE PRACTICAL SHOOTING AS WELL AS IN TACTICAL SCENARIOS. WITH THE ELUSIVE AND ALL IMPORTANT SHOOTABILITY BEING AREXS PRIMARY GOAL, A STEEL FRAME WAS USED IN PLACE OF AN ALUMINUM ONE. A REENGINEERED GRIP RESULTS IN SHORTER TRIGGER REACH AND NOTABLY HIGHER HAND POSITION. AN UNDERCUT TRIGGER GUARD AND EXTENDED BEAVERTAIL COMPLETE THE ERGONOMIC TRANSFORMATION. THE LONG SLIDE HOUSES A FIVE INCH BARREL, PROVIDING A LONGER LINE OF SIGHT FOR FASTER AND MORE ACCURATE SHOTS. THE SLIDE HAS BEEN LIGHTENED SIGNIFICANTLY UTILIZING LIGHTENING CUTS TO ACCOMPLISH FASTER CYCLING.",
"serialNumber": "6789897676898976",
"caliber": "9 x 19 mm",
"length": "226 mm // 8.9 inches",
"height": "155 mm // 6.1 inches",
"width": "42 mm // 1.65 inches",
"barrelLength": "127 mm // 5.0 inches",
"weight": "1202 g // 42.3 oz",
"frameColors": "Nitrocarburized steel // Graphite black color // Blue // Red",
"slide": "Nitrocarburized steel // Graphite black color",
"slights": "Fiber optic front and fully adjustable black rear sight",
"ipfsImageHash": "QmPbvs8G1jVaH6iHBUC2W1YnwY9AhzD98ydVqnhG9KMej1"
},
"timestamp": {
"epoch": 143237168,
"unix": 1633338368,
"human": "2021-10-04T09:06:08.000Z"
}
}
}
{
"statusCode": 404,
"error": "Not Found",
"message": "Asset not found"
}
tr
curl https://explorer.protokol.sh/api/nft/assets/f811518958861d4c1e72943f646b1bd848f606e6cc9bd6300480e6a0b501cf47
const response = connection.NFTBaseApi("assets").get("VALID_ID");
>>> Promise<ApiResponse<AssetsResource>>
GET
https://explorer.protokol.sh/api/nft/assets/:id/wallets
Returns assets owner wallet
{
"data": {
"address": "AbfQq8iRSf9TFQRzQWo33dHYU7HFMS17Zd",
"publicKey": "02def27da9336e7fbf63131b8d7e5c9f45b296235db035f1f4242c507398f0f21d",
"nft": {
"collections": [],
"assetsIds": [
"aa4a880e053644fee1475616a874e6689c2dfdbca0fb0a3db5a3f091c6e07d80"
]
}
}
}
{
"statusCode": 404,
"error": "Not Found",
"message": "Asset not found or it was burned"
}
{
"statusCode": 422,
"error": "Unprocessable Entity",
"message": "\"id\" length must be 64 characters long"
}
curl https://explorer.protokol.sh/api/nft/assets/baab82791f89a7f0af9e806dd2c634c9064903e514d1053179ff03f6d3d40866/wallets
const response = connection.NFTBaseApi("assets").wallet("VALID_ID");
>>> Promise<ApiResponse<AssetsWallet>>
GET
https://explorer.protokol.sh/api/nft/assets/wallet/:id
Returns all assets a wallet owns.
{
"meta": {
"totalCountIsEstimate": false,
"count": 1,
"pageCount": 1,
"totalCount": 1,
"next": null,
"previous": null,
"self": "/nft/assets/wallet/02def27da9336e7fbf63131b8d7e5c9f45b296235db035f1f4242c507398f0f21d?transform=true&inAuction=false&inExpiredAuction=false&page=1&limit=100",
"first": "/nft/assets/wallet/02def27da9336e7fbf63131b8d7e5c9f45b296235db035f1f4242c507398f0f21d?transform=true&inAuction=false&inExpiredAuction=false&page=1&limit=100",
"last": "/nft/assets/wallet/02def27da9336e7fbf63131b8d7e5c9f45b296235db035f1f4242c507398f0f21d?transform=true&inAuction=false&inExpiredAuction=false&page=1&limit=100"
},
"data": [
{
"id": "aa4a880e053644fee1475616a874e6689c2dfdbca0fb0a3db5a3f091c6e07d80",
"ownerPublicKey": "02def27da9336e7fbf63131b8d7e5c9f45b296235db035f1f4242c507398f0f21d",
"senderPublicKey": "02def27da9336e7fbf63131b8d7e5c9f45b296235db035f1f4242c507398f0f21d",
"collectionId": "8643026a0997dc9fe74ce4aa11f522ecff651fa72ecf0127a0665fd52535bc1b",
"attributes": {
"name": "AREX ALPHA",
"description": "THE AREX ALPHA IS THE NEXT EVOLUTIONARY STEP IN THE AREX HANDGUN FAMILY. IT IS A DIRECT DESCENDANT OF THE AREX ZERO 1 AND HAS INHERITED ITS TOUGHNESS AND RELIABILITY. LISTENING TO THE PRACTICAL SHOOTERS, AREX DESIGNED AND DEVELOPED A PISTOL THAT EXCELS IN COMPETITIVE PRACTICAL SHOOTING AS WELL AS IN TACTICAL SCENARIOS. WITH THE ELUSIVE AND ALL IMPORTANT SHOOTABILITY BEING AREXS PRIMARY GOAL, A STEEL FRAME WAS USED IN PLACE OF AN ALUMINUM ONE. A REENGINEERED GRIP RESULTS IN SHORTER TRIGGER REACH AND NOTABLY HIGHER HAND POSITION. AN UNDERCUT TRIGGER GUARD AND EXTENDED BEAVERTAIL COMPLETE THE ERGONOMIC TRANSFORMATION. THE LONG SLIDE HOUSES A FIVE INCH BARREL, PROVIDING A LONGER LINE OF SIGHT FOR FASTER AND MORE ACCURATE SHOTS. THE SLIDE HAS BEEN LIGHTENED SIGNIFICANTLY UTILIZING LIGHTENING CUTS TO ACCOMPLISH FASTER CYCLING.",
"serialNumber": "6789897676898976",
"caliber": "9 x 19 mm",
"length": "226 mm // 8.9 inches",
"height": "155 mm // 6.1 inches",
"width": "42 mm // 1.65 inches",
"barrelLength": "127 mm // 5.0 inches",
"weight": "1202 g // 42.3 oz",
"frameColors": "Nitrocarburized steel // Graphite black color // Blue // Red",
"slide": "Nitrocarburized steel // Graphite black color",
"slights": "Fiber optic front and fully adjustable black rear sight",
"ipfsImageHash": "QmPbvs8G1jVaH6iHBUC2W1YnwY9AhzD98ydVqnhG9KMej1"
},
"timestamp": {
"epoch": 143238280,
"unix": 1633339480,
"human": "2021-10-04T09:24:40.000Z"
}
}
]
}
{
"statusCode": 404,
"error": "Not Found",
"message": "Wallet not found"
}
{
"statusCode": 422,
"error": "Unprocessable Entity",
"message": "\"id\" length must be 66 characters long"
}
curl https://explorer.protokol.sh/api/nft/assets/wallet/03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37
const response = connection.NFTBaseApi("assets").walletAssets("PUBLIC_KEY");
>>> Promise<ApiResponseWithPagination<AssetsResource[]>>
POST
https://explorer.protokol.sh/api/nft/assets/search
Search assets by their JSON attributes.
{
"meta": {
"totalCountIsEstimate": true,
"count": 3,
"pageCount": 1,
"totalCount": 3,
"next": null,
"previous": null,
"self": "/nft/assets/search?transform=true&page=1&limit=100",
"first": "/nft/assets/search?transform=true&page=1&limit=100",
"last": "/nft/assets/search?transform=true&page=1&limit=100"
},
"data": [
{
"id": "f811518958861d4c1e72943f646b1bd848f606e6cc9bd6300480e6a0b501cf47",
"ownerPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
"senderPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
"collectionId": "8643026a0997dc9fe74ce4aa11f522ecff651fa72ecf0127a0665fd52535bc1b",
"attributes": {
"name": "AREX ALPHA",
"description": "THE AREX ALPHA IS THE NEXT EVOLUTIONARY STEP IN THE AREX HANDGUN FAMILY. IT IS A DIRECT DESCENDANT OF THE AREX ZERO 1 AND HAS INHERITED ITS TOUGHNESS AND RELIABILITY. LISTENING TO THE PRACTICAL SHOOTERS, AREX DESIGNED AND DEVELOPED A PISTOL THAT EXCELS IN COMPETITIVE PRACTICAL SHOOTING AS WELL AS IN TACTICAL SCENARIOS. WITH THE ELUSIVE AND ALL IMPORTANT SHOOTABILITY BEING AREXS PRIMARY GOAL, A STEEL FRAME WAS USED IN PLACE OF AN ALUMINUM ONE. A REENGINEERED GRIP RESULTS IN SHORTER TRIGGER REACH AND NOTABLY HIGHER HAND POSITION. AN UNDERCUT TRIGGER GUARD AND EXTENDED BEAVERTAIL COMPLETE THE ERGONOMIC TRANSFORMATION. THE LONG SLIDE HOUSES A FIVE INCH BARREL, PROVIDING A LONGER LINE OF SIGHT FOR FASTER AND MORE ACCURATE SHOTS. THE SLIDE HAS BEEN LIGHTENED SIGNIFICANTLY UTILIZING LIGHTENING CUTS TO ACCOMPLISH FASTER CYCLING.",
"serialNumber": "6789897676898976",
"caliber": "9 x 19 mm",
"length": "226 mm // 8.9 inches",
"height": "155 mm // 6.1 inches",
"width": "42 mm // 1.65 inches",
"barrelLength": "127 mm // 5.0 inches",
"weight": "1202 g // 42.3 oz",
"frameColors": "Nitrocarburized steel // Graphite black color // Blue // Red",
"slide": "Nitrocarburized steel // Graphite black color",
"slights": "Fiber optic front and fully adjustable black rear sight",
"ipfsImageHash": "QmPbvs8G1jVaH6iHBUC2W1YnwY9AhzD98ydVqnhG9KMej1"
},
"timestamp": {
"epoch": 143237168,
"unix": 1633338368,
"human": "2021-10-04T09:06:08.000Z"
}
},
...
]
}
curl --request POST \
--url https://explorer.protokol.sh/api/nft/assets/search \
--header 'content-type: application/json' \
--data '{
"name": "AREX ALPHA"
}'
const response = connection.NFTBaseApi("assets").searchByAsset({
"VALID_JSON_OBJECT"
});
>>> Promise<ApiResponseWithPagination<AssetsResource[]>>
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|