{"info":{"_postman_id":"2072bdaf-c768-4837-8b04-7b91cb08e46a","name":"java blockchain","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"4948121","collectionId":"2072bdaf-c768-4837-8b04-7b91cb08e46a","publishedId":"S1ETRwRh","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"00AB66"},"publishDate":"2019-04-20T13:59:08.000Z"},"item":[{"name":"Genesis","id":"2b02675c-65a1-49d8-93a1-fa3d10ff3bcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/genesis","description":"<p>Creates the Genesis Block and the Genesis Transaction and returns a new wallet with a public-key(address). The initial balance is set to 100.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","genesis"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"2b02675c-65a1-49d8-93a1-fa3d10ff3bcf"},{"name":"New wallet","id":"f5af1bb5-c362-4421-aacd-7131f410c821","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/new-wallet","description":"<p>Creates a new empty wallet and returns it.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","new-wallet"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5af1bb5-c362-4421-aacd-7131f410c821"},{"name":"New transaction","id":"6cae4df4-157c-488d-8302-c14fb1f2af0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"sender\": \"MEkwEwYHKoZIzj0CAQYIKoZIzj0DAQEDMgAE8+VFbCF/h3+v4YSEX04cjsnus/45N1i6PWpwaT/Jw5bd2xFpaFuu4MQkCLlDsWfi\",\n\"recipient\": \"MEkwEwYHKoZIzj0CAQYIKoZIzj0DAQEDMgAE7haSnGSn4QmiXOY9yBKLH4p1lchip+3eTQza/e903//n0re/8H8a5F4jiZLXn0W7\",\n\"value\": \"18\"\n}"},"url":"http://localhost:8080/api/new-transaction","description":"<p>Creates a new transaction if the required JSON properties are valid. \nIt needs a sender, a recipient and a value.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","new-transaction"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cae4df4-157c-488d-8302-c14fb1f2af0a"},{"name":"Mine next block","id":"eefeea41-9f38-4440-a0c8-f74ef7914e53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/mine-next-block","description":"<p>It checks if everything is valid, if yes, it mines the next block and gives the reward coins to the miner. It also chains this block to the end of the blockchain.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","mine-next-block"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eefeea41-9f38-4440-a0c8-f74ef7914e53"},{"name":"Get blockchain info","id":"854c69ed-9952-4b09-8d55-395e37d5f583","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/get-blockchain","description":"<p>Returns the current state of the blockchain, with all the blocks and the transactions in it.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","get-blockchain"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"854c69ed-9952-4b09-8d55-395e37d5f583"},{"name":"Get wallet balance","id":"4da4fd44-35dd-40f5-9a88-037ce74941ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\"address\" : \"MEkwEwYHKoZIzj0CAQYIKoZIzj0DAQEDMgAExOx5aEDxmJtZffekAGEzDBFxFIOF0VEGeXAsRqPWwpI8jzoclqa0sUorGTIyO108\"\n}"},"url":"http://localhost:8080/api/get-balance","description":"<p>It returns the balance of the required address, if it's a valid.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","get-balance"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4da4fd44-35dd-40f5-9a88-037ce74941ad"},{"name":"Get transaction info","id":"93279f8b-1283-4b71-9dfb-ebf9e11bcd70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/get-transaction-info/26dd2f82788e6cc49b6c36f65b52ed26389b84d1b5ec1aedcf9e440e3ed829a8","description":"<p>Returns the required transaction info by the transaction hash, if it's a valid hash.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","get-transaction-info","26dd2f82788e6cc49b6c36f65b52ed26389b84d1b5ec1aedcf9e440e3ed829a8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"93279f8b-1283-4b71-9dfb-ebf9e11bcd70"}]}