newbit-eos-assistant

1.2.6 • Public • Published

newbit-eos-assistant

npm version

Install

npm install --save newbit-eos-assistant

Usage

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)
    })
 

Readme

Keywords

Package Sidebar

Install

npm i newbit-eos-assistant

Weekly Downloads

4

Version

1.2.6

License

MIT

Unpacked Size

10.6 kB

Total Files

4

Last publish

Collaborators

  • newbit.global