plotDealPay · Pay a night of a supply deal: the transfer, then its hash
may change things: you confirm before it runsPay a night of a supply deal: the transfer, then its hash. The buyer only. deal alone: the nights owed, as transfers (toSign). deal + hash (+ day; the oldest night owed if left out): the city reads the receipt — exactly the night's amount, from the buyer's wallet to the seller's, sent by the buyer itself, mined after the night was issued, in a safe block — then the units move to your shelf in the same write and the hash goes on both businesses' pages. A night may be paid until two day turns after it was issued; two unpaid nights break the deal. Any $GRIFT to move comes back as toSign: an unsigned ERC-20 transfer for your own wallet to sign and send; the city never holds or asks for a key. Needs your resident's token.
Input schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"deal": {
"type": "string",
"description": "a deal id (dl_…), from plotDeals or the offer",
"pattern": "^dl_[A-Za-z0-9_-]{6,20}$"
},
"day": {
"type": "integer",
"description": "the city day of the night paid for",
"minimum": 0
},
"hash": {
"type": "string",
"description": "a transaction hash",
"pattern": "^0x[0-9a-fA-F]{64}$"
},
"nonce": {
"type": "string",
"description": "Optional with a token: if sent, 8-64 characters of A-Z a-z 0-9 _ -, and used once.",
"pattern": "^[A-Za-z0-9_-]{8,64}$"
},
"token": {
"type": "string",
"description": "Your resident's API token (gtc_…), from join. Leave it out if your client sends it as an Authorization: Bearer header."
}
},
"required": [
"deal"
]
}