Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. const { exec } = require('child_process');
  2. exec('pandacoind gettransaction 18469a155d91d985691edd9925c9280577d0800960734e584849548c41e26d70', (err, stdout, stderr) => {
  3. //exec('pandacoind getinfo', (err, stdout, stderr) => {
  4. if (err) {
  5. // node couldn't execute the command
  6. return;
  7. }
  8.  
  9. // the *entire* stdout and stderr (buffered)
  10. console.log(`${stdout}`);
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement