/accounts/:address:/roles/collections/:collection:
Returns details about a specific NFT/SFT/MetaESDT collection from a given address.
Parameters
- **
address
: **REQUIRED(string)
- the address to query - **
collection
: **REQUIRED(string)
- the information about the NFT or SFT, like picture traits or tags for your NFT/collection
Returns
collection
:(string)
- represents additional information about the NFT or SFT, like picture traits or tags for your NFT/collection. The field should follow ametadata:ipfsCID/fileName.json;tags:tag1,tag2,tag3
formattype
:(string)
- enum [NonFungibleESDT, SemiFungibleESDT, MetaESDT]ticker
:(string)
- a random string that starts with “-” and has 6 more random charactersowner
:(string)
- the owner's addresstimestamp
:(number)
- u64 formatcanFreeze
:(boolean)
- the token manager may freeze the token balance in a specific account, preventing transfers to and from that account - default value:false
canWipe
:(boolean)
- the token manager may wipe out the tokens held by a frozen account, reducing the supply - default value:false
canPause
:(boolean)
- the token manager may prevent all transactions of the token, apart from minting and burning - default value:false
- _
canTransferNFTCreateRole
_ :(boolean)
- the addresses with the transfer role can transfer anywhere decimals
:(number)
- the number of decimals in order to display balanceassets
:website
:(string)
description
:(string)
status
:active/inactive
pngUrl
:(string)
svgUrl
:(string)
lockedAccounts
:(array[string])
extraTokens
:(array[string])
roles
:address
:(string)
- account bech32 addresscanCreate
:(boolean)
- this role allows one to createcanBurn
:(boolean)
- users may "burn" some of their tokens, reducing the supply - default value:false
canAddQuantity
:(boolean)
- this role allows one to add quantity of a specific SFTcanUpdateAttributes
:(boolean)
- this role allows one to change the attributes of a specific NFTcanAddUri
:(boolean)
- this role allows one to add URIs for a specific NFTcanTransferRole
:(boolean)
- this role enables transfer only to specified addressesroles
:(array[string])
- the list of the roles
Example Request and Result for /accounts/{"{address}"}/roles/collections/{"{collection}"}
Request:
curl -X 'GET' \
'https://elrond-api.public.blastapi.io/accounts/erd160y56egs9q7en67z06jk8ndsgxxuc0srf4kx8gfwc7xmap7zqvtqv973la/roles/collections/test' \
-H 'accept: application/json'
Result:
{
"collection": "string",
"type": "NonFungibleESDT",
"name": "string",
"ticker": "string",
"owner": "string",
"timestamp": 0,
"canFreeze": false,
"canWipe": false,
"canPause": false,
"canTransferNftCreateRole": false,
"decimals": 0,
"assets": {
"website": "string",
"description": "string",
"status": "inactive",
"pngUrl": "string",
"svgUrl": "string",
"lockedAccounts": [
"string"
],
"extraTokens": [
"string"
]
},
"roles": {
"address": "string",
"canCreate": false,
"canBurn": false,
"canAddQuantity": false,
"canUpdateAttributes": false,
"canAddUri": false,
"canTransferRole": false,
"roles": [
"string"
]
},
"canCreate": true,
"canBurn": true,
"canAddQuantity": true,
"canUpdateAttributes": true,
"canAddUri": true,
"canTransferRole": true
}