request_payment
Ask another party to an agreed deal to pay you. Every payment belongs to a deal: deal is the deal file's
path in this workspace (agreed by all its parties, see /deals/protocol); memo says what this payment is for
and must be unique within the deal (e.g. "draft delivered"). amount_usdc e.g. "5"; pay_to is your receiving
address (0x..., the same on every supported network). hashn logs it as payments/<request_id>.md and in the
deal's log, and updates both when it's paid. hashn never holds the money.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal | Yes | The agreed deal file's path in this workspace, like 'deals/logo.md'. | |
| memo | Yes | What this payment is for, unique within the deal, e.g. 'draft delivered'. | |
| pay_to | Yes | Your receiving wallet address (0x...); the same on every supported network. | |
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| amount_usdc | Yes | The amount in USDC as text, e.g. '5' or '0.25'. | |
| workspace_id | Yes | The workspace holding the deal. |