{"action":"created","issue":{"url":"https://api.github.com/repos/BANKEX/web3swift/issues/8","repository_url":"https://api.github.com/repos/BANKEX/web3swift","labels_url":"https://api.github.com/repos/BANKEX/web3swift/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/BANKEX/web3swift/issues/8/comments","events_url":"https://api.github.com/repos/BANKEX/web3swift/issues/8/events","html_url":"https://github.com/BANKEX/web3swift/issues/8","id":294957186,"number":8,"title":"Problem with signing/sending transactions","user":{"login":"CrisESC93","id":22949902,"avatar_url":"https://avatars0.githubusercontent.com/u/22949902?v=4","gravatar_id":"","url":"https://api.github.com/users/CrisESC93","html_url":"https://github.com/CrisESC93","followers_url":"https://api.github.com/users/CrisESC93/followers","following_url":"https://api.github.com/users/CrisESC93/following{/other_user}","gists_url":"https://api.github.com/users/CrisESC93/gists{/gist_id}","starred_url":"https://api.github.com/users/CrisESC93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrisESC93/subscriptions","organizations_url":"https://api.github.com/users/CrisESC93/orgs","repos_url":"https://api.github.com/users/CrisESC93/repos","events_url":"https://api.github.com/users/CrisESC93/events{/privacy}","received_events_url":"https://api.github.com/users/CrisESC93/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-06T23:59:28Z","updated_at":"2018-02-08T18:12:13Z","closed_at":null,"author_association":"NONE","body":"Hello!!!\r\n\r\nI have some doubts how sign and send transactions, for example I have something like this:\r\n\r\n```Swift\r\nguard\r\n    let path = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first,\r\n    let keystore = KeystoreManager.managerForPath(\"\\(path)/KeyStore\"),\r\n    let url = URL(string: \"http://localhost:8545\"),\r\n    let web3 = Web3.newWeb3(url)\r\nelse {\r\n    return\r\n}\r\n\r\nweb3.addKeystoreManager(keystore)\r\n        \r\nlet accountAddress = EthereumAddress(\"0xDa6Db68eF4f0796c7d8C1D53b3F4C4ecA8F1c589\")\r\nlet contractAddress = EthereumAddress(\"0x0ecaaeaa9a81d7fe6b685f0f7042c6733e8d4ac4\")\r\nlet abi = \"...\"\r\nvar options = Web3Options()\r\n\r\noptions.from = accountAddress\r\noptions.gas = BigUInt(3000000)\r\n\r\nlet params = [\"One\", \"Two\", accountAddress] as [AnyObject]\r\n\r\nguard\r\n    let contract = web3.contract(abi, at: contractAddress),\r\n    let intermediate = contract.method(\"myMethod\", parameters: params, options: options)\r\nelse {\r\n    return\r\n}\r\n\r\nif let result = intermediate.send(password: \"myPassword\", options: nil) {\r\n    print(\"Response:\\n\\(result)\")\r\n}\r\nelse {\r\n    print(\"No response\")\r\n}\r\n```\r\n\r\nBut the console show me:\r\n\r\n```Bash\r\n[\"id\": 1517959159, \"result\": 0x0, \"jsonrpc\": 2.0]\r\n[\"id\": 1517959159, \"result\": 0x1c3e2, \"jsonrpc\": 2.0]\r\nSignature required 0 rounds\r\nTransaction\r\nNonce: 0\r\nGas price: 5000000000\r\nGas limit: 3000000\r\nTo: 0x0ECAAeaA9a81D7fe6B685F0f7042c6733e8D4aC4\r\nValue: 0\r\nData: 0xcd6caf44516d634d4d466e4a33484e5056674e56683745547a33694c4c4e78575964563941414279464e66327238524d6670000000000000000000000000000000000000000000000000000000000000da6db68ef4f0796c7d8c1d53b3f4c4eca8f1c589\r\nv: 66701\r\nr: 84777281406398303591956306169653691463836343481459907963146828151300907793144\r\ns: 46714626519332337577713737081164370614021019176989393775749382342225642067890\r\nIntrinsic chainID: Optional(33333)\r\nInfered chainID: Optional(33333)\r\nsender: Optional(web3swift.EthereumAddress(_address: \"0xda6db68ef4f0796c7d8c1d53b3f4c4eca8f1c589\"))\r\n\r\n[\"id\": 1517959159, \"jsonrpc\": 2.0]\r\nNo response\r\n```\r\n\r\nI saw the example (Send on Rinkeby) and this [issue](https://github.com/BANKEX/web3swift/issues/3) but when I try to implement something like that doesn't works.\r\n\r\nI hope can you help me.\r\nThanks."},"comment":{"url":"https://api.github.com/repos/BANKEX/web3swift/issues/comments/364199955","html_url":"https://github.com/BANKEX/web3swift/issues/8#issuecomment-364199955","issue_url":"https://api.github.com/repos/BANKEX/web3swift/issues/8","id":364199955,"user":{"login":"CrisESC93","id":22949902,"avatar_url":"https://avatars0.githubusercontent.com/u/22949902?v=4","gravatar_id":"","url":"https://api.github.com/users/CrisESC93","html_url":"https://github.com/CrisESC93","followers_url":"https://api.github.com/users/CrisESC93/followers","following_url":"https://api.github.com/users/CrisESC93/following{/other_user}","gists_url":"https://api.github.com/users/CrisESC93/gists{/gist_id}","starred_url":"https://api.github.com/users/CrisESC93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrisESC93/subscriptions","organizations_url":"https://api.github.com/users/CrisESC93/orgs","repos_url":"https://api.github.com/users/CrisESC93/repos","events_url":"https://api.github.com/users/CrisESC93/events{/privacy}","received_events_url":"https://api.github.com/users/CrisESC93/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T18:12:13Z","updated_at":"2018-02-08T18:12:13Z","author_association":"NONE","body":"Hello @shamatar \r\n\r\nThanks for the advice, so for now I'm will start to work with the function to get the private key.\r\n\r\nI hope the new version of the library can be works with our node, meanwhile I convinced to the blockchain developers to try implement the EIP155 and let me do tests. As soon as I get the results I'll post them here.\r\n\r\nThanks for your help."}}
{"actor":{"display_login":"CrisESC93"}}