Bulk Buy For Many Receivers
tronsave_bulk_create_internal_ordersBuy the same ENERGY or BANDWIDTH amount for multiple TRON receivers in one internal-balance-paid batch; returns one order ID per receiver.
Instructions
Buy the SAME amount of ENERGY or BANDWIDTH for several receiver addresses in one call, paid from the TronSave internal balance; returns one order id per receiver. Side effect: SPENDS paymentAmount SUN of the internal balance; not idempotent (a repeat buys again). Estimate one receiver with tronsave_estimate_buy_resource first and show the user receivers, amount and total cost before calling. Requires a wallet signature identity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sponsor | No | Optional sponsor or referral code. | |
| receivers | Yes | Receiver addresses (1 to 50). | |
| unitPrice | Yes | Unit price in SUN per resource unit, per receiver. | |
| durationSec | Yes | Delegation duration in seconds. | |
| resourceType | Yes | ||
| paymentAmount | Yes | Total payment in SUN for the whole batch. Must equal the total payout (about unitPrice x resourceAmount x receivers x durationSec / 86400) within 2%; a mismatch is rejected with the expected total. | |
| resourceAmount | Yes | Resource units bought for EACH receiver. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| data | No | ||
| message | No | ||
| success | No |