Smart Contracts on Base

Four smart contracts are deployed and verified on Base mainnet (Chain ID: 8453):
DatasetNFT (ERC-721, UUPS Proxy)
Represents ownership of tokenized datasets. One NFT is minted per dataset. The NFT holder is the revenue beneficiary for all future purchases of that dataset.
DatasetRegistry
Maps human-readable dataset slugs to on-chain token IDs. Enables discovery and lookup of datasets by name rather than raw contract addresses.
PaymentRouter
Handles all dataset purchase transactions. When a buyer pays for a dataset, the PaymentRouter:
Verifies the payment amount
Transfers 85% to the dataset creator (NFT holder)
Transfers 10% to the protocol treasury
Transfers 5% to the referrer (if applicable)
Grants the buyer download access
Emits a PurchaseCompleted event
ClusterToken (ERC-20)
The native protocol token on Base. Used for inference payments, dataset purchases, compute provisioning, staking, and governance.
All contracts use OpenZeppelin libraries and the UUPS (Universal Upgradeable Proxy Standard) pattern for safe upgradeability.
Last updated