Pinned Loading
-
-
-
-
creates a new ethereum address using...
creates a new ethereum address using Web3.js 1const ethNodeURL = `http://127.0.0.1:3334`;
2const web3 = new Web3(new Web3.providers.HttpProvider(ethNodeURL));
3const password = "superhypermegastrongpassword"
4const newWallet = await web3.eth.personal.newAccount(password);
5 -
writeFilesNodejs.js
writeFilesNodejs.js 1const dir = "/folderpath";
2if (!fs.existsSync(dir)) {
3fs.mkdirSync(dir);
4}
5fs.writeFileSync(
-
Example send ETH token using Web3.js
Example send ETH token using Web3.js 1const Web3 = require("web3");
2import Tx from "ethereumjs-tx";
3import { usdtABI, usdtAddress } from "../../helpers/currencies/usdt";
4import { ethHost, net, chainId } from "../../ethhost";
5import fs from "fs";
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.