-1
const axios = require("axios");

const test = async () => {
  const node = "https://api.avax-test.network:443";

  const healthResponse = await axios.post(${node}/ext/health, {
    jsonrpc: "2.0",
    id: 1,
    method: "health.health",
  });
  console.log("health", healthResponse.data);
};

return test()
  .then()
  .catch((err) => {
    console.error(err);
  });

错误:请求失败,状态码 404

4

0 回答 0