mine.js 600 B

123456789101112131415161718192021222324252627282930313233
  1. import request from "./../utils/request.js";
  2. /**
  3. * 黑洞矿井相关接口
  4. *
  5. */
  6. /**
  7. * 启动
  8. */
  9. export function bootCoin() {
  10. request.post("coin/boot");
  11. }
  12. /**
  13. * 历史记录
  14. */
  15. export function coinHistory(page = 1, limit = 30) {
  16. request.get("coin/history?page=" + page + "&limit=" + limit);
  17. }
  18. /**
  19. * 更新钱包地址
  20. */
  21. export function coinAddress(address, symbol = "doge") {
  22. request.post("coin/addr", { symbol: symbol, addr: address });
  23. }
  24. /**
  25. * 提币
  26. */
  27. export function coinTransfer(amount, symbol = "doge") {
  28. request.post("coin/transfer", { symbol: symbol, amount: amount });
  29. }