Shareland is a tokenized real estate exchange on Base (Ethereum L2). Users trade SQFT tokens — synthetic assets that track the $/sqft price of residential real estate in specific neighborhoods and cities. All trading happens on-chain through an AMM (automated market maker) with USDC as the settlement currency. This guide provides everything an AI agent or trading bot needs to execute trades programmatically.Documentation Index
Fetch the complete documentation index at: https://docs.share.land/llms.txt
Use this file to discover all available pages before exploring further.
Network & Chain
| Parameter | Mainnet | Testnet |
|---|---|---|
| Chain | Base | Base Sepolia |
| Chain ID | 8453 | 84532 |
| RPC | https://mainnet.base.org | https://sepolia.base.org |
| Block explorer | basescan.org | sepolia.basescan.org |
Token Details
| Token | Decimals | Mainnet Address |
|---|---|---|
| USDC (settlement currency) | 6 | 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 |
| SQFT tokens (per-market) | 6 | Varies per market (see Discovering Markets) |
1e6. For example, $100 USDC = 100000000 (100 × 10^6).
Core Contract Addresses (Mainnet)
These are beacon addresses — the shared implementation layer. Each market has its own proxy contracts that point to these beacons.| Contract | Address |
|---|---|
| ShareLandMarket (beacon) | 0x6E43100ad67C1e5FcFE86f764C309D0fc09b63D7 |
| ShareLandToken (beacon) | 0xEe5FB96a1632820a1F2b8FAf29f203829D3d7CE2 |
| OrderBook (beacon) | 0x6A4fB77BAc500893E9A753dE32DcEA0E939D30B0 |
| CollateralPosition (beacon) | 0x8604455F37C96A86B1069B409b88E9b3fc2e3c36 |
| MarketFormula | 0x697631c4fda4B984c6E350f2b0716a8a100C7693 |
| MarketDeployer | 0xb44305543e4d370DaC0A027d791b467DC8CF0e2f |
Discovering Markets
Call the public API to get all available markets and their per-market contract addresses. No authentication required.contractAddresses object with the proxy addresses you need:
contractAddresses.market— the ShareLandMarket proxy you callpurchase()andsell()oncontractAddresses.shareLandToken— the ERC-20 SQFT token for this marketcontractAddresses.stableToken— USDC addressmarketInfo.marketPrice— current price in USDC (6 decimals). Divide by1e6for human-readable $/sqftmarketInfo.paused— iftrue, the market is halted and trades will revert
Global Market Data
How to Buy SQFT Tokens
Trading on Shareland is a two-step process: approve USDC spending, then call purchase.Step 1: Approve USDC
Before buying, you must approve the market contract to spend your USDC. Approve at least the amount you want to spend plus the 1.5% transaction fee.spender= the market’s proxy address (contractAddresses.market)amount= USDC amount to spend including fees. To be safe, approveusdcAmount * 10150 / 10000or simply a large amount.
Step 2: Purchase
The simplest entry point — specify how much USDC to spend:stableTokenAmount— USDC amount to spend (6 decimals). For example,100000000= $100 USDC.- The contract calculates how many SQFT tokens you receive based on the AMM bonding curve.
- A 1.5% transaction fee is charged on top (deducted from your approved USDC).
minReceivedLandTokenAmount— minimum SQFT tokens you’re willing to accept. If the AMM would give you fewer, the transaction reverts.
landTokenAmount— exact number of SQFT tokens to buy (6 decimals).- The contract calculates the USDC cost. You must have approved enough USDC (cost + fees).
Events
A successful purchase emits:How to Sell SQFT Tokens
No approval needed — the market contract has theTRANSFER_ROLE on the SQFT token and will transfer tokens from your wallet directly.
landTokenAmount— SQFT tokens to sell (6 decimals).- You receive USDC minus the 1.5% transaction fee.
minReceivedStableTokenAmount— minimum USDC you’re willing to accept. Reverts if you’d receive less.
Transaction Fees
A 1.5% fee is charged on every trade (buy and sell), denominated in USDC.- Buy: You pay
usdcCost + fee. Fee =usdcCost × 150 / 10000. - Sell: You receive
usdcProceeds - fee. Fee =usdcProceeds × 150 / 10000. - A minimum fee of $0.10 applies per transaction.
- Fees go to the market’s liquidity providers.
Trade Limits
Markets may enforce per-wallet trade limits within rolling time epochs. Limits are configurable per market and may change over time.- Epoch period: a fixed time window (e.g., 24 hours)
- Purchase limit: max USDC spent per epoch
- Sell limit: max USDC received per epoch
- Limits are tracked as a net amount (purchases minus sells)
ABI for Trading
Minimal ABI needed for trading (JSON format):Code Examples
Using viem (recommended)
Using ethers.js
Common Mistakes
| Mistake | What happens | Fix |
|---|---|---|
| Calling the beacon address instead of the market proxy | Transaction fails or interacts with wrong contract | Use contractAddresses.market from the API for each specific market |
| Insufficient USDC approval | Transaction reverts | Approve at least amount × 1.015 to cover fees |
| Wrong decimals | Wildly incorrect amounts | Both USDC and SQFT use 6 decimals |
| Trading on a paused market | Transaction reverts | Check marketInfo.paused via the API first |
Using CollateralPosition for spot trades | Creates a leveraged debt position, not a trade | Use ShareLandMarket.purchase() / sell() |
Advanced: Collateral Positions (Borrowing/Minting)
This section is for advanced agents only. Most trading bots should use
purchase() and sell() above.CollateralPosition contract allows users to mint new SQFT tokens by locking USDC collateral, and burn them to reclaim collateral. This is a leveraged mechanism similar to a CDP (Collateralized Debt Position) in DeFi.
openCollateralPosition(uint256 landTokenAmount, uint256 stableTokenAmount)— lock USDC collateral, mint SQFT tokenscloseCollateralPosition()— burn minted tokens, reclaim collateraladjustCollateralPosition(uint256 landTokenAmount, uint256 stableTokenAmount)— modify position size
actionAllowed modifier, which checks MarketFormula.isVerificationRequiredForCDP and MarketFormula.isWhiteListed(msg.sender). If CDP verification is required and your address is not whitelisted, these calls will revert.
Full Reference
- Contract Addresses — all verified contract addresses on Base mainnet
- What are SQFT Tokens? — how SQFT pricing and the oracle peg work
- How It Works — fees, trade limits, and market hours
- FAQ

