curl --silent -X GET "http://127.0.0.1:5001/get_chain" | jq
curl --silent -X GET "http://127.0.0.1:5002/get_chain" | jq
curl --silent -X GET "http://127.0.0.1:5003/get_chain" | jqcurl --silent -X POST -H "Content-Type: application/json" -d '{"nodes":["http://127.0.0.1:5002", "http://127.0.0.1:5003"]}' "http://127.0.0.1:5001/connect_node" | jq
curl --silent -X POST -H "Content-Type: application/json" -d '{"nodes":["http://127.0.0.1:5001", "http://127.0.0.1:5003"]}' "http://127.0.0.1:5002/connect_node" | jq
curl --silent -X POST -H "Content-Type: application/json" -d '{"nodes":["http://127.0.0.1:5001", "http://127.0.0.1:5002"]}' "http://127.0.0.1:5003/connect_node" | jqcurl --silent -X GET "http://127.0.0.1:5001/mine_block" | jqcurl --silent -X GET "http://127.0.0.1:5001/get_chain" | jqcurl --silent -X GET "http://127.0.0.1:5002/get_chain" | jq
curl --silent -X GET "http://127.0.0.1:5003/get_chain" | jqcurl --silent -X GET "http://127.0.0.1:5002/replace_chain" | jq
curl --silent -X GET "http://127.0.0.1:5003/replace_chain" | jqcurl --silent -X POST -H "Content-Type: application/json" -d '{"sender": "Eric","receiver":"Tu","amount":10}' "http://127.0.0.1:5001/add_transaction" | jqcurl --silent -X GET "http://127.0.0.1:5001/mine_block" | jqcurl --silent -X GET "http://127.0.0.1:5002/replace_chain" | jq
curl --silent -X GET "http://127.0.0.1:5003/replace_chain" | jq