Quickstart
Buy your first Energy in under 10 minutes — website or API.
Path A — Buy on the website (no code)
Path B — Buy via the API (for developers)
# 1. Estimate cost
curl -X POST https://api.tronsave.io/v2/estimate-buy-resource \
-H "Content-Type: application/json" \
-d '{"receiver":"YOUR_TRON_ADDRESS","resourceType":"ENERGY","resourceAmount":65000,"durationSec":900,"unitPrice":"MEDIUM"}'
# 2. Create the order
curl -X POST https://api.tronsave.io/v2/buy-resource \
-H "apikey: YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"receiver":"YOUR_TRON_ADDRESS","resourceType":"ENERGY","resourceAmount":65000,"durationSec":900,"unitPrice":"MEDIUM","options":{"allowPartialFill":true,"preventDuplicateIncompleteOrders":true}}'Testing first?
Production
Testnet (Nile)
Next steps
Last updated