Developers · Public API

The model, as JSON.

The pages on this site draw from five read-only endpoints. They are free, need no key and send CORS headers. Responses are cached at the edge for a few seconds; every one carries stale: true when the chain could not be read and the last good answer is served instead.

GET/api/fills?limit=40&symbol=TSLAedge cache 2 s

The newest confirmed Swap events in the 128 stock-token pools, newest first. limit 1 to 100. symbol filters to one stock token (from the newest 100). Each fill: block, log index, transaction, pool, side from the taker's view (buy when the pool paid out stock), stock and quote amounts, fill price and USD notional, sender and recipient, timestamp, confirmations and a Blockscout proof link.


          
GET/api/houredge cache 30 s

The last hour of fills, added up: volume in USD, buy volume, fills, distinct transactions and recipients, and the same per stock token. The window is measured in blocks from the chain's own pace over the last 100,000 blocks, and its first and last block timestamps are returned so you can check it.


          
GET/api/worldedge cache 10 s

Every stock token with its pools: mid price in USD from slot0, depth from both real balances, whether the pool is live (both sides at least $200 and liquidity active at the price), and the token's consensus: the depth-weighted mid of its live pools, with the spread between them in basis points.


          
GET/api/probeedge cache 20 s

Three fixed route probes, priced on QuoterV2 across every candidate venue (direct pools and two-hop routes through the WETH/USDG 0.01% pool): output, gas estimate, cost against the consensus mid, and how far each venue was from the best.


          
GET/api/healthedge cache 3 s

Chain id reported by the node and whether it is 4663, the head block, its timestamp and base fee, and the round trip to the node.


          
POST/api/rpcno cache

A read-only JSON-RPC proxy to Robinhood Chain for browsers (the public node sends no CORS headers). At most 5 calls per batch. Every write method is refused: wallets broadcast their own transactions.

Contracts

The three USEPlumese contracts, then the Robinhood Chain contracts they read and route through. Sources are verified on Sourcify at launch.

Contract calls

USEPlumeseFlow

swap((bytes path, uint256 amountIn, uint256 minOut, address recipient, uint256 deadline, bool ethOut)) payable
event Flow(uint256 id, address indexed trader, address indexed tokenIn, address indexed tokenOut,
           uint256 amountIn, uint256 amountOut, uint256 minOut, address recipient, bytes path)   // ETH = address(0)

USEPlumeseRecord

file(address pool, bool above, int24 targetTick, uint32 settleAt, string note) returns (uint256 id)
grade(uint256 id)                      // anyone, once block.timestamp >= settleAt
preview(uint256 id) view               // due, covered, settleTick, outcome
claimRange(uint256 from, uint256 n) view
marketList() view / markets(address pool) view   // stock, quote, stockIsToken0, listed

USEPlumeseRail

create(address token, uint40 expiresAt, string label, bytes manifest) payable   // token 0 = ETH
claim(uint256 id, uint256 index, address account, uint256 amount, bytes32[] proof)   // anyone; pays the account
reclaim(uint256 id)                    // creator, after expiresAt
// manifest: one 32-byte word per line, address in the high 20 bytes, uint96 amount in the low 12
// leaf: keccak256(keccak256(abi.encode(index, account, amount))); pairs hash sorted; an odd node moves up

Examples

The last five fills, from a shell

curl -s 'https://useplumese.pages.dev/api/fills?limit=5' | jq '.fills[] | {symbol, side, notionalUsd, proof}'

Consensus prices in the browser

const { stocks } = await fetch('https://useplumese.pages.dev/api/world').then((r) => r.json());
for (const s of stocks) console.log(s.symbol, s.priceUsd, s.livePools + '/' + s.pools.length, 'pools');

Read fills yourself, straight from the chain

// eth_getLogs over the pools in /api/world, Swap topic
const SWAP = '0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67';
// amount0 and amount1 are int256 from the pool's side: negative means the pool paid it out.