constaxios=require('axios');//npm install axios if you don have the module installed`let options ={ url:"https://api.chainup.net/tron/mainnet/<YOUR_API_KEY>", method:"post", headers:{"content-type":"application/json","CONSISTENT-HASH":"true"}, body:JSON.stringify({"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1})};axios(options).then(response=>{console.log('Post successful: response:',response.data);}).catch(error=>{console.error('An error has occurred:', error);});