/accounts/:address:/roles/collections
Returns NFT/SFT/MetaESDT collections where the account is owner or has some special roles assigned to it.
Parameters
- **
address
: **REQUIRED(string)
- the address to query from
OPTIONAL(number)
- the number of items to skip for the result setsize
OPTIONAL(number)
- the number of items to retrievesearch
OPTIONAL(string)
- search by collection identifiertype
OPTIONAL(array[string])
- filter by type (NonFungibleESDT/SemiFungibleESDT/MetaESDT)owner
OPTIONAL(string)
- filter by collection ownercanCreate
OPTIONAL(boolean)
- filter by property canCreatecanBurn
OPTIONAL(boolean)
- filter by property canBurncanAddQuantity
OPTIONAL(boolean)
- filter by property canAddQuantitycanUpdateAttributes
OPTIONAL(boolean)
- filter by property canUpdateAttributescanAddUri
OPTIONAL(boolean)
- filter by property canAddUricanTransferRole
OPTIONAL(boolean)
- filter by property canTransferRole
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]name
:(string)
- the username specific to this accountticker
:(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 add URIs for a specific NFTcanTransferRole
:(boolean)
- this role enables transfer only to specified addresses
Example Request and Result for /accounts/:address:/roles/collections
Request:
curl -X 'GET' \
'https://elrond-api.public.blastapi.io/accounts/erd1xvmata3rkwmp4h4jxr5ngzzq2zm0p2ev6672xvj3mpmvj2zwlttq87uh9q/roles/collections?from=2&size=1&canCreate=false&canBurn=true&canAddQuantity=true&canUpdateAttributes=true&canAddUri=true&canTransferRole=false' \
-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
}
]