{"action":"created","issue":{"url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/31","repository_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3","labels_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/31/comments","events_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/31/events","html_url":"https://github.com/blockchain/service-my-wallet-v3/issues/31","id":132500767,"number":31,"title":"Payment Error. Missing coins to spend ","user":{"login":"Pufflox","id":11558656,"avatar_url":"https://avatars.githubusercontent.com/u/11558656?v=3","gravatar_id":"","url":"https://api.github.com/users/Pufflox","html_url":"https://github.com/Pufflox","followers_url":"https://api.github.com/users/Pufflox/followers","following_url":"https://api.github.com/users/Pufflox/following{/other_user}","gists_url":"https://api.github.com/users/Pufflox/gists{/gist_id}","starred_url":"https://api.github.com/users/Pufflox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pufflox/subscriptions","organizations_url":"https://api.github.com/users/Pufflox/orgs","repos_url":"https://api.github.com/users/Pufflox/repos","events_url":"https://api.github.com/users/Pufflox/events{/privacy}","received_events_url":"https://api.github.com/users/Pufflox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T18:55:44Z","updated_at":"2016-02-10T17:58:10Z","closed_at":null,"body":"Trying to do a payment I always get:\r\n\r\n{\"error\":\"Missing coins to spend\"}\r\n\r\nIn the wallet console I get this:\r\nNo free outputs to spend\r\nMissing coins to spend\r\nMissing coins to spend\r\n\r\nThe wallet balance is 0.00020133\r\nThe amount I want to transfer is 0.0001\r\n\r\n- I checked the address for unspent outputs (get 20133): https://blockchain.info/unspent?active=1HJYiBzKQGrbsDxyhae8mFYqE9Vzov6oQU\r\n- blockchain-wallet-service -V  = 0.14.1\r\n- wallet balance method returns 20133\r\n\r\nMaybe there is a minimum amount to send?"},"comment":{"url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/comments/182503981","html_url":"https://github.com/blockchain/service-my-wallet-v3/issues/31#issuecomment-182503981","issue_url":"https://api.github.com/repos/blockchain/service-my-wallet-v3/issues/31","id":182503981,"user":{"login":"jtormey","id":8642682,"avatar_url":"https://avatars.githubusercontent.com/u/8642682?v=3","gravatar_id":"","url":"https://api.github.com/users/jtormey","html_url":"https://github.com/jtormey","followers_url":"https://api.github.com/users/jtormey/followers","following_url":"https://api.github.com/users/jtormey/following{/other_user}","gists_url":"https://api.github.com/users/jtormey/gists{/gist_id}","starred_url":"https://api.github.com/users/jtormey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtormey/subscriptions","organizations_url":"https://api.github.com/users/jtormey/orgs","repos_url":"https://api.github.com/users/jtormey/repos","events_url":"https://api.github.com/users/jtormey/events{/privacy}","received_events_url":"https://api.github.com/users/jtormey/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T17:58:10Z","updated_at":"2016-02-10T17:58:10Z","body":"I'm looking into what might be causing this issue now. Internally, the my-wallet service uses blockchain.info/unspent to get the unspent outputs, so it's strange that in one case it returns \"No free outputs to spend\", and not in the other.\r\n\r\nHow are you sending your request to the service? Does it work if you use the following curl command?\r\n\r\n```\r\ncurl -X POST -H \"Content-Type: application/json\" -d '{\r\n    \"to\": \"toAddress\",\r\n    \"from\": \"fromAddress\",\r\n    \"amount\": \"10000\",\r\n    \"password\": \"password\" \r\n}' \"http://localhost:$port/merchant/$guid/payment\"\r\n```"}}