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
transfer failed:"message": "no connection to daemon" #4255
Comments
Which version of monero ? "paras" is a typo, you should be using "params". getbalance does not need to connect to a daemon. The daemon might be busy syncing. 4 is too low a mixin, the minimum is currently 6 (except for special cases). |
1.monero version is "Monero 'Lithium Luna' (v0.12.2.0-release)" |
What is the output of "status" in monerod ? |
From the machine running the wallet: |
Probably a timeout then. Try 0.12.3.0, this fixed some timeout issues. |
Current master also has faster RPC used in transfer calls. That should help if it was due to this. |
Most likely fixed. Some RPCs were taking quite some time, causing the wallet to time out. +resolved |
1.I run the"./monerod --rpc-bind-ip=127.0.0.1 --rpc-bind-port=18081 --detach" to run the daemon
2.I run the "./monero-wallet-rpc --wallet-file test-wallet--password xxxx --rpc-bind-port 18083 --disable-rpc-login" to start the rpc service,
3.then I use the rpc to send monero and get balance of the wallet,the result is follow:
#######
root@iZrj978np1rga9wqa14xcsZ:~# curl -X POST http://127.0.0.1:18083/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"transfer","params":{"destinations":[{"amount":100000000000,"address":"492xPwbbNuP5JNZK6nsuYDfGFC8BbiCsUbbqHKWb5rsUSp38Ex3hH9JXG3bCEbkkH7eDq1YE3qfdJNaXSrnW8tN5LeZFcsd"}],"mixin":4,"get_tx_key": true}}' -H 'Content-Type: application/json'
{
"error": {
"code": -38,
"message": "no connection to daemon"
},
"id": "0",
"jsonrpc": "2.0"
}
root@iZrj978np1rga9wqa14xcsZ:~ curl -X POST http://127.0.0.1:18083/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"getbalance","paras":{"account_index":0}}' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",
"result": {
"balance": 635758360000,
"multisig_import_needed": false,
"per_subaddress": [{
"address": "46WZeVXxqCjXssS8mKpVm4cvapyR9jT7YG5p9ANUj15bQUcmASSHq2U4uEUcovBCVkD6Bu7Vdshn6ZJDnvSKgszvEus1Wqp",
"address_index": 0,
"balance": 635758360000,
"label": "Primary account",
"num_unspent_outputs": 1,
"unlocked_balance": 635758360000
}],
"unlocked_balance": 635758360000
}
}root@iZrj978np1rga9wqa14xcsZ:~
what I want to know is that I can get the balance,it proves that wallet service run correctly and connected the daemon,why transfer failed with "no connection to daemon"?
The text was updated successfully, but these errors were encountered: