mine.js 705 B

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