This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
【confirmTransaction】 push an error on alchemy : Unsupported method: ping. See available methods at https://docs.alchemy.com/alchemy/documentation/apis #2018
Labels
question
Add this to close an issue with instructions on how to repost as a question on Stack Exchange
Overview
when i use
sendAndConfirmTransaction
, i sometimes can't got the transaction status , then i enter https://dashboard.alchemy.com/logs/ , it throw an error:Steps to reproduce
i think the bug maybe from
confirmTransaction
, so i create a lillte demo, to reproduce the bughere is my code:
https://codesandbox.io/p/sandbox/romantic-bohr-tr496j?file=%2Fsrc%2Findex.js
【you need replace your alchemy key in the
rpcUrl
】when i click the buton , i got error in https://dashboard.alchemy.com/
Description of bug
the api
confirmTransaction
can't wait the transanction status , i say the api is deprecated, #792 but i found it in the source https://github.com/solana-labs/solana-web3.js/blob/master/packages/library-legacy/src/connection.ts#L3734are we deprecated it ?
thank you very much
i am so sorry for that i am not good at english
========
chinese version [中文版]:
我在使用 sendAndConfirmTransaction 发送交易的时候,经常 等不到交易,经常超时,我增加了超时时间,还是会出错
我的节点用的是 alchemy的, 在 alchemy的后台,我查看了日志,报错是
经过简单排查,我发现 是 api
confirmTransaction
导致了这个超时我创建了一个最小的demo,来复现这个错误 https://codesandbox.io/p/sandbox/romantic-bohr-tr496j?file=%2Fsrc%2Findex.js
[使用demo的时候,需要把 变量 rpcUrl 里的 key 替换为 你在 alchemy的 key]
点击 demo里的按钮,会发起一个查询 交易的请求, 这个请求极大概率, 99%的概率, 会在 alchemy 报错
The text was updated successfully, but these errors were encountered: