getNameByTokenId()
/**
* Get the name of the Collective Portrait for a given token ID.
*
* @remarks
* The token ID is the unique identifier of the Collective Portrait. It is used to identify the Collective Portrait in the contract, as part of ERC-1155.
*
* @param {number} id - The token ID of the Collective Portrait that the user would like to get the name for.
* @returns {CollectivePortraitName} - The name of the Collective Portrait.
* @beta
* @async
*/
getNameByTokenId(id: number): CollectivePortraitName {
return this.portrait.portraitCollectiveContract.getNameByTokenId(id);
}
Last updated