scala-network / scala-v7

A cryptocurrency aiming to use blockchain technologies to globally distribute wealth.
Other
83 stars 27 forks source link

wallet-rpc #22

Closed milaas closed 6 years ago

milaas commented 6 years ago

hi I try to get a connection with my pool payment processor- to the Stellite wallet- what setup I have to do to get a connection on this

"wallet": {
    "host": "127.0.0.1",
    "port": 18980
},
GreenCandlePrinter commented 6 years ago

Hello, You're using the wrong port, please try with 20189

luaus commented 6 years ago

Similiar issue here, except with the rpc itself. With daemon and wallet running with screen, here are the two outputs I am getting.

  1. With port 20189: ./stellite-wallet-rpc --wallet-file test --password 12345 --rpc-bind-port 20189 --disable-rpc-login Stellite 'Carbon v2' (v1.2.3.2-release) Logging to ./stellite-wallet-rpc.log 2018-05-28 13:22:06.649 7f2560bc3740 WARN wallet.rpc src/wallet/wallet_rpc_server.cpp:1853 Loading wallet... 2018-05-28 13:22:06.700 7f2560bc3740 WARN wallet.wallet2 src/wallet/wallet2.cpp:2522 Loaded wallet keys file, with public address: Se2fk6WSwtfJA153kR6SMeaCwMP2FhVNbc4hayh6bFpbd5DAvMUaY58Y8eSHou8aER3xUPK4Pj7FCCU8uArQ6adh1JaaCTVKo 2018-05-28 13:22:07.141 7f2560bc3740 INFO global contrib/epee/include/net/http_server_impl_base.h:70 Binding on 127.0.0.1:20189 2018-05-28 13:22:07.145 7f2560bc3740 ERROR net.http contrib/epee/include/net/http_server_impl_base.h:74 Failed to bind server 2018-05-28 13:22:07.146 7f2560bc3740 ERROR wallet.rpc src/wallet/wallet_rpc_server.cpp:1894 Failed to initialize wallet rpc server

  2. With port 20190: ./stellite-wallet-rpc --wallet-file test --password 12345 --rpc-bind-port 20190 --disable-rpc-login Stellite 'Carbon v2' (v1.2.3.2-release) Logging to ./stellite-wallet-rpc.log 2018-05-28 13:14:56.168 7f6de1a98740 WARN wallet.rpc src/wallet/wallet_rpc_server.cpp:1853 Loading wallet... 2018-05-28 13:14:56.214 7f6de1a98740 WARN wallet.wallet2 src/wallet/wallet2.cpp:2522 Loaded wallet keys file, with public address: Se2fk6WSwtfJA153kR6SMeaCwMP2FhVNbc4hayh6bFpbd5DAvMUaY58Y8eSHou8aER3xUPK4Pj7FCCU8uArQ6adh1JaaCTVKo 2018-05-28 13:14:56.800 7f6de1a98740 INFO global contrib/epee/include/net/http_server_impl_base.h:70 Binding on 127.0.0.1:20190 2018-05-28 13:14:56.801 7f6de1a98740 WARN wallet.rpc src/wallet/wallet_rpc_server.cpp:1898 Starting wallet rpc server

It just hangs at starting wallet rpc forever

donovansolms commented 6 years ago

I don't think it's hanging, it's waiting for calls to happen.

I just tested, by doing the following:

  1. stellited it will bind on 127.0.0.1:20189
  2. ./stellite-wallet-rpc --rpc-bind-port 8080 --wallet-file first-test-wallet --password test to bind the RPC on 8080, but this can be anything
  3. Check the username/password in the file generated
  4. Test with a transfer of 10 XTL
    curl -X POST http://127.0.0.1:8080/json_rpc -H 'Content-Type: application/json' -u monero:QofBx7z5niiZxAoVne+tlg== --digest -d '{
    "jsonrpc":"2.0",
    "id":"0",
    "method":"transfer_split",
    "params":{
    "destinations":[
      {"amount":1000,"address":"Se2aT5ucycyNxYx5EyRJkCX1m42QCvW1HZ6RHBZn6MBnRq7hEj7vnZUeEnRBwJfo44TKEtnkPytXURqeimw83qce2iQQGnHKK"}
    ],
    "mixin":0,
    "payment_id": "7e52c5266de9fede7fb3abc0cd88f937b38b51426f7b34ff99729d28ce4e1142",
    "get_tx_key": true
    }
    }'