1.1.8 • Published 5 years ago
web3true v1.1.8
Web3t.js - TrueChain Plus ver
This is the TrueChain JavaScript API developed based on the Ethereum version.
Installation
install
npm install web3true
or update
npm update web3true
Usage
var Web3t = require('web3true');
// connect to TrueChain network
var web3t = new Web3t('http://localhost:8545', 'etrue')
web3t.eth.getBlockNumber().then(console.log)
// print: block number
console.log(web3t.currentProvider.type)
// print: "etrue"
// switch network type
// incorrect network correspondence can cause methods to fail!
web3t.setProvider('http://localhost:8545', 'eth')
web3t.eth.getBlockNumber().then(console.log)
// Returned error: The method eth_blockNumber does not exist/is not available
console.log(web3t.currentProvider.type)
// print: "eth"
Documentation
The features for the TrueChain network can be seen in this document (Chinese) Ethereum-version documentation can be found at read the docs. Most methods are called in the same way.
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago