waves_logo Docs
  • Ecosystem Apps
    Ecosystem Apps
  • Waves Explorer
    Waves Explorer
  • Account balance top up in the test network
    Account balance top up in the test network
  • Waves Keeper
    • Getting started with Waves Keeper
      Getting started with Waves Keeper
    • Waves Keeper API
      • Transaction Format
        Transaction Format
      Waves Keeper API
    Waves Keeper
  • Oracles
    • Create an oracle card with Waves Oracle
      Create an oracle card with Waves Oracle
    • Create an oracle card with a data transaction
      Create an oracle card with a data transaction
    • Oracle card
      Oracle card
    • Updating oracle card
      Updating oracle card
    • Data transaction tool
      Data transaction tool
    • How to create an oracle
      How to create an oracle
    Oracles
  • Token Rating
    • User interface
      User interface
    • Rating formula
      Rating formula
    • Data transaction with user's rate
      Data transaction with user's rate
    • Data transaction of the Token Rating oracle
      Data transaction of the Token Rating oracle
    • Token management
      Token management
    Token Rating
      • English
      • Русский
      On this page
      waves_logo Docs

          # Data transaction with user's rate

          When a user rates a token inside the token's card, a data transaction is sent from the user's address.

          An example of the data field of such a transaction:

          "data": [
            {
              "key": "tokenRating",
              "type": "string",
              "value": "tokenRating"
            },
            {
              "key": "assetId",
              "type": "string",
              "value": "BrjUWjndUanm5VsJkbUip8VRYy6LWJePtxya3FNv4TQa"
            },
            {
              "key": "score",
              "type": "integer",
              "value": 4
            }
          ]
          
          Key Data type Value
          tokenRating String Service field.
          The value must be "tokenRating"
          assetId String ID of the token
          score Integer Rate
          Rating formula
          Data transaction of the Token Rating oracle
          Rating formula
          Data transaction of the Token Rating oracle