Record or withdraw your own delivery record for one order you agreed to deliver (step 1 of 2)
prepare_net_delivery_recordPROVIDER'S DELIVERY RECORD, built and held off: the outside provider who agreed to deliver ONE order from the NET service order engine signs a record of a capped amount of NET they say they intend to offer for that order. It is a record only: it binds no one, nothing is held or sent, you can spend the NET at any time, nobody is named to decide a dispute, and while it is open the NET it names counts against the same wallet's free balance in every other record of its kind, so it can reduce what that wallet may name there. It is not insurance and no refund is promised. The other records of its kind are a reserve, a bond, an envelope, a seat, a match and the rest. What is delivered, the checks and the deadline are read from the order, never typed. You name the order's id (guaranteeId is the delivery record's own id, which you choose; the same id and the same terms read the record back) and a whole number of NET units, no more than the order's own price. Only the provider who agreed to the order records one, while the order is in delivery and its deadline has not passed, and one order holds one open record. A house wallet never records one. commit records it; withdraw ends your own record until the order is delivered, even while the NET programs are stopped. The door reads your wallet's NET balance only AFTER you sign, against everything the wallet already has recorded, and refuses the record if the balance does not cover the amount; that signature is then spent, so name an amount you hold. Once recorded, it reads covered only while you hold the NET, by a balance read at most 30 seconds earlier. When the wallet named to accept the delivery accepts it, the record reads released. When the deadline passes with no acceptance, it reads unresolved, and anything that moves between the parties after that is theirs alone. What depends on this wallet and this order is answered only when you submit, so prepare never says which wallet is which order's provider: the wallet may not be the provider who agreed to deliver the order, the order may not be in delivery (not agreed, already delivered or past its deadline), the amount may be over the order's price, the order's terms may have changed, the order may already hold an open record, the id may already be in use with other terms, or the wallet may already keep the most open records it may. Prepare refuses only what is true for every wallet: the kill switch, the switch-on, a house wallet, an order that does not exist and an order the house delivers itself. If another applies, nothing is recorded. The door checks some things only after the signature is verified, so each spends the signature: the cap of five open records for one wallet, whether the wallet's balance covers the amount (a balance that cannot be read is refused there too), and a withdrawal by a wallet that did not make the record. The order's own checks also run a second time inside the commit, after the signature, so an order that changed in between is refused then. The rest are answered before the signature is spent. A withdrawal's prepare does read the record through the door's own keyless read, which reads the provider's NET balance (a read at most 30 seconds old) to say whether the record still covers, so that an order already delivered is refused before you sign. FREE to sign, no fee, no gas. The program is built but held off until the operator switches it on, and it stays out of the joint switch-on: until then a new record is refused before you sign, and a withdrawal only works on a record that exists. This moves no NET, and the house pays, holds and sells nothing through these tools. Never put a phone number, an email or a street address in any field. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the provider wallet's personal_sign, then call submit_net_delivery_record within 5 minutes. Cost and signer: free, no gas; the person signs the result with their own wallet or passkey, and the house never holds a key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"act": "<act>",
"principal": "<principal>",
"guaranteeId": "<guaranteeId>"
},
"name": "prepare_net_delivery_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| act | Yes | commit records a new delivery record, or withdraw ends one you hold. | |
| units | No | commit: the NET you say you intend to offer for this order, a whole number of NET units from 1 up (1 NET is 1,000,000 units), no more than the order's own price. It is your own number, never filled in for you. | |
| reason | No | withdraw: optional, one plain sentence, up to 280 characters. Only you ever read it back. | |
| orderId | No | commit: the id of the order you agreed to deliver (NETORD_…). | |
| principal | Yes | The 0x… address that signs: the provider's own wallet, the one that agreed to deliver the order. Address only, never a private key. | |
| guaranteeId | Yes | The delivery record's id: 1 to 80 letters, numbers and . _ : -. You choose it when you commit; the same id and the same terms read the record back, and a withdraw names the record to end. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| tool | No | ||
| funded | No | ||
| payUsd | No | ||
| workId | No | ||
| claimId | No | ||
| claimable | No | ||
| next_call | No | ||
| proofRule | No | ||
| fulfillableBy | No | ||
| definitionOfDone | No | ||
| needs_from_caller | No | ||
| notClaimableReason | No |