{"action":"closed","issue":{"url":"https://api.github.com/repos/openblockchain/obc-peer/issues/354","repository_url":"https://api.github.com/repos/openblockchain/obc-peer","labels_url":"https://api.github.com/repos/openblockchain/obc-peer/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/openblockchain/obc-peer/issues/354/comments","events_url":"https://api.github.com/repos/openblockchain/obc-peer/issues/354/events","html_url":"https://github.com/openblockchain/obc-peer/issues/354","id":120263624,"number":354,"title":"Implement TxVolume API","user":{"login":"angrbrd","id":14612437,"avatar_url":"https://avatars.githubusercontent.com/u/14612437?v=3","gravatar_id":"","url":"https://api.github.com/users/angrbrd","html_url":"https://github.com/angrbrd","followers_url":"https://api.github.com/users/angrbrd/followers","following_url":"https://api.github.com/users/angrbrd/following{/other_user}","gists_url":"https://api.github.com/users/angrbrd/gists{/gist_id}","starred_url":"https://api.github.com/users/angrbrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angrbrd/subscriptions","organizations_url":"https://api.github.com/users/angrbrd/orgs","repos_url":"https://api.github.com/users/angrbrd/repos","events_url":"https://api.github.com/users/angrbrd/events{/privacy}","received_events_url":"https://api.github.com/users/angrbrd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openblockchain/obc-peer/labels/api","name":"api","color":"c7def8"}],"state":"closed","locked":false,"assignee":{"login":"angrbrd","id":14612437,"avatar_url":"https://avatars.githubusercontent.com/u/14612437?v=3","gravatar_id":"","url":"https://api.github.com/users/angrbrd","html_url":"https://github.com/angrbrd","followers_url":"https://api.github.com/users/angrbrd/followers","following_url":"https://api.github.com/users/angrbrd/following{/other_user}","gists_url":"https://api.github.com/users/angrbrd/gists{/gist_id}","starred_url":"https://api.github.com/users/angrbrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angrbrd/subscriptions","organizations_url":"https://api.github.com/users/angrbrd/orgs","repos_url":"https://api.github.com/users/angrbrd/repos","events_url":"https://api.github.com/users/angrbrd/events{/privacy}","received_events_url":"https://api.github.com/users/angrbrd/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/openblockchain/obc-peer/milestones/4","html_url":"https://github.com/openblockchain/obc-peer/milestones/Milestone%204:%20Reference%20blockchain%20fabrics","labels_url":"https://api.github.com/repos/openblockchain/obc-peer/milestones/4/labels","id":1356642,"number":4,"title":"Milestone 4: Reference blockchain fabrics","description":"Due date 12/18/2015\r\n- Confidential chaincode and transactions\r\n- Event hub\r\n- Website and blockchain monitor\r\n- Testnet\r\n- Sample chaincodes and applications\r\n","creator":{"login":"binhn","id":3342057,"avatar_url":"https://avatars.githubusercontent.com/u/3342057?v=3","gravatar_id":"","url":"https://api.github.com/users/binhn","html_url":"https://github.com/binhn","followers_url":"https://api.github.com/users/binhn/followers","following_url":"https://api.github.com/users/binhn/following{/other_user}","gists_url":"https://api.github.com/users/binhn/gists{/gist_id}","starred_url":"https://api.github.com/users/binhn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhn/subscriptions","organizations_url":"https://api.github.com/users/binhn/orgs","repos_url":"https://api.github.com/users/binhn/repos","events_url":"https://api.github.com/users/binhn/events{/privacy}","received_events_url":"https://api.github.com/users/binhn/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":108,"state":"closed","created_at":"2015-10-15T04:21:03Z","updated_at":"2016-03-15T20:20:40Z","due_on":"2015-12-18T05:00:00Z","closed_at":"2016-02-15T22:29:22Z"},"comments":4,"created_at":"2015-12-03T20:34:42Z","updated_at":"2016-03-15T20:20:40Z","closed_at":"2016-03-15T20:20:40Z","body":"The testnet monitor UI will display transaction volume on the network. This issue is to implement the TxVolume API and REST endpoint to return the transaction volume recorded on a peer node.\r\n\r\nTxVolume(startTime, endTime, interval), where endTime (currently) will be the present moment, startTime is some time before the present moment, and interval is either in minutes, hours, or days. Maximum duration for minute interval is 1 hr, for hour interval is 24 hrs, and for day is 7 days or a week.\r\n\r\nMust walk backwards through the blockchain, starting at the head until startTime. Count up the number of transactions in each interval. Return an array of intervals and transaction count in each interval."}}