Bulk Buy For Many Receivers
tronsave_bulk_create_internal_ordersPurchases the same ENERGY or BANDWIDTH amount for up to 50 TRON receiver addresses in one batch, charging a TronSave internal balance and returning 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.
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": {
"resourceType": "<resourceType>",
"receivers": "<receivers>",
"unitPrice": "<unitPrice>",
"durationSec": "<durationSec>",
"resourceAmount": "<resourceAmount>",
"paymentAmount": "<paymentAmount>"
},
"name": "tronsave_bulk_create_internal_orders"
}
}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 | Resource bought for every receiver. | |
| paymentAmount | Yes | Total SUN for the whole batch = unitPrice x resourceAmount x number of receivers x ceil(durationSec / 86400) (so any rental under 1 day is charged as one full day), 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 |