{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013/events","html_url":"https://github.com/bitcoin/bitcoin/pull/6013","id":68473706,"number":6013,"title":"[REST] Add memory pool API","user":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/REST","name":"REST","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-04-14T19:21:18Z","updated_at":"2015-08-13T21:36:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013","html_url":"https://github.com/bitcoin/bitcoin/pull/6013","diff_url":"https://github.com/bitcoin/bitcoin/pull/6013.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/6013.patch"},"body":"As requested in #5844, memory pool API added.\r\n\r\nGet TX mempool info:\r\n\r\n```shell\r\n$ curl localhost:8332/rest/mempool/info.json 2>/dev/null | json_pp\r\n{\r\n   \"bytes\" : 877,\r\n   \"size\" : 2\r\n}\r\n$\r\n```\r\n\r\nGet TX mempool contents:\r\n\r\n```shell\r\n$ curl localhost:8332/rest/mempool/contents.json 2>/dev/null | json_pp\r\n{\r\n   \"d84fb825b54442d737f9026ac52c4208f48eae8e1aaf9c942acede7ee8457f35\" : {\r\n      \"currentpriority\" : 8060141.48717949,\r\n      \"time\" : 1429038596,\r\n      \"fee\" : 0.0001,\r\n      \"height\" : 352141,\r\n      \"depends\" : [],\r\n      \"startingpriority\" : 8060141.48717949,\r\n      \"size\" : 225\r\n   },\r\n...\r\n$ \r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/130851716","html_url":"https://github.com/bitcoin/bitcoin/pull/6013#issuecomment-130851716","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013","id":130851716,"user":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T21:36:21Z","updated_at":"2015-08-13T21:36:21Z","body":"@laanwj Can you please have a look. Thank you."}}