I'm trying to call the MyMonero API to get some info about a wallet. By doing a call with curl, it seems to work fine.
Request:
curl -w "\n" -H 'Content-Type: application/json' -X POST https://api.mymonero.com:8443/get_address_info -d '{"address": "4212xxB5reLXdvoNQQFi7DCBVEyqmK1ZH7Dw584eQTmRbwe6d7NbwoAV4EkoPhFvUoZCjjerotB6bRHAHVRsCbqu1V6s6ZN","view_key": "197dbd7e30fec43d8d57e7fe485dab2c45b73644a4572bf80a9d88b715037605"}'
Response:
{"locked_funds":"0","total_received":"0","total_sent":"0","scanned_height":5787871,"scanned_block_height":1754582,"start_height":5304924,"transaction_height":5787871,"blockchain_height":1754582,"spent_outputs":null,"rates":{"AUD":63.31,"BRL":173.09,"BTC":0.01269,"CAD":63.43,"CHF":52.92,"CNY":308.03,"EUR":39.71,"GBP":35.15,"HKD":352.61,"INR":4791.628,"JPY":4936.01,"KRW":51050,"MXN":862.83,"NOK":430.55328,"NZD":64.33,"SEK":440.08,"SGD":61.68,"TRY":251.55,"USD":45.65,"RUB":3148.49,"ZAR":665.92}}
Now I want to do the same with randomly generated wallet from the XMR Address Generator tool at https://xmr.llcoins.net/. So for example, I will fill up my curl request with random data from llcoins like follows.
Request:
curl -w "\n" -H 'Content-Type: application/json' -X POST https://api.mymonero.com:8443/get_address_info -d '{"address": "46wNqWTmh6TLbaM4UYCbTY4v5hMQDpnUThJj3r4gtNZGRqjxhBXXEmfDAwwF1xccBDiusrMYXxghXdgeuWS8GcPgNNVuLmK","view_key": "82c31f3041ab4248c4c6ebe3432ea4fa92d0483a72ac02db514156e66753b7bd"}'
Response:
{"Error":"Internal server error"}
Can anyone advise me what I'm doing wrong? I'm not even sure if the API expects the private or public view key, neither of them works for me.
Thank you