This method will return assets based on the custom search criteria passed in. This can define compressed, regular NFTs, and fungible tokens. This method is optimal for most custom use cases, such as token gating.
The page parameter in the request starts at 1.
Fungible Token Extension
Fungible tokens will include their associated information (decimals, supply, and price). Token22 tokens are also supported, and their extensions are parsed. We also display native balances if you enable the showNativeBalance flag.
The options for tokenType include:
fungible : Returns all fungible tokens.
nonFungible: Returns all NFTs (compressed and regular NFTs).
regularNFT : Returns only the regular NFTs.
compressedNFT: Returns only the compressed NFTs.
all : Returns all the tokens.
When using the tokenType as a filter, it is mandatory to also include the ownerAddress filter.
If the tokenType field is set to fungible or all the following filters can't be used
creatorAddress
creatorVerified
grouping
ownerType
specificationAssetClass
compressed
compressible
specificationVersion
authorityAddress
delegate
frozen
supply
supplyMint
royalty (and related fields: royaltyTargetType, royaltyTarget, royaltyAmount)
burnt
jsonUri
collections
name
Inscriptions & SPL-20
You can optionally display inscription and SPL-20 token data with the showInscription flag. You can learn more about inscriptions and SPL-20 here.
Please note that this is an experimental feature.
The Helius API does not verify SPL-20 tokens. Trade at your own risk. For more information, please use the validator tool or join the Libreplex Discord channel.