wdk_send_asset
Send RGB assets on-chain to a recipient using their RGB invoice. Use this to fund KaleidoSwap orders with deposit addresses in RGB_INVOICE format.
Instructions
Send an RGB asset (e.g. USDT) on-chain to a recipient identified by their RGB recipient_id. Use this to fund a KaleidoSwap order whose deposit_address.format is "RGB_INVOICE" — pass the deposit_address.address as recipient_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to send in display units (e.g. 65.5 for 65.5 USDT). Will be converted to raw units using asset precision. | |
| asset_id | Yes | RGB asset ID to send, e.g. 'rgb:2JEUOrsc-JsWuPGF-3cr9SSv-mqqRmaz-8waf0gl-8vAcOXw' | |
| fee_rate | No | On-chain fee rate in sat/vbyte (default: node decides) | |
| recipient_id | Yes | Recipient identifier from an RGB invoice (deposit_address.address for RGB_INVOICE format) | |
| transport_endpoints | No | Optional transport endpoints for the RGB transfer |