Tronsave
🇬🇧 English
🇬🇧 English
  • 📗INTRODUCTION
    • What is Tronsave ?
    • Why Tronsave?
  • Buyer
    • How to buy Energy ?
      • Buy on the Website
      • Buy on Telegram
        • 1. Create a Tronsave telegram account
        • 2. How To Deposit TRX
        • 3. Get the Tronsave API Key
        • 4. How to buy on Telegram
    • Extend
      • Quick extend
      • Advance
  • 🏬Seller
    • Get Energy by Staking 2.0
    • Permission
    • Sell Energy
      • Manual Sell
      • Auto Sell
      • Sell Suggestion
  • DEVELOPER
    • Get API key
      • On the Website
      • On Telegram
    • Buy Resources (v2)
      • Use Signed Transaction
        • Estimate TRX
        • Get Signed Transaction
        • Create order
      • Use API Key
        • Get Internal Account Info
        • Get Order Book
        • Estimate TRX
        • Create order
        • Get one order details
        • Get Internal Account Order History
    • Extend Orders (v2)
      • Step 1: Get Extendable Delegates
      • Step 2: Extend Request
    • Rest API v0
      • Buy on Rest API
        • Use Signed Transaction
          • Estimate TRX
          • Get Signed Transaction
          • Create order
          • Demo
        • Use API Key
          • Get Internal Account Info
          • Get Order Book
          • Estimate of TRX
          • Create order
          • Get one order details
          • Get Internal Account Order History
      • Extend with Rest API
  • 🤝Referrer
    • Referrals
  • 💡FAQ
    • Questions for Energy market
    • Calculate APY in TronSave
    • How to connect wallet in Tronsave?
    • Team of Service
  • 👨‍💻Full Code Example
    • Code Example (v2)
      • Buy Resource by API using private key
      • Buy Resources by API using api key
      • Extend order by API using api key
      • Extend order by API using private key
    • Code Example (v0)
      • Buy energy by API using private key
      • Buy energy by API using api key
      • Extend order by API using api key
Powered by GitBook
On this page
  • Buy API (Postman)
  • Buy Energy with Signed Transaction Flow
  • Step 1: Prepare Wallet and Private Key
  • Step 2: Estimate TRX Required
  • Step 3: Generate a Signed Transaction
  • Step 4: Create an Order
  • API List for Testing - TRON Nile Testnet
  1. DEVELOPER
  2. Buy Resources (v2)

Use Signed Transaction

PreviousBuy Resources (v2)NextEstimate TRX

Last updated 1 day ago

Buy API (Postman)

Buy Energy with Signed Transaction Flow

Step 1: Prepare Wallet and Private Key

  1. Ensure you have access to the wallet's private key you intend to use for the transaction.

  2. Verify that the wallet has sufficient TRX balance to execute the transaction.

Step 2: Estimate TRX Required

  • The API will be used to calculate the TRX needed for the desired energy amount and rental duration.

Step 3: Generate a Signed Transaction

  1. Option 1: to generate the signed transaction using the wallet's private key.

  2. Option 2: Use Tronsave to generate the signed transaction automatically.

Step 4: Create an Order

  • Use the to finalize the transaction.

    • Pass the response from the signed transaction (if using the API) or your custom-signed transaction.

    • Include the estimated TRX amount and other required parameters to create the energy purchase order.

API List for Testing - TRON Nile Testnet

  • Estimate TRX: POST https://api-dev.tronsave.io/v2/estimate-buy-resource

  • Get Signed Transaction: POST https://api-dev.tronsave.io/v2/signed-tx

  • Create order: POST https://api-dev.tronsave.io/v2/buy-resource

Estimate of TRX
Create Order API
Write your function
Get Signed Transaction API