activities_mine.md 2.1 KB

黑洞星活动

status

GET api/coin/status

returns

{
  "symbol": "doge",           // 当前 coin
  "icon":  "http://a.png",    // coin icon
  "price": 2.07,              // 单价(RMB)
  "step": 0.001,              // 每秒建议步长,可围绕此值随机递增
  "progress": 12.00123,       // 进度, 0 表示 stopped
  "total": 208                // 已获得总数
}
  1. 启动

启动后不支持手动停止

POST api/coin/boot

returns

{
    "symbol": "doge",           // 当前 coin
    "icon":  "http://a.png",    // coin icon
    "price": 2.07,              // 单价(RMB)
    "step": 0.001,              // 每秒建议步长,可围绕此值随机递增
    "progress": 12.00123,       // 进度, 0 表示 stopped
    "total": 208                // 已获得总数
}

启动成功后, progress>0, 用progress 作为开始

  1. 历史记录

GET api/coin/history?page=1&limit=30

returns

{
  "history": [{
               "symbol": "doge",
               "icon": "http://a.png",
               "amount": 12.00034,
               "ts": 1235345435,
               "from": "abcde034345dd",
               "to": "aabde2343df34",
               "out": 0/1     // 转入时. 数字前应显示 + 号, 转出时用 - 号, 最好颜色不同
                               // 当 =0 时显示 + 号,表示是一条挖矿记录
                               // "from" 为空, "to" 为用户设置的导出地址
               },{
             
             }]
}
  1. 更新提币地址

POST api/coin/addr

params

{
  "symbol": "doge",
  "addr": "aaabbbcccddd3343"
}

returns

{

}
  1. 导出/提币

POST api/coin/transfer

params

{
  "symbol": "doge",
  "amount": 100
}

returns

{

}
  1. 钱包

钱包协议增加字段

GET api/usr/balance

returns

{
    "now_money": "98876.00",
    "recharge": 0,
    "orderStatusSum": 1124,
    "coins": [      // 新增
        {
            "symbol": "doge",
            "icon": "http://a.png",
            "total": 123.43,
            "addr": "1243434345"
        }
    ]
  }