newbit-eos-assistant
v1.2.6
Published
newbit-eos-assistant
Readme
newbit-eos-assistant
Install
npm install --save newbit-eos-assistantUsage
const newbitEosAssistant = require('newbit-eos-assistant');
/**
* @description 获取私钥
* @param {string} username - 账户
* @param {string} password - 账户密码
* @param {string} url - 对接url
* @param {string} token - 平台token
* @returns {string} 私钥
*/
newbitEosAssistant.getPrikey(username, password, url,token).then((res) => {
console.log('res', res)
}).catch((err) =>{
console.log('err', err)
})
/**
* @description 获取公钥
* @param {string} username - 账户
* @param {string} password - 账户密码
* @param {string} url - 对接url
* @param {string} token - 平台token
* @returns {string} 公钥
*/
newbitEosAssistant.getPubkey(username, password, url,token).then((res) => {
console.log('res', res)
}).catch((err) =>{
console.log('err', err)
})
/**
* @description 账号注册
* @param {string} username - 账户
* @param {string} password - 账户密码
* @param {string} url - 对接url
* @param {string} token - 平台token
* @returns {string} 注册成功信息
*/
newbitEosAssistant.register(username, password, url,token).then((res) => {
console.log('res', res)
}).catch((err) =>{
console.log('err', err)
})
