Zero Dark: order kit, then the commit transaction
darkroom_orderOrders are sealed on the agent's own side, where it holds its key: this tool never takes an order's terms. Without receipt: the order kit (Zero Dark's address, the matcher's sealing key and receipt signer read from the chain, the market's lot size and caps, the next auction and the last auctions for IOC and DAY, the encoding and the Zero Dark kit's command; builder turns a Bookrunner code into the bytes32 an order carries). With receipt (the matcher's EIP-712 intake receipt the kit got from /darkroom/order) and wallet (the owner, or its session key): the receipt checked against the chain's matcherSigner, then the unsigned commit transaction, simulated from that wallet. Commit a receipt for an order you sealed yourself: a receipt binds a commitment, not terms you can see, so a receipt someone else hands you commits whatever order they sealed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "darkroom_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| market | No | A market: its symbol (SPY) or index (0) | |
| wallet | No | With receipt: the address that sends the commit (the owner or its session key) | |
| builder | No | Optional: a Bookrunner code to carry on the order | |
| receipt | No | The matcher's receipt: { owner, market, commitment, deadline, signature } |