# Reward User

There are two options for handling bonuses rewarded through the Offerwall:

#### 1. Fully Managed by MyChips

Attach the `UnityEvent` `OnRewardReceived` to your GUI element (very first scene). Within this event, implement the logic to credit the user with the bonus. You will have access to the value of the bonus, allowing you to adjust the reward accordingly.

```csharp
void Start()
{
    MCOfferwallObject.Instance.OnRewardReceived.AddListener(HandleRewardReceived);
}

private void HandleRewardReceived(RewardDTO reward)
{
   // Add your logic here to handle the reward, using the      
  reward.GetRewardInVirtualCurrency()          
}
```

<figure><img src="/files/fzK3ra0Ol5PYOePhulZm" alt=""><figcaption></figcaption></figure>

#### 2. Server-to-Server (S2S) Postbacks

#### If you prefer server-to-server communication, MyChips can send a postback to your server with bonus information. The configuration for postbacks is available in your publisher dashboard. This method is useful for validating and securely rewarding users without client-side manipulation.         &#x20;

#### &#x20;If you are testing in Sandbox mode, the value of the macro {user\_payout} will be 0.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mychips.io/unity/reward-user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
