Draft a payment request
create_payment_requestDrafts a payment request and returns a shareable NimBooks link for the payer to approve in their wallet; never signs, sends, or marks paid.
Instructions
DRAFTS a payment request and returns a shareable link. This never signs anything, never sends anything, and never marks anything paid — the whole request rides inside the link, and only the payer’s wallet, with their approval, can actually move money. The link opens in the NimBooks app; the payment it produces carries the reference nimbooks:invoice:, which check_request_paid looks for later. Note: inside the link, the payload field amountNim is denominated in Luna by the app’s link format; this tool’s own output reports amountNim in NIM and amountLuna in Luna.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Fixed request id, for reproducible links. Generated when omitted. | |
| memo | No | What the request is for, up to 80 characters. Travels in the link, not on chain. | |
| payee | No | Address to be paid. Optional; defaults to the server’s configured address. | |
| expiry | No | When the request stops being valid: "1h", "24h", "7d", "none" (default), or an ISO 8601 timestamp. | |
| amountNim | Yes | Amount in NIM, as a decimal string — "12.5". Up to 5 decimals (1 NIM = 100000 Luna). |