getAssetsByGroup
Returns the list of assets given a group (key, value) pair. This method uses 160 credits from your daily balance.
Parameters
groupKey
: (string) [required] - The key of the group (for examplecollection
).groupValue
: (string) [required] - The value of the group.sortBy
: (object) [optional] - Sorting criteria for the results:sortBy
- The field to sort by. Possible values:created
,updated
,recent_action
,id
,none
.sortDirection
- The sort direction. Possible values:asc
,desc
.
limit
: (number) [optional] - The maximum number of assets to retrieve.page
: (number) [optional] - The index of the page to retrieve.before
: (string) [optional] - Retrieve assets before the specified ID.after
: (string) [optional] - Retrieve assets after the specified ID.
Returns
result
- An object containing the following fields:
total
- The total number of assets matching the query.limit
- The maximum number of assets returned in this response.items
- An array of asset objects. Each asset object contains:interface
- The interface type of the asset. Return types include:V1_NFT
,V1_PRINT
,LEGACY_NFT
,V2_NFT
,FungibleAsset
,FungibleToken
,Custom
,Identity
,Executable
,ProgrammableNFT
.id
- The ID of the asset.content
- An object containing the metadata and content information:$schema
- The schema URI.json_uri
- The URI pointing to the asset's JSON metadata.files
- List of associated files withuri
,mime
, and optionalcontexts
.metadata
- An object containing the metadata information:name
- The name of the asset.symbol
- The symbol of the asset.description
- A description of the asset.attributes
- List of attributes withtrait_type
andvalue
.token_standard
- The token standard of the asset.
ownership
- An object containing the ownership details:owner
- The owner's public key.frozen
- Whether the asset is frozen.delegated
- Whether the asset is delegated.delegate
- The delegate's public key.ownership_model
- The ownership model, for examplesingle
ortoken
.
compression
- An object containing the asset compression details:eligible
- Whether the asset is eligible for compression.compressed
- Whether the asset is compressed.data_hash
- The data hash of the asset.creator_hash
- The creator hash of the asset.asset_hash
- The asset hash.tree
- The Merkle tree ID.seq
- The sequence number.leaf_id
- The leaf ID.
royalty
- An object containing the royalty details:royalty_model
- The royalty model (creators
,fanout
, orsingle
).target
- The target address for royalties.percent
- The royalty percentage.basis_points
- The royalty in basis points.primary_sale_happened
- Whether the primary sale has occurred.locked
- Whether the royalty is locked.
creators
- List of creators:address
- The creator's public key.share
- The creator's share percentage.verified
- Whether the creator is verified.
grouping
- Grouping details:group_key
- The group key (for example,collection
).group_value
- The group value.
uses
- An object containing the usage details:use_method
- The usage method (burn
,multiple
, orsingle
).remaining
- The remaining uses.total
- The total uses.
mutable
- Whether the asset is mutable.burnt
- Whether the asset is burnt.