Docs/Getting started

What is Essey on Sui

An agent should start at Hand this to your agent and at https://essey.xyz/llms.txt. The packages are @esseyonsui/sui-sdk 0.1.12 and @esseyonsui/sui-mcp 0.1.16. @esseyonsui/sui-mcp 0.1.16 depends on @esseyonsui/sui-sdk 0.1.12. Install them from Install. Essey's sealed rooms are Essey Move contracts. Mysten has not published a Sui Agent Rooms SDK, so there is nothing further to install for Rooms.

Essey on Sui is a lending market on Sui where people, and the AI agents working for them, lend Sui Dollar (USDsui) and USDC and borrow against SUI, in public or fully private. Every loan is its own object on chain and holds its own collateral.

An agent never gets a blank cheque. It acts through a capability that its owner issued, inside limits and lending rules that live on chain and that only the owner can change.

Testnet only. Essey on Sui runs on Sui testnet. The live lending package is 0x6786d695be37759278a0769b311fd9381b44baaea86f6a969619a7df8c9a61b4 (market 0x618b3e2946ff34462bf8af9ff2cafe444d7bb19b367e882ca67c9af59f1aad33). It is an unaudited demo publish.

Essey on Sui: system topologyStatic diagram · Open full size ↗
Essey on Sui: system topologyThe agent calls the self-serve API for sponsored lending, and the relayer for a shielded bid or offer. v2 rooms settle with a proof. Lending lives in essey_sui; sale_room_v2 and private_room_v2 are separate packages.OWNER DEVICEAGENT PROCESS · SELF-RUNESSEY OPERATOR · OFF-CHAINSUI NETWORK · TESTNETESSEY MOVE PACKAGE · ESSEY_SUISEALED SETTLEMENT V2mint_cap · set_limitsset_mandate · revokeAgentCap: spend · drawbuilds tx · user signsoperator pays gasseal_approvedry runkeys after close, 2 of 3sends the proof tx, pays gasread: ≤300 s old,confidence ≤1%ReadingOwner walletpasskey or Sui wallet keyoff-chainOwnerCapcontrols one treasurycapabilityAgent · SDK or MCP@esseyonsui/sui-sdk · @esseyonsui/sui-mcpits own key, never the owner’soff-chainAgentCapkey, no store: cannot transfercapabilitySelf-serve APIbuilds every tx; the user signs itnever holds a user keyoff-chainHosted agentsown key eachGas sponsoroperator paysTreasury<T>funds · limits · mandatesborrow rules · consentsshared objectOfferrate · max LTV · fill rangeholds no moneyshared objectPoolUSDC in, PoolShare outfloating rateshared objectv2 loan roomprivate_room_v2losing rate stays sealedshared objectLoanholds the SUI collateralLoanDeed · LenderClaimshared objectMarketLTV limit · liquidation lineits own feed onlyshared objectborrowerborrower desk: SUI treasury→ loan → cash treasurymoduleprice · pyth_oracleread → Readingspot + EMA, cannot be storedmodulePyth SUI/USDprice object on SuiPythv2 sale roomsale_room_v2 · prooflosing bids stay sealedshared objectShielded poolnotes · a ZK proof per spendSeal key serversv2 rooms: 2 of 3off-chainRelayerfee floor 0.01off-chainLEGENDOff-chain processOn-chain shared objectMove moduleCapability (key)Sealed / privateExternal serviceCall / transactionSealed data / keysReads
Scroll sideways to see the whole diagram.
The agent calls the self-serve API for sponsored lending and the relayer for a shielded bid or offer. Lending is essey_sui. v2 sale and loan rooms are separate packages and settle with a proof.Source: docs/what-is-essey-on-sui.md · docs/how-it-works.md · docs/concepts/*.md · api/overview.md · sdk/overview.md · sdk/guides/sale-room.md · docs/concepts/sealed-rooms.md

What you get#

  • Three ways to borrow — take a lender's standing offer, draw from the pool, or open a sealed room where lenders bid without seeing each other.
  • Sale rooms — sell any item on Sui to the highest sealed bid, opened by the contract itself. Open on testnet with test money; not audited. See Sealed rooms.
  • Private on both sides — a private loan room and a gated sale room where prices are sealed with Seal and money moves through a shielded pool, with a dregg membership credential in place of an address. Sui Dollar, USDC and SUI in every private flow, on Sui testnet. See Private rooms.
  • Staged access — one admin switch moves the private rooms from CLOSED to INVITE to PUBLIC.
  • Rules the chain enforces — a per-transaction limit, a rolling 24-hour limit, an expiry and an allowed-recipient list on every agent, plus a lending mandate that every fill re-checks and borrow rules that every borrow through the desk is held to.
  • Borrowing that never passes through the agent — collateral goes from the owner's treasury straight into the loan, and the proceeds land in a second treasury the owner holds.
  • Refinance in one transaction — move a loan to a cheaper offer; the old lender is paid in the same call.
  • Prices it can trust — the market refuses a Pyth price that is stale or too uncertain.
  • One tap to a working agent — sign in with a passkey, sign once, and the operator pays the gas.

Faucets#

Testnet coins come from GET /v1/faucet and the posts below. GET /v1/config repeats the same limits.

CoinCallAmountWhen it is empty
tUSDsuiPOST /v1/faucet/usdsui {"address":"0x..."}10000000 (10 tUSDsui), once per address per day429 ADDRESS_FUNDED_TODAY, TRY_LATER or FAUCET_EMPTY_TODAY. The treasury cap is 0xe13dc33c2f1e6ec6ae77a19bfa0bf619dccca2ec72084ddd3e32c7bd9dcb826c.
USDCPOST /v1/faucet/usdc {"address":"0x..."}2000000 (2 USDC), once per address per day503 RESERVOIR_EMPTY when the reservoir holds less than one amount: read available on GET /v1/faucet first, and when it is short, retry later or ask the operator. The body includes refill: Circle's testnet faucet, 20 USDC per address every 2 hours, at https://faucet.circle.com (network Sui Testnet), a browser form behind reCAPTCHA, made for a person. The reservoir is the sponsor 0x40c38dcf4fe17fdd1387d0acbd4e671070b5848164c1612c20f0e2c52b035d38.
SUISui's own faucetabout 1 SUI into the address balancePOST /v1/faucet/sui returns 400 SUI_FAUCET_EXTERNAL. Install the CLI (brew install sui on macOS; Cargo or a release binary otherwise), then sui client faucet --url https://faucet.testnet.sui.io --address <ADDRESS>, or use https://faucet.sui.io. Mysten's POST https://faucet.testnet.sui.io/v2/gas returns compatibility_disabled.

Shared limits: perAddressPerDay 1, perIpPerHour 5, tUSDsui perDay 200, USDC perDay 50. Read available on GET /v1/faucet before posting.

Package ids#

These are the ids GET /v1/config and GET /v1/private/config serve. sale_room_v2 is saleRoomV2. private_room_v2 is privateLoanV2.

Lending package (essey_sui, also privateLoanV2.esseyPkg)0x6786d695be37759278a0769b311fd9381b44baaea86f6a969619a7df8c9a61b4
USDC market0x618b3e2946ff34462bf8af9ff2cafe444d7bb19b367e882ca67c9af59f1aad33
Privacy package0xef63ef732c30b87589ed9435a8291e72fed00f7bdc72a028196c244333c2464c
Access object0xe5c5cf68662a21c42bab89b1b55b623f4bf05698703d88e8479ade15352e8b94
PassKey0xbcebf7f4430c69ee3a53cc858db659509f125d260e8e647c4865de6295a2438d
sale_room (v1)0x48db0307be9b6aadbf9f29c28561e1b450348ab2786ea4853a8d7249c22979a1
sale_room_v20xeeacf6d88596fedfdcd66cc6510c3c84e08d249bdb1d2b956f3c931a33feb714
sale_room_v2 verifier0x6d27cc34ce3423a02222f18795c4141504b9c1f46ac4d02277449af723f3ffa7
private_room_v20x5e2dbc14e6687bb550e2f69fcdd328c21b252fdcf9c9dddce0f8aa33f37e9050
private_room_v2 verifier0xd56ab7c8f077b660ca9c0655e1e57c2d39812ae40c82394311635243ba02a84c
Shielded pool USDC0xe9fa57e6030e630302f63b45c2e7f19629b06fb99c72ee600c0f1351f1a1075c
Shielded pool tUSDsui0x304df63ce2bc69ecae878b366813a5d21a3d5be3f85704a688621bffb0bba11c
Shielded pool SUI0x96db81b0f3cc2c804bb26fb835eaa7e41f73070e2153ed3e70ea1645d1707436
Seal key server 00x73d05d62c18d9374e3ea529e8e0ed6161da1a141a94d3f76ae3fe4e99356db75
Seal key server 10xf5d14a81a982144ae441cd7d64b09027f116a468bd36e7eca494f750591623c8
Seal key server 2 (committee; aggregator https://seal-aggregator-testnet.mystenlabs.com)0xb012378c9f3799fb5b1a7083da74a4069e3c3f1c93de0b27212a5799ce1e1e98

The v2 rooms use all three Seal servers and threshold 2. Wallet-room offer encryption uses the first two. Both verifiers are the TEST-ONLY single-party Settle(16) keys.