Home > @infiniteobjects/eth-tokens-service > AlchemyService > findAssetByTokenId
Gets an EthAssetToken for a token at a given contract address and tokenId. Optional owner can be passed. The owner is used to fill out EthAssetToken.owner information. If it is not passed this will always be and empty IProfile with NULL_ADDRESS.
Signature:
findAssetByTokenId(contract: string, tokenId: string, owner?: string): Promise<EthAssetToken | null>;
| Parameter | Type | Description |
|---|---|---|
| contract | string | |
| tokenId | string | |
| owner | string | (Optional) |
Returns:
Promise<EthAssetToken | null>