/accounts/:address:/roles/tokens/count
Returns the total number of fungible token roles where the account is owner or has some special roles assigned to it.
Parameters
address
REQUIRED(string)
- account bech32 addresssearch
OPTIONAL(string)
- search by collection identifierowner
OPTIONAL(string)
- filter by collection ownercanMint
OPTIONAL(boolean)
- filter by property canMintcanBurn
OPTIONAL(boolean)
- filter by property canBurncanAddQuantity
OPTIONAL(boolean)
- filter by property canAddQuantity
Returns
Number
- the total number of fungible tokens where the account is owner
Example Request and Result for /accounts/:address:/roles/tokens/count
Request:
curl -X 'GET' \
'https://elrond-api.public.blastapi.io/accounts/erd160y56egs9q7en67z06jk8ndsgxxuc0srf4kx8gfwc7xmap7zqvtqv973la/roles/tokens/count?canMint=true&canBurn=false&canAddQuantity=false' \
-H 'accept: application/json'
Result:
0