skynetcap / solanaj

Solana RPC client written in Java
MIT License
94 stars 50 forks source link

Prompt when transferring funds:Method not found #42

Closed roway168 closed 2 months ago

roway168 commented 3 months ago

org.p2p.solanaj.rpc.RpcException: Method not found at org.p2p.solanaj.rpc.RpcClient.call(RpcClient.java:101) at org.p2p.solanaj.rpc.RpcApi.getRecentBlockhash(RpcApi.java:61) at org.p2p.solanaj.rpc.RpcApi.getRecentBlockhash(RpcApi.java:51) at org.p2p.solanaj.rpc.RpcApi.sendTransaction(RpcApi.java:87) at org.p2p.solanaj.rpc.RpcApi.sendTransaction(RpcApi.java:115) at org.p2p.solanaj.rpc.RpcApi.sendTransaction(RpcApi.java:70) at org.p2p.solanaj.token.TokenManager.transferCheckedToSolAddress(TokenManager.java:95)

skynetcap commented 2 months ago

getRecentBlockhash RPC Method

Returns a recent block hash from the ledger, and a fee schedule that can be used to compute the cost of submitting a transaction using it.

Deprecated Method This method is expected to be removed in solana-core v2.0. Please use getLatestBlockhash instead.