HelloMoon RPCs now support the Digital Asset Read API.
These use the same RPC endpoint and Authentication method as normal RPC requests.
The methods supported are listed below.
getAsset
Gets asset given asset ID.
Example Json body
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAsset",
"params": {
"id": "Escn6QjoouT6fLTQDRWE3qNJ8SfcYapiyQzosn46TrpZ"
}
}
getAssetProof
Gets Merkle proof for an asset.
Example Json body
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAssetProof",
"params": {
"id": "Escn6QjoouT6fLTQDRWE3qNJ8SfcYapiyQzosn46TrpZ"
}
}
getAssetsByAuthority
Gets list of assets given authority.
Example Json body
{
"jsonrpc": "2.0",
"id": 1,
"method": "getAssetsByAuthority",
"params": {
"authorityAddress": "E2tGpaPTaLFUR52Y7B15ppwiPc38Re3nFifVfGhLhDan",
"limit": 100,
"page": 1
}
}
getAssetsByGroup
Gets list of assets given group key and value.
Example Json body
{
"jsonrpc": "2.0",
"id": "1",
"method": "getAssetsByGroup",
"params": {
"groupKey": "collection",
"groupValue": "HrWGF1Mp7jZvyPYo1xRVvuCD98TjKYjPQ8Q5swmmVxnb",
"page": 1,
"limit": 100
}
}
getAssetsByOwner
Gets list of assets given owner.
Example Json body
{
"jsonrpc": "2.0",
"id": "1",
"method": "getAssetsByOwner",
"params": {
"ownerAddress": "9M5moT1H8dhoLxa1YYUbvndEVo2MwwKejUTRSQDjZu7e",
"limit": 100,
"page": 1
}
}
searchAssets
Returns list of assets given search criteria.
Example Json body
{
"jsonrpc": "2.0",
"id": "1",
"method": "searchAssets",
"params": {
"ownerAddress": "DUhF1uM4ZqTuUsyZEDsExo6E65RBJBDX8sF56gmdVv4v",
"ownerType": "single",
"frozen": false,
"supply": 1,
"compressed": true,
"royaltyTargetType": "creators",
"conditionType": "all"
"limit": 100,
"page": 1
}
}
Full list of params are
"negate": true|false,
"conditionType": "all"|"any",
"ownerAddress": string,
"ownerType": "single"|"token",
"creatorAddress": string,
"creatorVerified": true|false,
"authorityAddress": string,
"grouping": [string,string],
"delegate": string,
"frozen": true|false,
"supply": number,
"supplyMint": string,
"compressed": true|false,
"compressible": true|false,
"royaltyTargetType": "creators"|"fanout"|"single",
"royaltyTarget": string,
"royaltyAmount": number,
"burnt": true|false,
"jsonUri": string