Commit or withdraw a buyer budget envelope (step 1 of 2)
prepare_net_envelopeBUYER BUDGET ENVELOPE: record the NET you say you may put toward named work in a work period, see it, or withdraw it. You say, in plain words, what the budget is for, how many NET units you cap it at, and when the work period starts and ends (commit), or you end the record (withdraw). FREE, a signed statement, no fee, no gas, and your NET never moves. An envelope is a record, never custody and never a lock: your NET stays in your own wallet, nothing is held or sent, and you can spend it or withdraw the record at any time, even when new program actions are stopped. It is not an offer on any job and pays no one. When you commit, the door checks the units against your wallet's fresh NET balance less everything it already stands behind (your offers, orders, reserves and other envelopes), and refuses if it does not cover; nothing is recorded then. You may name a board packet (workId) the budget is for; the work itself is posted, claimed, proven and accepted on the board by other people, and your offer there is your own signature. One NET is 1,000,000 units. Never put a phone number, an email or a street address in any field. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the buyer wallet's personal_sign, then call submit_net_envelope 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>",
"envelopeId": "<envelopeId>"
},
"name": "prepare_net_envelope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| act | Yes | commit a new envelope, or withdraw one you hold. | |
| endAt | No | commit: when it ends, an ISO time in the future, at most 365 days after startAt. | |
| units | No | commit: your cap in whole NET units, at least 1 (one NET is 1,000,000 units). | |
| reason | No | withdraw: optional, one plain sentence, up to 280 characters. | |
| workId | No | commit: optional. The id of a packet on the board this budget is for. | |
| outcome | No | commit: what this budget is for, in plain words, 8 to 300 characters. No phone number, email or street address. | |
| startAt | No | commit: when the authorized work period starts, an ISO time. | |
| principal | Yes | The 0x… address that signs: the wallet that holds the envelope. Address only, never a private key. | |
| envelopeId | Yes | The envelope's id: 1 to 80 letters, numbers and . _ : -. You choose it when you commit; the same id and the same terms read the envelope back. |
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 |