Skip to content
support library for Z.com Clound BlockChain.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
lib
sample
.gitignore
CHANGELOG.md
LICENSE.txt
README.md
index.js
package-lock.json
package.json

README.md

EthClient

License

License is here.

Apart from forbidding the use of this software for criminal activity, this license is similar to the MIT License.

GMO Blockchain Open Source Common License document is here.

Installation

Node.js

npm install eth-client

HTML

<html>
  <body>
    <script src="eth-client.min.js"></script>
  </body>
</html>

Usage

ethClient.Account.create(baseUrl, password, function(err, _account) {
    account = _account;
    contract = new ethClient.AltExecCnsContract(account, CnsAddress);
});

contract.call(password, ContractName, FunctionName, [ Args ], ABI, callback);

Upgrade

If you wish to upgrade from a version older than "1.0.0", you must also upgrade the serialized account.

ethClient.Account.upgradeOldSerialized(oldSerializedAccount, password, function(err, newSerializedAccount) {
    account =  ethClient.Account.deserialize(newSerializedAccount);
});
You can’t perform that action at this time.