Last active
December 23, 2018 23:30
-
-
Save dskvr/7877658399ded632fd7960cf10ae6fe2 to your computer and use it in GitHub Desktop.
Using v20.0.0-beta3 with nodejs
This file contains 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
Show hidden characters
{ | |
"presets": ["@babel/preset-env"] | |
} |
This file contains 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
import { Api, JsonRpc } from 'eosjs'; | |
import JsSignatureProvider from 'eosjs/dist/eosjs-jssig'; // development only | |
import fetch from 'node-fetch'; // node only; not needed in browsers | |
const privateKeys = ["privateKeyHere"]; | |
const signatureProvider = new JsSignatureProvider(privateKeys); | |
console.log(signatureProvider) |
This file contains 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
{ | |
"name": "eosjs-test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "nodemon --exec babel-node index.js", | |
}, | |
"author": "szendvics", | |
"license": "ISC", | |
"dependencies": { | |
"eosjs": "20.0.0-beta3" | |
}, | |
"devDependencies": { | |
"@babel/cli": "^7.0.0-rc.1", | |
"@babel/core": "^7.0.0-rc.1", | |
"@babel/node": "^7.0.0-rc.1", | |
"@babel/preset-env": "^7.0.0-rc.1", | |
"nodemon": "^1.18.3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment