explorer.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:connectrum 作者: coinkite 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号