New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tronweb

Package Overview
Dependencies
Maintainers
1
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tronweb - npm Package Compare versions

Comparing version 1.0.2 to 1.0.4

37

package.json
{
"name": "tronweb",
"version": "1.0.2",
"version": "1.0.4",
"description": "A jssdk that encapsulates the TRON HTTP request",

@@ -14,3 +14,4 @@ "main": "lib/index.js",

"build": "nwb build-web-module",
"clean": "nwb clean-module"
"clean": "nwb clean-module",
"test": "cross-env NODE_ENV=test NWB_TEST=true mocha --require babel-register test/*-test.js"
},

@@ -20,2 +21,3 @@ "dependencies": {

"bignumber.js": "^7.2.1",
"chai": "^4.1.2",
"ethers": "^3.0.26",

@@ -25,5 +27,32 @@ "js-sha3": "^0.7.0"

"devDependencies": {
"nwb": "0.21.x"
"nwb": "0.21.x",
"babel-preset-flow": "6.23.0",
"babel-register": "6.26.0",
"cross-env": "5.2.0",
"babel-cli": "6.26.0",
"babel-core": "6.26.3",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-inferno": "5.1.0",
"babel-plugin-istanbul": "4.1.6",
"babel-plugin-lodash": "3.2.11",
"babel-plugin-react-transform": "3.0.0",
"babel-plugin-syntax-dynamic-import": "6.18.0",
"babel-plugin-syntax-jsx": "6.18.0",
"babel-plugin-transform-decorators-legacy": "1.3.5",
"babel-plugin-transform-react-constant-elements": "6.23.0",
"babel-plugin-transform-react-jsx": "6.24.1",
"babel-plugin-transform-react-jsx-self": "6.22.0",
"babel-plugin-transform-react-jsx-source": "6.22.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.10",
"babel-plugin-transform-runtime": "6.23.0",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.7.0",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"babel-preset-stage-1": "6.24.1",
"babel-preset-stage-2": "6.24.1",
"babel-preset-stage-3": "6.24.1",
"babel-runtime": "6.26.0"
},
"author": "wujiaolong",
"author": "wujiaolong&lizhengwei",
"homepage": "https://tron.network",

@@ -30,0 +59,0 @@ "license": "MIT",

28

README.md

@@ -13,25 +13,21 @@ # TronWeb

```
const TronWeb = require('tronWeb')
const solidityNode = TronWeb.getSolidityNode({apiUrl:''})
const fullNode = TronWeb.getFullNode({apiUrl:''})
const address = 'TYrWfWFGwrWLwNvE4T12aQGeur9UdjQJom'
let tronWeb = new TronWeb('http://52.44.75.99:8090');
tronWeb.setEventServer('http://52.44.75.99:18889');
tronWeb.defaultAccount = 'TPL66VK2gCXNCD7EJg9pgJRfqcRazjhUZY';
tronWeb.defaultPk='da146374a75310b9666e834ee4ad0866d6f4035967bfc76217c5a495fff9f0d0';
// ES7
async getAccountInfo(){
const data = await solidityNode.getAccountInfo(address);
console.log(data);
}
// or promise
async getBalance(){
const res = await tronWeb.getBalance(this.account.value);
this.setState({
data:res
})
}
getAccountInfo(){
solidityNode.getAccountInfo(address).then(res=>{
console.log(res);
})
}
```
# GitHub
https://github.com/gitwujiaolong/tronWeb.git
# docs
[document](http://doc.tron.network/)
[官方文档](http://doc.tron.network/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc