GET blocks?txid examples -> samples

This commit is contained in:
diminator
2017-01-02 17:10:11 +01:00
committed by tim
parent e79a76512f
commit be5bc9fafd
2 changed files with 17 additions and 66 deletions

View File

@@ -114,6 +114,19 @@ Content-Type: application/json
%(block)s
"""
TPLS['get-block-txid-request'] = """\
GET /blocks?tx_id=%(txid)s HTTP/1.1
Host: example.com
"""
TPLS['get-block-txid-response'] = """\
HTTP/1.1 200 OK
Content-Type: application/json
[%(block)s]
"""
def main():
""" Main function """