Create a 'pay me in any crypto' link
create_payment_linkCreate a shareable payment link that is also a trackable invoice. The payer can pay with ANY token on ANY chain; you receive exactly the token you choose (e.g. 50 USDC on Base). Returns an invoice_id: call check_payment to see when it is paid, then get_receipt for signed proof. Great for agents that sell services to humans or other agents. No account needed.
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": {
"token": "<token>",
"recipient": "<recipient>"
},
"name": "create_payment_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test | No | Test invoice: only test-mode payments count toward it (great for building and testing your flow for free). | |
| chain | No | Chain to receive on, e.g. 'base'. | |
| label | No | Optional note shown to the payer, e.g. 'Invoice #12' (max 80 chars). | |
| token | Yes | Token to receive, e.g. 'USDC'. | |
| amount | No | Optional fixed amount, e.g. '50'. Leave empty to let the payer choose. | |
| referrer | No | Optional: your NEAR account (e.g. 'myagent.near'). You earn 1/3 of the service fee on every swap routed with it. The user pays the same. | |
| recipient | Yes | Your address on that chain. | |
| webhook_url | No | Optional https URL. When the invoice is paid, Swap Ripper POSTs a signed notification (with the receipt) to it, so you don't have to poll. |