def address_page(request):
# address summary by bitcoin payment addr
addr = request.match_info['addr']
conn = request.app['conn']
t = HTML_HDR
t += '<h1><code>%s</code></h1>' % addr
for method in ['blockchain.address.get_balance',
'blockchain.address.get_status',
'blockchain.address.get_mempool',
'blockchain.address.get_proof',
'blockchain.address.listunspent']:
# get a balance, etc.
t += await call_and_format(conn, method, addr)
return Response(content_type='text/html', text=t)
评论列表
文章目录