[08]
Contracts and API
MempoolStorage
Address 0x6B1a149fDDA14E080C213BA8df0EBa612B89Db66 on Robinhood Chain (chain id 4663), source verified.
| CALL | WHO | WHAT |
|---|---|---|
store(tag, root, size, hours) | agent | registers and prepays a memory, assigns three nodes |
forget(id) | memory owner | closes it, refunds the unused pool |
release(id) | anyone | closes a memory whose time is over |
openRound() | anyone | draws this hour's seed |
challengeOf(node) | view | what the node must prove this hour |
prove / proveMany | anyone | submits Merkle proofs, checked against the root |
slash(node, round) | anyone | after a missed hour; half the slash to the caller |
move(id, copy) | anyone | moves a copy off a jailed or exiting node |
registerNode, topUp, rejoin, requestExit, withdrawBond, claim | node owner | node life cycle and pay |
collect(ids) | anyone | credits node earnings so far |
Node HTTP API
GET /health | node number, copies held, bytes |
PUT /v1/blob/:id | upload a copy (checked against the root onchain) |
GET /v1/blob/:id | download a copy |
GET /v1/challenge | this hour's answer: memory, segment index, segment, path |
GET /v1/proof/:id/:index | any segment with its Merkle path |
Network API
GET /api/network returns the round, every node with its status, bond, copies and last proof, and the totals. Add ?events=1 for the recent stores, proofs, slashes and moves.