Skip to main content

Overview

RektHub contracts emit detailed events for every significant action. This page is your complete reference for building indexers, dashboards, bots, and real-time UIs.
Pro Tip: Events are indexed by key parameters (token address, buyer/seller, creator) for efficient querying. Use filters to subscribe to specific tokens or users.

Factory Events

Events emitted by the RektHubFactory contract.

TokenCreated

Emitted when a new creator token is deployed.
address
Address of the deployed token contract
address
Address of the bonding curve contract
address
Address of the token creator
string
Token name
string
Token symbol
string
Token metadata URI
uint256
Initial real native reserves (always 0 at creation)
uint256
Initial real token reserves (850,000,000 tokens)
uint256
Initial virtual native reserves (set by factory)
uint256
Initial virtual token reserves (1,073,000,000 tokens)
uint256
Fee paid for token creation
Use Cases:
  • Track new token launches in real-time
  • Build “New Tokens” feed
  • Analytics on creator activity
  • Notification systems for followers
Example:

TokenPurchased

Emitted when tokens are bought through the factory router.
address
Token address that was purchased
address
Bonding curve address
address
Address of the buyer
uint256
Amount of native tokens spent (including fees)
uint256
Amount of tokens received
uint256
Total fee charged (1% of nativeIn)
uint256
Creator’s portion of fee (30% of totalFee)
uint256
Platform’s portion of fee (70% of totalFee)
uint256
Real native reserves after purchase
uint256
Real token reserves after purchase
uint256
Virtual native reserves after purchase
uint256
Virtual token reserves after purchase
Use Cases:
  • Real-time trade feeds
  • Price chart updates (calculate price from reserves)
  • Volume tracking
  • Creator earnings dashboards
  • Whale watching (large buys)
Example:

TokenSold

Emitted when tokens are sold through the factory router.
address
Token address that was sold
address
Bonding curve address
address
Address of the seller
uint256
Amount of tokens sold
uint256
Amount of native tokens received (after fees)
uint256
Total fee charged (1% of gross native out)
uint256
Creator’s portion of fee (30% of totalFee)
uint256
Platform’s portion of fee (70% of totalFee)
uint256
Real native reserves after sale
uint256
Real token reserves after sale
uint256
Virtual native reserves after sale
uint256
Virtual token reserves after sale
Use Cases:
  • Track selling pressure
  • Identify panic sells or whale exits
  • Update price charts (sells move price down)
  • Creator earnings tracking
Example:

TokenMigrated

Emitted when a token graduates to DEX.
address
Token that graduated
address
Bonding curve that was closed
address
Address of created liquidity pool
string
Name of the DEX platform (e.g., “Uniswap V2”)
uint256
Amount of native tokens added to pool (after 12% migration fee)
uint256
Amount of tokens added to pool (150M tokens)
uint256
Total migration fee (12% of native liquidity)
uint256
Creator’s portion (60% of migrationFee = 7.2% of liquidity)
uint256
Platform’s portion (40% of migrationFee = 4.8% of liquidity)
Use Cases:
  • Graduation announcements
  • Redirect users to DEX for trading
  • Track graduation success rates
  • Creator milestone notifications
Example:

FeesWithdrawn

Emitted when platform owner withdraws accumulated fees.
address
Address receiving the fees (contract owner)
uint256
Amount of fees withdrawn
Use Cases:
  • Protocol revenue tracking
  • Transparency dashboards

Bonding Curve Events

Events emitted by individual BondingCurve contracts.

TokenPurchased (Curve)

Identical to Factory’s TokenPurchased, but emitted by the curve itself.
Difference from Factory: No token or curve parameters since those are implicit (the event is emitted by the curve itself).
Example:

TokenSold (Curve)

Identical to Factory’s TokenSold, but emitted by the curve.

TokenBonded

Emitted when all tradeable tokens are sold and curve enters “bonded” state.
address
Token that reached full bonding
Use Cases:
  • Notify users that token is ready for graduation
  • Trigger graduation countdown/voting UI
  • Creator milestone notification
Example:
Critical Event: TokenBonded marks a major milestone. All tokens sold, maximum liquidity reached, ready for DEX migration.

TokenMigrated (Curve)

Identical to Factory’s TokenMigrated, but emitted by the curve.

CreatorFeesClaimed

Emitted when creator claims accumulated fees.
address
Creator claiming fees
address
Token the fees are from
uint256
Amount of fees claimed
Use Cases:
  • Track creator earnings withdrawals
  • Creator analytics dashboards
  • Tax reporting tools
Example:

CreatorTransferred

Emitted when creator role is transferred to a new address.
address
Previous creator address
address
New creator address
Use Cases:
  • Track ownership changes
  • Security monitoring
  • Creator account recovery tracking

Token Events

Events emitted by RektHubToken contracts.

TokenURIUpdated

Emitted when creator updates token metadata.
string
New metadata URI
uint256
Block timestamp of update
Use Cases:
  • Refresh token metadata in UIs
  • Track metadata update history
  • Cache invalidation
Example:

MintingDisabled

Emitted once during token initialization when minting is permanently locked.
uint256
Block timestamp when minting was disabled
Use Cases:
  • Verify supply is locked
  • Security auditing
  • Transparency dashboards

Standard ERC20 Events

All RektHub tokens also emit standard ERC20 events:

Transfer

Approval


Event Filtering Examples

Listen to All Activity for a Token

Listen to a Specific User’s Activity

Query Historical Events

Build a Trade Feed


Next Steps

Quick Start

Start integrating with code examples

Factory Contract

Learn about the orchestrator

Interfaces

Contract interfaces and ABIs

Libraries

Bonding curve math utilities