Skip to content

Commit 8c9cfae

Browse files
committed
more
1 parent 4108369 commit 8c9cfae

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

hello.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import json
66
import ast
77

8-
#import bitsource
8+
import bitsource
99
#import transactions
1010

1111

@@ -15,15 +15,15 @@
1515
@app.route('/')
1616
def something():
1717
return "Hello there!"
18-
#
19-
# #GET HEX DECODED OP_RETURNS FROM A BLOCK
20-
# @app.route('/opreturns/<blockn>') #WORKS
21-
# def opreturns_in_block(blockn=None):
22-
# print blockn
23-
# blockn=int(blockn)
24-
# message=bitsource.op_return_in_block(blockn)
25-
# return str(message)
26-
#
18+
19+
#GET HEX DECODED OP_RETURNS FROM A BLOCK
20+
@app.route('/opreturns/<blockn>') #WORKS
21+
def opreturns_in_block(blockn=None):
22+
print blockn
23+
blockn=int(blockn)
24+
message=bitsource.op_return_in_block(blockn)
25+
return str(message)
26+
2727
# #GET PARSED METADATA FOR OPEN ASSETS TRANSACTIONS IN BLOCK
2828
# @app.route('/oa/blocks/<blockn>') #WORKS, needs color address
2929
# def oas_in_block(blockn=None):

0 commit comments

Comments
 (0)