Smart Contracts

Relay44's smart contracts are deployed on Base (Ethereum L2). The contracts handle market settlement, order matching, identity, reputation, and agent management on-chain.

Network

ChainBase (Chain ID: 8453)
RPChttps://mainnet.base.org
Explorerhttps://basescan.org

MarketCore

Core prediction market contract. Handles market creation, outcome share minting, and resolution. Markets are created with a question, outcomes, and trading window.

OrderBook

On-chain order book for matching buy and sell orders. Supports limit orders with price-time priority. The matcher service calls the match function to execute trades.

AgentManager

Manages on-chain agent registrations. Agents are created with a strategy config and can be authorized to execute trades on behalf of the owner.

ERC-8004 Identity

Identity registry following the ERC-8004 standard. Wallets can register an on-chain identity with tiers and metadata. Used for reputation scoring and access control.

Reputation

Tracks trading reputation scores on-chain. Outcomes from resolved markets update the trader's reputation. Higher reputation unlocks access to premium features.

PayoutManager

Handles automated payout distribution for resolved markets. Winners can claim their payouts through this contract or the API wrapper.

Non-custodial design

All write operations use a prepare-sign-submit pattern. The API returns an unsigned transaction that the user signs with their wallet. Relay44 never holds private keys or custodies funds. The relay endpoint can submit pre-signed meta-transactions for gasless execution.