getNftReward
The KOII you earned are based on K1 network. Check the task node to earn more KOII on K2 .
This function returns attention rewards earned from an NFT in KOII.
Parameters
id <string> - The transaction ID to process for which you have to see the earned attention rewards.
Example Code
In the below code example, change the targetNft
to the NFT ID for which you want to see the attention rewards gained.
Example Code Output
Returns
Promise<null | number> - Koii rewards earned from a given NFT
Koii rewards earned. If the transaction is not a valid Koii NFT, null
will be returned.
Last updated