mine.js 756 B

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