{"action":"created","issue":{"url":"https://api.github.com/repos/DOkwufulueze/eth-vue/issues/12","repository_url":"https://api.github.com/repos/DOkwufulueze/eth-vue","labels_url":"https://api.github.com/repos/DOkwufulueze/eth-vue/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/DOkwufulueze/eth-vue/issues/12/comments","events_url":"https://api.github.com/repos/DOkwufulueze/eth-vue/issues/12/events","html_url":"https://github.com/DOkwufulueze/eth-vue/issues/12","id":336122936,"node_id":"MDU6SXNzdWUzMzYxMjI5MzY=","number":12,"title":"What is an \"unlocked account\" in truffle.js?","user":{"login":"davepuchyr","id":5599538,"node_id":"MDQ6VXNlcjU1OTk1Mzg=","avatar_url":"https://avatars1.githubusercontent.com/u/5599538?v=4","gravatar_id":"","url":"https://api.github.com/users/davepuchyr","html_url":"https://github.com/davepuchyr","followers_url":"https://api.github.com/users/davepuchyr/followers","following_url":"https://api.github.com/users/davepuchyr/following{/other_user}","gists_url":"https://api.github.com/users/davepuchyr/gists{/gist_id}","starred_url":"https://api.github.com/users/davepuchyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davepuchyr/subscriptions","organizations_url":"https://api.github.com/users/davepuchyr/orgs","repos_url":"https://api.github.com/users/davepuchyr/repos","events_url":"https://api.github.com/users/davepuchyr/events{/privacy}","received_events_url":"https://api.github.com/users/davepuchyr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-27T08:16:31Z","updated_at":"2018-06-28T07:31:30Z","closed_at":null,"author_association":"NONE","body":"Hi, Daniel,\r\n\r\nThanks for sharing this comprehensive dApp.\r\n\r\nIn truffle.js, the \"from\" property in the development stanza is blank and needs to have an \"unlocked account\":\r\n```\r\n...\r\ndevelopment: {\r\n      host: \"localhost\",\r\n      port: 9545, // This is the conventional port. If you're using the Ganache Blockchain, change port value to the Ganache default port 7545. If you're using Truffle develop network, change port value to 9545\r\n      network_id: \"*\", // Match any network id. You may need to replace * with your network Id\r\n      from: \"\", // Add your unlocked account within the double quotes\r\n      gas: 4444444\r\n    }\r\n...\r\n```\r\nWhat is an \"unlocked account\"?  Where do I find it?  If I'm running against ganache, it it just one of the available accounts?\r\n\r\nPS Congratulations on your new born!\r\n"},"comment":{"url":"https://api.github.com/repos/DOkwufulueze/eth-vue/issues/comments/400940224","html_url":"https://github.com/DOkwufulueze/eth-vue/issues/12#issuecomment-400940224","issue_url":"https://api.github.com/repos/DOkwufulueze/eth-vue/issues/12","id":400940224,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDk0MDIyNA==","user":{"login":"DOkwufulueze","id":13135088,"node_id":"MDQ6VXNlcjEzMTM1MDg4","avatar_url":"https://avatars1.githubusercontent.com/u/13135088?v=4","gravatar_id":"","url":"https://api.github.com/users/DOkwufulueze","html_url":"https://github.com/DOkwufulueze","followers_url":"https://api.github.com/users/DOkwufulueze/followers","following_url":"https://api.github.com/users/DOkwufulueze/following{/other_user}","gists_url":"https://api.github.com/users/DOkwufulueze/gists{/gist_id}","starred_url":"https://api.github.com/users/DOkwufulueze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DOkwufulueze/subscriptions","organizations_url":"https://api.github.com/users/DOkwufulueze/orgs","repos_url":"https://api.github.com/users/DOkwufulueze/repos","events_url":"https://api.github.com/users/DOkwufulueze/events{/privacy}","received_events_url":"https://api.github.com/users/DOkwufulueze/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T07:31:29Z","updated_at":"2018-06-28T07:31:29Z","author_association":"OWNER","body":"Hi, @davepuchyr \r\n\r\nThanks for appreciating `eth-vue`. An \"unlocked account\" is an account that can engage in all sorts of transactions from within Truffle. The account can be used to deploy Smart Contracts, make calls to Smart Contracts including payable calls, etc. In `geth`, you have to unlock an account using a command I've shared below. But in `Ganache`, the accounts all come unlocked, so any available account works.\r\n\r\nSince you'll be compiling and migrating [deploying] all `eth-vue` Smart Contracts, you need an account that has the capability to do such. In `geth`, for example, all accounts are locked when you start your local blockchain, so you must unlock the accounts [say 5 accounts, for instance] using something like:\r\n```geth --networkid '666' --datadir '/path/to/your/blockchain/db' --rpc --rpccorsdomain 'localhost:8545' --unlock '0, 1, 2, 3, 4' --password '/path/to/your/blockchain/passwords' --mine```\r\nSince the five accounts are now unlocked, any of them can be used for the `from` key.\r\nHope this helps clarify things.\r\n\r\nNOTE: You don't necessarily have to unlock multiple accounts, one is fine, just ensure you have at least one unlocked account so you can deploy your Smart Contracts with it. You may need to unlock other accounts so they too can be used to send transaction calls when you're testing the dApp.\r\n\r\nPS: Thanks for your congratulatory remark on the arrival of my little pricess."}}
{"actor":{"display_login":"DOkwufulueze"}}