1.0.0 • Published 4 years ago

qkd-sdk v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

乾坤袋 SDK

安装

npm install qkd-sdk

使用

const SDK = require('qkd-sdk');

const api = new SDK({
  qkd_api_url: '',
  qkd_api_key: '',
  api_key: '',
  secret_key: '',
});

const result = await api.getCoins();
console.log(result);

API 方法

  • 查询币种列表 getCoins
  • 获取充值记录 getDepositRecord
  • 获取提现记录 getWithdrawRecord
  • 发起提币申请 withdraw
  • 分配/获取充币地址 distributionDepositAddress
  • 检查消息是否合法 checkMessageValid
  • 按订单ID查询提现记录 getWithdrawById
  • 查询币种详情 getCoinDetail
  • 主动触发重发消息 messageRetry
  • 参数排序 sort
  • 签名校验 verify