Skip to content

Instantly share code, notes, and snippets.

@dvf

dvf/blockchain.py

Created Sep 23, 2017
Embed
What would you like to do?
Step 9: Consensus (Retrieve Chain)
@app.route('/chain', methods=['GET'])
def full_chain():
response = {
'chain': blockchain.chain,
'length': len(blockchain.chain),
}
return jsonify(response), 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment