Closed zy166317 closed 1 week ago
This method is expected to be removed in solana-core v2.0. Please use getLatestBlockhash instead
Change your code to this:
recent, err := rpcClient.GetLatestBlockhash(context.TODO(), rpc.CommitmentFinalized)
if err != nil {
panic(err) // don't do this, handle the error yourself
}
Maybe the examples should be updated, no?
Updated the examples
panic: (*jsonrpc.RPCError)(0xc00009ac90)({ Code: (int) -32601, Message: (string) (len=16) "Method not found", Data: (interface {})
})