Help Center/
    
      
      Web3 Node Engine Service/
      
      
        
        
        Developer Guide/
        
        
        TRON Node Engine/
        
        
        Application Development/
        
      
      Using TronWeb to Send HTTP Requests
    
  
  
    
        Updated on 2023-12-06 GMT+08:00
        
          
          
        
      
      
      
      
      
      
      
      
  
      
      
      
        
Using TronWeb to Send HTTP Requests
Request example
const TronWeb = require('tronweb');
const tronWeb = new TronWeb({
fullHost: ' your-http-endpoint / your-credential / ', // TRON HTTP endpoint
  });
let account = " accountAddress "; // The account to be queried
const main = async () => {
    let accountBalance = await tronWeb.trx.getBalance(account);
    console.log("accountBalance:\n", accountBalance);
}
main();
 Response example
accountBalance: 1998899400
   Parent topic: Application Development
  
 Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
                The system is busy. Please try again later.
                
            
        For any further questions, feel free to contact us through the chatbot.
Chatbot