-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed to get recent blockhash #242
Comments
دوست من هم به همین مشکل خوردم از پشتیبانی کمک خواستم
در تاریخ چهارشنبه ۴ سپتامبر ۲۰۲۴، ۰۹:۵۳ Judith George <
***@***.***> نوشت:
… I’ve integrated Solana Pay into my application, and it has been working
smoothly until recently. However, I’ve started encountering the following
error:
Error: failed to get recent blockhash: SolanaJSONRPCError: failed to get recent blockhash: Method not found
at Connection.getRecentBlockhash
This issue arises when calling the createTransfer method:
const transaction = await createTransfer(
connection,
provider.publicKey,
{
recipient,
amount,
splToken,
reference,
},
{ commitment: "confirmed" });
Environment
- Network: Devnet
- RPC Provider: Helius RPC
- Commitment Level: confirmed
- Library: Solana Pay ***@***.***/pay": "^0.2.5")
It appears that getRecentBlockhash has been deprecated, and this method is
still being used internally when creating a transfer transaction. This may
be leading to compatibility issues, particularly with newer RPC providers
like Helius.
—
Reply to this email directly, view it on GitHub
<#242>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXBABQU2I3LHCFAKAQZO25DZU2RNRAVCNFSM6AAAAABNTSJED6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYDINBRGM2DSNY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hey @jude98 I've added a PR that fixes this issue, if you need this urgently, change the version in your package.json to: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I’ve integrated Solana Pay into my application, and it has been working smoothly until recently. However, I’ve started encountering the following error:
This issue arises when calling the createTransfer method:
Environment
It appears that getRecentBlockhash has been deprecated, and this method is still being used internally when creating a transfer transaction. This may be leading to compatibility issues, particularly with newer RPC providers like Helius.
The text was updated successfully, but these errors were encountered: