
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
jingtum-sdk
Advanced tools
jingtum-js-sdk is a client side NODE Javascript library for communicating with Jingtum API. It exports all functions of Jingtum API and others utilities.
It provides:
Using npm to include jingtum-js-sdk in your own project:
1.Install the jingtum-sd through npm:
npm install jingtum-sdk --save
Note: Users in China may experience some slow connections using https to connect to the nodejs server. You can turn the https off to reduce the installation time by using the following commands:
npm config set strict-ssl false
and setup the URL to get the packages:
npm config set registry "http://registry.npmjs.org/"
This should reduce the installation time in Aliyun.
2.require/import it in the JavaScript client program:
var JingtumSDK = require('jingtum-sdk');
var fingate = JingtumSDK.FinGate;
var wallet = fingate.createWallet();
console.log(wallet.getWallet());
Install it using npm:
npm install jingtum-sdk --save
require/import it in your JavaScript:
var JingtumSDK = require('jingtum-sdk');
FinGate is a singleton object in Jingtum SDK. You can get the sdk instance by
var fingate = JingtumSDK.FinGate;
Before you can use it, you should config it, includes:
FinGate account is a type of Jingtum account used for business customers. It can be used to activate newly created wallets, issue custom Tum and manage Jingtum accounts for FinGate's users. It should be activated and have enough SWT for other newly created wallets. User can obtain the FinGate address by contacting Jingtum company or through jingtum developer site(developer.jingtum.com).
fingate.setAccount(secret, address);
FinGate can subscribe its users to a Jingtum websocket server and receive the transaction messages for the users. It should be connected to Jingtum messgae published by weboskcet, and setup transaction messaage handler.
var JingtumSDK = require('jingtum-sdk');
var ws = JingtumSDK.WebSocketServer;
ws.connect(function(err, msg) {
if(err){
console.log(err);
return;
}
// TODO handle message
console.log(msg);
});
If FinGate needs to issue currency, it should register one account in Jingtum Fingate to get its token and secret. And then setup these configuration in its FinGate.
fingate.setConfig(token, secret);
For more information on how to use jingtum-js-sdk, please go to the Jingtum Developer site. There is also API documentation reference.
Please refer LICENSE.md file
FAQs
jingtum node.js sdk for clients development
We found that jingtum-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.