> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enso.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Request Tracking

> Tag requests with a referral code to track usage and rewards.

export const date_0 = "2025-08-14"

With `/bundle` and `/route` APIs you can tag transactions with a `referralCode`, allowing you to track usage and rewards associated with that code.

Every transaction these APIs create will emit a `ShortcutExecuted` event with the referral code:

```solidity theme={null}
ShortcutExecuted(accountId: bytes32, requestId: bytes32)
```

To implement the tracking, you'll need to analyze the `ShortcutExecuted` events emitted by the Enso smart contract executing your transaction. This event contains two key pieces of information:

* Use `accountId`, uniquely associated with your account, to identify all requests made through your project's integration with Enso.
* Use the `requestId`  (a unique identifier for each request) where the higher 16 bytes represent contain the `referralCode`.

<div className="text-right text-xs gray-200 font-semibold w-full" style={{marginTop: '0'}}>
  <p style={{
        color: "#b2b2b2"  
    }}>Updated {date_0}</p>
</div>
