wdk_create_rgb_invoice
Create an RGB invoice to receive an RGB asset such as USDT. Use the invoice as the receiver address for a KaleidoSwap order with receiver_address_format 'RGB_INVOICE'.
Instructions
Create an RGB invoice to receive an RGB asset (e.g. USDT from a KaleidoSwap). Pass the returned invoice string as receiver_address when calling kaleidoswap_place_order with receiver_address_format="RGB_INVOICE".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wdk_create_rgb_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Expected amount to receive in display units (e.g. 65.5 for 65.5 USDT). Omit for any amount. | |
| asset_id | No | RGB asset ID to receive. Omit to create a generic invoice for any asset. | |
| duration_seconds | No | Invoice expiry in seconds (default: 86400 = 24h) |