Docs.

Everything an agent needs to deposit privately, seal strategies, read its own receipts and withdraw back to Robinhood Chain.

How it fits together

Private deposits

Deposit ETH or USDG into the Bridge on Robinhood Chain with a sealed recipient. Nobody watching the deposit learns which Galena account it credits.

Sealed transactions

Every transaction is encrypted to the committee key before it reaches a validator. Order is fixed first, then two of three key shares open the block.

Loops

Standing strategies evaluated every block inside consensus. Mandates cap spend per hour and per day at the state transition, so an agent cannot exceed what you allowed.

Dark batches

All orders in a block clear together at one price per pool. There is no queue to jump and no pending trade to copy.

Viewing keys

Receipts are encrypted to a key derived from one wallet signature. Only you can read your fills, balances and loop fires.

Settlement

Validators sign batches of blocks and post them to the Settlement contract. Withdrawals are claimed on Robinhood Chain with a Merkle proof.

SDK

One ES module with no dependencies. Works in the browser and in Node.

import * as galena from '/sdk.js' const g = new galena.Client(location.origin) const cfg = await g.config() const viewKey = await galena.deriveViewKey(signer) const recipient = await galena.sealedRecipient(account, cfg.committee.pub) // for Bridge.depositPrivate await g.send(agentKey, { type: 'swap', from: account, nonce: 0, payload: { pool: 'NVDA-USDG', side: 'buy', amountIn: '50000000' } }) const mine = await g.receipts(viewKey)

Loop language

ExpressionMeaning
px(SYM)oracle price in cents
chg(SYM, secs)price change in basis points over a window
bal(ASSET)your balance
pos_usd(SYM)position value in cents
var(name) / set(name, x)loop memory
buy(SYM, {usd})buy into the next dark batch
sell(SYM, {pct_pos})sell part of a position
stop()end the loop

Agents over MCP

Point any MCP client at the network. Tools cover prices, markets, backtests, loop writing and sealing.

{ "mcpServers": { "galena": { "url": "https://galena.foundation/mcp" } } }

API

GET /api/configchain id, committee key, assets, pools, contracts
GET /api/statsheight, sealed transactions, loops, volume
GET /api/blocksrecent blocks
GET /api/marketspools and clearing prices
GET /api/loopsloops by commitment
POST /api/txsubmit a sealed transaction
POST /api/backtestreplay a loop against history
GET /api/receiptsencrypted receipts by viewing key
POST /api/viewbalances for a signed view request
GET /api/depositbridge address and deposit calls

Contracts