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

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

ShortcusExecuted(accountId: bytes32, requestId: bytes32)

To implement the tracking, you’ll need to analyze the ShortcusExecuted 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.

Updated