This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
const { Conflux } = require("js-conflux-sdk"); | |
const cfx = new Conflux({ | |
url: "http://mainnet-jsonrpc.conflux-chain.org:12537" | |
}); | |
function hex_to_ascii(str1) { | |
var hex = str1.toString(); | |
var str = ''; | |
for (var n = 0; n < hex.length; n += 2) { |
OlderNewer