{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1524","repository_url":"https://api.github.com/repos/bitcoinj/bitcoinj","labels_url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1524/labels{/name}","comments_url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1524/comments","events_url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1524/events","html_url":"https://github.com/bitcoinj/bitcoinj/issues/1524","id":301666265,"number":1524,"title":"send btc","user":{"login":"thomsonimjd","id":19526937,"avatar_url":"https://avatars2.githubusercontent.com/u/19526937?v=4","gravatar_id":"","url":"https://api.github.com/users/thomsonimjd","html_url":"https://github.com/thomsonimjd","followers_url":"https://api.github.com/users/thomsonimjd/followers","following_url":"https://api.github.com/users/thomsonimjd/following{/other_user}","gists_url":"https://api.github.com/users/thomsonimjd/gists{/gist_id}","starred_url":"https://api.github.com/users/thomsonimjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomsonimjd/subscriptions","organizations_url":"https://api.github.com/users/thomsonimjd/orgs","repos_url":"https://api.github.com/users/thomsonimjd/repos","events_url":"https://api.github.com/users/thomsonimjd/events{/privacy}","received_events_url":"https://api.github.com/users/thomsonimjd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-02T06:27:38Z","updated_at":"2018-03-05T15:57:08Z","closed_at":null,"author_association":"NONE","body":"Below code to send btc to another address, which doesnt work infact. I recieve error as `org.bitcoinj.core.InsufficientMoneyException: Insufficient money,  missing 0.10001 BTC`.  But the privatekey of the address(`mmdGi7VYs4jZgbkijwymbDQoqC4Y7GheBi`) has got more than 3 btc.\r\nCould you please let me know how to fund transfer?  It would be greateful if there is any sample code.\r\n`\r\npublic class Test {\r\n    public static void main(String[] args) throws UnreadableWalletException {\r\n\r\n\r\n        final String privateKey = \"110645473594007170951217953103376391066487920337671115675429964378135171617089\";\r\n        final NetworkParameters netParams = TestNet3Params.get();\r\n        Wallet wallet;\r\n        try {\r\n\r\n            ECKey key = ECKey.fromPrivate(new BigInteger(privateKey));\r\n            wallet = Wallet.fromKeys(netParams, Arrays.asList(key));\r\n            BigDecimal btcToSend = new BigDecimal(\"0.1\");\r\n\r\n            Address targetAddress = new Address(netParams, \"mg2KDDsAre7StuYWUsdnBPy2KWDQywskH3\");\r\n            SendRequest sendRequest = SendRequest.to(targetAddress, Coin.parseCoin(btcToSend.toString()));\r\n\r\n            PeerGroup peerGroup = new PeerGroup(netParams);\r\n            // Do the send of 1 BTC in the background. This could throw InsufficientMoneyException.\r\n            Wallet.SendResult result = wallet.sendCoins(peerGroup, sendRequest);\r\n            System.out.println(result.tx);\r\n        } catch (Exception e) {\r\n            e.printStackTrace();\r\n        }\r\n\r\n    }\r\n}`"},"comment":{"url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/comments/370465829","html_url":"https://github.com/bitcoinj/bitcoinj/issues/1524#issuecomment-370465829","issue_url":"https://api.github.com/repos/bitcoinj/bitcoinj/issues/1524","id":370465829,"user":{"login":"bockha","id":24431070,"avatar_url":"https://avatars0.githubusercontent.com/u/24431070?v=4","gravatar_id":"","url":"https://api.github.com/users/bockha","html_url":"https://github.com/bockha","followers_url":"https://api.github.com/users/bockha/followers","following_url":"https://api.github.com/users/bockha/following{/other_user}","gists_url":"https://api.github.com/users/bockha/gists{/gist_id}","starred_url":"https://api.github.com/users/bockha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bockha/subscriptions","organizations_url":"https://api.github.com/users/bockha/orgs","repos_url":"https://api.github.com/users/bockha/repos","events_url":"https://api.github.com/users/bockha/events{/privacy}","received_events_url":"https://api.github.com/users/bockha/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T15:57:08Z","updated_at":"2018-03-05T15:57:08Z","author_association":"NONE","body":"The newly created wallet does not now anything about the blockchain nor about its UTXOs. Either you could add a peergroup and a blockstore und download the blockchain or you could feed the UTXOs manually into the wallet like it is donw when emptying paper wallets."}}
{"actor":{"display_login":"bockha"}}