我无法通过 HTTP 连接到 Hedera Testnet RPC 端点,\n确实,我间歇性地收到以下“未知错误”:\n\xe2\x80\x8b
\n[Request ID: fe7b9928-a23f-0d72-61a1-b7cd23658c01] Unknown error invoking RPC\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x80\x8b\n我正在使用以下 RPC 端点进行连接:\n\xe2\x80\x8b
\nhttps://testnet.hashio.io/api\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x80\x8b\n是否有替代(更可靠)的方法来连接到 Hedera 测试网?\n\xe2\x80\x8b
\n\xe2\x80\x8b\n我想使用 web3.js 或 ethers.js 与 Hedera 测试网进行交互。我该如何执行此操作?\n\xe2\x80\x8b\n我之前曾使用 与 Hedera Testnet 进行过交互hedera-sdk-js,\n例如使用以下代码:\n\xe2\x80\x8b
import {\n AccountBalanceQuery, \n Client\n} from "@hashgraph/sdk";\n\xe2\x80\x8b\nconst client = new Client({\n network: "testnet"\n});\n\xe2\x80\x8b\nconst accountId = \'0.0.3996280\';\nconst balance = await new AccountBalanceQuery()\n .setAccountId(accountId)\n .execute(client);\n \nconsole.log(\n `Balance of ${accountId} in Tinybars:`,\n balance.hbars.toTinybars().toString(10)\n);\n\xe2\x80\x8b\nRun Code Online (Sandbox Code Playgroud)\n\xe2\x80\x8b\n如何在 web3.js/ ethers.js 中执行与上述相同的操作?
\n