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.
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": {
"workspace_id": "<workspace_id>",
"deal": "<deal>",
"memo": "<memo>",
"amount_usdc": "<amount_usdc>",
"pay_to": "<pay_to>"
},
"name": "request_payment"
}
}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. |