gabstv / go-monero

A Monero RPC Wallet client implementation written in Go (Golang)
MIT License
59 stars 22 forks source link

monero-wallet-rpc server #4

Open carrie143 opened 6 years ago

carrie143 commented 6 years ago

hello,what do you mean " if you have both the server (monero-wallet-rpc server and the client on the same machine"?when I run the command ,it returned "This is the RPC monero wallet. It needs to connect to a monero",what I should do?

gabstv commented 6 years ago

Hello, the command described on the readme runs a Monero RPC node on your machine. You also need to run at least one Monero node along with the wallet RPC:

monero-wallet-cli --testnet --trusted-daemon --wallet-file ~/testnet/mywallet.bin --password "" --log-file ~/testnet/mywallet.log

Also, the wallet file ~/testnet/mywallet.bin needs to exist prior to running the command. You can create a test wallet like:

export wseed1='frown veteran donuts rural picked riots inexact itches waveform itches irony entrance ourselves giving perfect yields narrate tunnel adult bite vigilant agreed large weird itches'
monero-wallet-cli --testnet --generate-new-wallet ~/testnet/mywallet.bin  --restore-deterministic-wallet --electrum-seed="$wseed1" --password "" --log-file ~/testnet/mywallet.log