1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to use web3js to put it in json?

Discussion in 'Finance' started by Raka Widhi Antoro, Oct 8, 2018.

  1. I have used web3js by using it in the form of node(npm). But I don't know how to extract some data generated from nodes.

    Does anyone know this web3js so the results can be changed to json form? Because I need this so that the data generated can be entered into the variable, so that I can then process the variable into the program.

    Like let's say I use the web3-eth-accounts package as follows (use node with cmd) :

    var Accounts = require('web3-eth-accounts')
    var accounts = new Accounts('https://rinkeby.infura.io/')
    accounts.create()


    Example result from node : [​IMG]

    Well, for the above does anyone know to be converted into json form?

    Login To add answer/comment
     

Share This Page