#!/usr/bin/env bash ## When in doubt just write a shell script curl --request POST \ --header 'Content-Type: application/json' \ --data '{ "source": "foo", "target": "bar", "amount": 5, "timestamp": "2021-04-07T00:17:00" }' \ http://localhost:8080/transaction curl --request POST \ --header 'Content-Type: application/json' \ --data '{ "source": "saz", "target": "quux", "amount": 12, "timestamp": "2021-04-07T00:17:00" }' \ http://localhost:8080/transaction curl localhost:8080/transaction curl --header "Content-Type: application/json" \ --request POST \ --data '{ "transaction_list": [ "foo", "saz" ], "nonce": 4, "timestamp": "2021-04-07T04:17:00", "hash": "aaaaaa" }' \ http://localhost:8080/block