new DigitalAssetMethods()
new DigitalAssetMethods(client):DigitalAssetMethods
Parameters
client
QueryClientInterface
Returns
DigitalAssetMethods
Methods
getByUID()
getByUID(Get a digital asset by unique asset IDuid):Promise<null|DigitalAsset>
Parameters
uid
string
The ID of the digital asset
Returns
Promise<null | DigitalAsset>
The digital asset data or null if not found
Example
Remarks
This method fetches a single digital asset by its unique asset ID. It returns null if no matching asset is found. The response includes detailed information about the asset, including its metadata, ownership, and any associated verified rights.getByContractAndTokenId()
getByContractAndTokenId(Get a digital asset by its contract address and token IDcontractAddress,tokenId):Promise<null|DigitalAsset>
Parameters
contractAddress
string
The contract address of the digital asset
tokenId
bigint
The token ID of the digital asset
Returns
Promise<null | DigitalAsset>
The digital asset data or null if not found
Example
getByOwner()
getByOwner(Get digital assets owned by a specific addressownerAddress,first,skip):Promise<DigitalAsset[]>
Parameters
ownerAddress
string
The owner’s address
first
number = 100
Number of items to fetch (default: 100)
skip
number = 0
Number of items to skip (default: 0)
Returns
Promise<DigitalAsset[]>
Array of digital assets
Example
Remarks
This method returns all digital assets owned by a specific address. The address must be a valid Ethereum address. Results can be paginated using the first and skip parameters. This is particularly useful for creating user dashboards or galleries showing all assets owned by a particular user.getLicensedAssets()
getLicensedAssets(Get licensed assets derived from a parent assetparentAssetId,parentAssetAddress,first,skip):Promise<DigitalAsset[]>
Parameters
parentAssetId
string
The parent asset ID
parentAssetAddress
string
The parent asset contract address
first
number = 100
Number of items to fetch (default: 100)
skip
number = 0
Number of items to skip (default: 0)
Returns
Promise<DigitalAsset[]>
Array of digital assets
Example
Remarks
This method returns all licensed assets that were derived from a specific parent asset. This is useful for tracking all licensing activity for a given intellectual property. For example, you can use this to see all derivative works that have been properly licensed from an original creation. The parent asset address must be a valid Ethereum address.getAll()
getAll(Get all digital assetsfirst,skip):Promise<DigitalAsset[]>
Parameters
first
number = 100
Number of items to fetch (default: 100)
skip
number = 0
Number of items to skip (default: 0)
Returns
Promise<DigitalAsset[]>
Array of digital assets

