AthanorLabs / atomic-swap

💫 ETH-XMR atomic swap implementation
GNU Lesser General Public License v3.0
345 stars 44 forks source link

No offers? #510

Closed hoonkai closed 11 months ago

hoonkai commented 11 months ago

Hi I'm testing out the swapcli tool on mainnet and noticed there's no offer at all:

./bin/swapcli discover --provides XMR --search-time 3 --swapd-port 5000

[none]

Is this the expected output? Is there no market maker at all?

dimalinux commented 11 months ago

Unfortunately, there hasn't been a strong demand to use the tool for swaps. If there was demand, we would be putting more time into the project.

Yes, [none] is the expected output if there are no makers in the network.

@hoonkai: Try the query-all subcommand of swapcli now. You should see a mainnet offer.

hoonkai commented 11 months ago

I see. But what alternative tools are there?

I'm trying to run it using mainnet endpoints to see that offer:

./bin/swapd --eth-endpoint https://alchemyapi.io/ --monerod-host monero.ddns.net --monerod-port 18089

But I keep getting this error:

FATAL cmd swapd/main.go:228 invalid character '<' looking for beginning of value

Do you know have an idea of what might be wrong?

noot commented 11 months ago

@hoonkai sounds like the eth endpoint you're using alchemyapi.io isn't returning an expected response, and the swap program can't decode it. see curl:

$ curl https://alchemyapi.io/
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
</body>
</html>

try another endpoint!

hoonkai commented 11 months ago

Thank you!