Nodejs-Sia API /consensus/validate/transactionset structure



  • Hi Sia Community

    I am playing with the Nodejs-Sia API. However, I am getting stuck trying to call "/consensus/validate/transactionset" through this Node API. The following code is my best attempt at calling it but I get a 'UnhandledPromiseRejectionWarning':

    siad.call({url: '/consensus/validate/transactionset',
               body: ("transaction id"),
             }).then((consensus) => {
              console.log(JSON.stringify(consensus))
            })}
    

    Thanks for any help you can provide.


Log in to reply