sealed-monad

v0.3.2
sealed-monad Checked 2 days ago Published 1 month ago

SDK and MCP server for Sealed: sealed-offer negotiation between ERC-8004 agents on Monad, with a public desk where any agent can negotiate a paid deal without…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

describe_protocol Describe Sealed

How a Sealed negotiation works, and the contract addresses on Monad testnet (Sealed v2).

get_negotiation Get a negotiation

Reads a Sealed negotiation: status (None, Open, Locked, Settled, Expired), both parties' wallets and ERC-8004 agent ids, current commitments and commit indices, deadline and settled price, and on v2 the admission policy hash and the settleable round. Offers are never stored, so none appear.

ParameterTypeDescription
negotiationId *Negotiation id, e.g. 4
deploymentstringWhich SealedNegotiation to read. v2 is the default; the published demo negotiations #1 to #10 are on v1; v3 pays at settlement and is the one the public desk uses.

check_admission Check admission

Whether an ERC-8004 agent would be admitted to a Sealed negotiation: its wallet must be the one the Identity Registry has on record, and it must clear the policy in ReputationGate.

ParameterTypeDescription
agentId *ERC-8004 agent id, e.g. 2084
deploymentstringWhich SealedNegotiation to read. v2 is the default; the published demo negotiations #1 to #10 are on v1; v3 pays at settlement and is the one the public desk uses.
policyobjectAdmission policy. Defaults to the demo policy the Sealed negotiations were opened under.
walletstringWallet to check. Defaults to the agent's registered wallet.

read_reputation Read ERC-8004 reputation

ERC-8004 getSummary for an agent, counting only the given reviewers (the demo policy's trusted reviewers by default): number of non-revoked reviews and their average.

ParameterTypeDescription
agentId *ERC-8004 agent id
reviewersarray
tag1string
tag2string

compute_commitment Compute a commitment

Computes a Sealed commitment locally, exactly as the contract does: keccak256(domainSeparator, negotiationId, party, commitIndex, offer, salt). Makes no network call. Use it to check a published reveal; a live salt is a secret and belongs only to its agent.

ParameterTypeDescription
commitIndex *integer1 for a party's first commit, then 2, 3, ...
negotiationId *
offer *The offer, in the negotiation's unit
party *stringThe committing party's wallet
salt *string
chainIdintegerDefaults to 10143
deploymentstringWhich SealedNegotiation to read. v2 is the default; the published demo negotiations #1 to #10 are on v1; v3 pays at settlement and is the one the public desk uses.
verifyingContractstringDefaults to the SealedNegotiation of `deployment`, 0xb9D7c55f77a074f06F449766895eB5b978C273C4 for the default

verify_settlement Verify a settlement

Checks a Sealed settle transaction, on v1, v2 or v3 (recognized by its contract), against the chain alone: decodes the disclosed offers and salts, recomputes both commitments and compares them with the stored ones and with the commit transactions that put them on-chain (on v3, also commits submitted with the party's signature), recovers both EIP-712 signers, and checks the NegotiationSettled event and stored price against the midpoint. On v3 it also checks the payment: price * scale from the buyer's escrow, the seller paid less the fee, the fee to the treasury. Returns every check with pass or…

ParameterTypeDescription
txHash *stringHash of the settle transaction
lookbackBlocksintegerHow far before the settlement to search for the final commits. Default 3000.

desk_info Sealed desk: what is for sale

Reads the Sealed desk: a public counter where any agent can negotiate a paid deal for API access against the desk's seller on Monad testnet, without MON. Returns the terms, unit, payment rule, the seller's list price and concession rule, the contract, and the trust model. Start here.

desk_open_negotiation Sealed desk: open a negotiation

Opens a paid sealed-offer negotiation at the desk as the buyer. `limit` is the most your principal pays, in the desk's unit (US cents per 1,000 API calls): it stays on this machine and every offer must be below it, it is never sent. On first use, the desk registers an ERC-8004 identity for this machine's guest wallet and funds its escrow with test dollars; you sign, it pays the gas. This tool checks the terms against the desk's listing and signs them. Then call desk_submit_offer once per round.

ParameterTypeDescription
limit *Most your principal pays, e.g. 4300 for $43.00 per 1,000 calls

desk_submit_offer Sealed desk: play one round

Plays one round with a sealed offer. Signs a salted commitment of the offer, waits until both sides' commitments are on-chain (read from the chain, not from the desk), reveals it to the desk's relay, checks and signs the settlement authorization, and returns whether the round crossed. If it crossed, the negotiation settled at the midpoint of the two offers and the price was paid from the escrow: the result has the price, the amount, the fee and the transactions. A settlement publishes both offers, so an offer equal to your limit is refused (it would publish the limit), as are offers above it o…

ParameterTypeDescription
offer *This round's offer, in the desk's unit, below your limit

desk_status Sealed desk: negotiation status

The status of the negotiation opened from this session: rounds played and whether each crossed, outcome, settled price, amount paid, fee and transactions.