build_reveal_tx · Build: reveal a committed order
read-onlyBuilds the UNSIGNED reveal transaction from a ticket returned by build_commit_tx (market, batch, trader, side, amountRaw, limitRaw, salt). Checks the commit exists onchain, the reveal window, and that the trader has enough free balance for the lock. Anyone may send a reveal, so an agent can reveal for its user. Free.
Input schema
{
"type": "object",
"properties": {
"ticket": {
"type": "object",
"description": "The ticket object, as returned"
},
"market": {
"type": "string"
},
"batch": {
"type": "number"
},
"trader": {
"type": "string"
},
"side": {
"type": "string",
"enum": [
"buy",
"sell"
]
},
"amountRaw": {
"type": "string"
},
"limitRaw": {
"type": "string"
},
"salt": {
"type": "string"
},
"from": {
"type": "string",
"description": "Optional sender, default the trader"
}
}
}