{"action":"created","issue":{"url":"https://api.github.com/repos/ethereum/EIPs/issues/61","labels_url":"https://api.github.com/repos/ethereum/EIPs/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/EIPs/issues/61/comments","events_url":"https://api.github.com/repos/ethereum/EIPs/issues/61/events","html_url":"https://github.com/ethereum/EIPs/issues/61","id":128565612,"number":61,"title":"Spending gas from contract's balance - proposed optional opcode for a contract","user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-25T15:48:09Z","updated_at":"2016-01-25T17:08:44Z","closed_at":null,"body":"Currently the gas limit is defined and paid by the caller. This proposal is about adding an option to the VM to set an alternate gas limit and gas source (the contract) by means of executing a special opcode within the contract, e.g. `PAYGAS <limit>`\r\n\r\nA simple use case: the contract decides that the caller is on the list of trusted sources (for example it is a token holder) and takes over paying the gas. Alternatively the gas limit provided by the caller is used until exhausted, before using the contract's balance. This would be especially useful at fallback entry points enabling simple transactions to interact with a contract.\r\n\r\nAs you can see this idea is a a very early stage and comments are more than welcome."},"comment":{"url":"https://api.github.com/repos/ethereum/EIPs/issues/comments/174587917","html_url":"https://github.com/ethereum/EIPs/issues/61#issuecomment-174587917","issue_url":"https://api.github.com/repos/ethereum/EIPs/issues/61","id":174587917,"user":{"login":"VoR0220","id":7756785,"avatar_url":"https://avatars.githubusercontent.com/u/7756785?v=3","gravatar_id":"","url":"https://api.github.com/users/VoR0220","html_url":"https://github.com/VoR0220","followers_url":"https://api.github.com/users/VoR0220/followers","following_url":"https://api.github.com/users/VoR0220/following{/other_user}","gists_url":"https://api.github.com/users/VoR0220/gists{/gist_id}","starred_url":"https://api.github.com/users/VoR0220/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VoR0220/subscriptions","organizations_url":"https://api.github.com/users/VoR0220/orgs","repos_url":"https://api.github.com/users/VoR0220/repos","events_url":"https://api.github.com/users/VoR0220/events{/privacy}","received_events_url":"https://api.github.com/users/VoR0220/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T17:08:44Z","updated_at":"2016-01-25T17:08:44Z","body":"these are just my ramblings and thoughts currently. If somebody wants to explain how this could be sheltered from this form of attack I'm open to suggestions. "}}