> For the complete documentation index, see [llms.txt](https://docs.tradeflows.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tradeflows.io/guides/getting-started/ratings.md).

# Ratings

Only those that count can rate you...

Only counterparts in active trades are able to rate each other. Therefore, counterparts invoke special functions in the Trade contract and they identify the counterpart, not by address, but by trade through the token id.

```javascript
const txHash = await buyer.invoke(
    txAssetContract, 
    "rate", 
    { 
      tokenId: toUint256WithFelts("0"),
      rating:  toUint256WithFelts("1")
    },
    { maxFee: FEE}
  )
```

Next is about fund withdrawals.
