"Bad Request" when requesting single-use Ethereum or Monero address

When selecting “Get single-use [Ethereum|Monero] address” under “Buy Account Credit by Bitcoin, [etc.]” the bot is currently returning “Bad Request”.

I ran a reconstructed query from the code, looks something like:

$ curl -i -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST -d '{"fixed":false, "currency_from": "xmr", "currency_to": "bch", "amount": 0.1, "address_to": "<ADDR>" }' 'https://api.simpleswap.io/create_exchange?api_key=<PROD KEY>'

And it worked fine!

Then I ran that exact same line from scarlet and got:

HTTP/2 400                                                                                                                                                       
date: Thu, 05 Jun 2025 17:57:41 GMT
content-type: application/json; charset=utf-8
content-length: 109
server: cloudflare
x-content-type-options: nosniff
cf-ray: <IDUNNOIFSENSITIVE>
x-powered-by: Express
access-control-allow-origin: *
etag: W/"6d-vqTZwCgcnHwCS64Wsm8osxmobLA"
cf-cache-status: DYNAMIC
strict-transport-security: max-age=15552000; includeSubDomains; preload

{"code":400,"error":"Bad Request","description":"Wrong IP","trace_id":"<IDUNNOIFSENSITIVE>"}

So it’s not a code issue, or an account issue, but an IP blacklist we’ve ended up on.

turns out that requesting over IPv4 (or sending an X-Client-IP header with any valid ipv4 address…) fixes this. reported to them and put in a workaround for us