Exception in thread "main" -32601: Method not found
RPC request: 'open_wallet' with params: {"password":"pass","filename":"name"}
at monero.common.MoneroRpcConnection.validateRpcResponse(MoneroRpcConnection.java:603)
at monero.common.MoneroRpcConnection.sendJsonRequest(MoneroRpcConnection.java:363)
at monero.common.MoneroRpcConnection.sendJsonRequest(MoneroRpcConnection.java:305)
at monero.wallet.MoneroWalletRpc.openWallet(MoneroWalletRpc.java:299)
at monero.wallet.MoneroWalletRpc.openWallet(MoneroWalletRpc.java:258)
at org.example.Main.main(Main.java:23)
MoneroWalletRpc should be initialized with a connection to a monero-wallet-rpc server, not monerod. Then you can create a wallet with a connection to monerod.
I tried to run the following code:
,And get the following error: