Pick a coin for an invoice
select_invoice_payment_methodChooses the coin for an invoice and returns the deposit address and exact amount to send (in the invoice payment attempt) — use it when you pass the address to the payer yourself instead of pay_url.
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": {
"invoice_id": "<invoice_id>",
"asset_id": "<asset_id>"
},
"name": "select_invoice_payment_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | A code from get_invoice_payment_methods. | |
| invoice_id | Yes | invoice_id from create_invoice. |