{"action":"created","issue":{"url":"https://api.github.com/repos/osagga/insight-api/issues/2","repository_url":"https://api.github.com/repos/osagga/insight-api","labels_url":"https://api.github.com/repos/osagga/insight-api/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/osagga/insight-api/issues/2/comments","events_url":"https://api.github.com/repos/osagga/insight-api/issues/2/events","html_url":"https://github.com/osagga/insight-api/issues/2","id":342888881,"node_id":"MDU6SXNzdWUzNDI4ODg4ODE=","number":2,"title":"Getting Invalid Address when looking up bcash address or legacy","user":{"login":"haydencarlson","id":20796689,"node_id":"MDQ6VXNlcjIwNzk2Njg5","avatar_url":"https://avatars0.githubusercontent.com/u/20796689?v=4","gravatar_id":"","url":"https://api.github.com/users/haydencarlson","html_url":"https://github.com/haydencarlson","followers_url":"https://api.github.com/users/haydencarlson/followers","following_url":"https://api.github.com/users/haydencarlson/following{/other_user}","gists_url":"https://api.github.com/users/haydencarlson/gists{/gist_id}","starred_url":"https://api.github.com/users/haydencarlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haydencarlson/subscriptions","organizations_url":"https://api.github.com/users/haydencarlson/orgs","repos_url":"https://api.github.com/users/haydencarlson/repos","events_url":"https://api.github.com/users/haydencarlson/events{/privacy}","received_events_url":"https://api.github.com/users/haydencarlson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-19T21:04:18Z","updated_at":"2018-07-19T21:17:59Z","closed_at":null,"author_association":"NONE","body":"Got my node syncing now, I noticed that when I try to make a request to\r\n`[insight_host_url]/api/addr/bitcoincash:qzq2myx5qdvplgalgcyx4ydjm82pyhdkcyga74fzrw` for example I'm getting an `Invalid address. Code:-5`\r\n\r\nMy bitcoin.conf\r\n```\r\nserver=1\r\nwhitelist=127.0.0.1\r\ntxindex=1\r\naddressindex=1\r\ntimestampindex=1\r\nspentindex=1\r\nzmqpubrawtx=tcp://127.0.0.1:28332\r\nzmqpubhashblock=tcp://127.0.0.1:28332\r\nrpcallowip=127.0.0.1\r\nrpcuser=bitcoin\r\nrpcpassword=local321\r\nuacomment=bitcore\r\nusecashaddr=0\r\n```\r\nThen when trying to use the same url to look up the legacy address equivalent I get\r\n\r\n`Invalid address: Address has mismatched network type.. Code:1`\r\n\r\nbitcore-node.json\r\n\r\n```\r\n{\r\n  \"network\": \"livenet\",\r\n  \"port\": 3024,\r\n  \"services\": [\r\n    \"bitcoind\",\r\n    \"insight-ui\",\r\n    \"insight-api\",\r\n    \"web\"\r\n  ],\r\n  \"servicesConfig\": {\r\n    \"insight-ui\": {\r\n      \"routePrefix\": \"\",\r\n      \"apiPrefix\": \"api\"\r\n    },\r\n    \"insight-api\": {\r\n      \"routePrefix\": \"api\",\r\n      \"disableRateLimiter\": true\r\n    },\r\n    \"bitcoind\": {\r\n      \"spawn\": {\r\n        \"datadir\": \"/home/[user]/.bitcoin\",\r\n        \"exec\": \"/usr/local/bin/bitcoind\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/osagga/insight-api/issues/comments/406417430","html_url":"https://github.com/osagga/insight-api/issues/2#issuecomment-406417430","issue_url":"https://api.github.com/repos/osagga/insight-api/issues/2","id":406417430,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjQxNzQzMA==","user":{"login":"haydencarlson","id":20796689,"node_id":"MDQ6VXNlcjIwNzk2Njg5","avatar_url":"https://avatars0.githubusercontent.com/u/20796689?v=4","gravatar_id":"","url":"https://api.github.com/users/haydencarlson","html_url":"https://github.com/haydencarlson","followers_url":"https://api.github.com/users/haydencarlson/followers","following_url":"https://api.github.com/users/haydencarlson/following{/other_user}","gists_url":"https://api.github.com/users/haydencarlson/gists{/gist_id}","starred_url":"https://api.github.com/users/haydencarlson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haydencarlson/subscriptions","organizations_url":"https://api.github.com/users/haydencarlson/orgs","repos_url":"https://api.github.com/users/haydencarlson/repos","events_url":"https://api.github.com/users/haydencarlson/events{/privacy}","received_events_url":"https://api.github.com/users/haydencarlson/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T21:17:59Z","updated_at":"2018-07-19T21:17:59Z","author_association":"NONE","body":"```\r\n{\r\n  \"description\": \"A full Bitcoin node build with Bitcore\",\r\n  \"repository\": \"https://github.com/user/project\",\r\n  \"license\": \"MIT\",\r\n  \"readme\": \"README.md\",\r\n  \"dependencies\": {\r\n    \"bitcore-lib\": \"^v0.13.19\",\r\n    \"bitcore-node\": \"^3.1.3\",\r\n    \"insight-api\": \"github:osagga/insight-api#cash_v4\",\r\n    \"insight-ui\": \"^0.4.0\"\r\n  }\r\n}\r\n```\r\nMy node isn't fully synced yet.\r\nI followed this https://github.com/osagga/bch-bitcore-setup/blob/master/README.md exactly.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"haydencarlson"}}