码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 比特币通用API服务


    Bitcoin 通用API服务

    exlectrs:

    • API后台服务(Rust语言编写) https://github.com/Blockstream/electrs.git

    • 使用electr作为后台的区块链浏览器:https://github.com/Blockstream/esplora.git

    https://github.com/Blockstream/electrs

    https://github.com/romanz/electrs/blob/master/doc/usage.md

    ## btcapiserver

    • https://github.com/bitaps-com/btcapiserver.git
    • https://github.com/bitaps-com/pybtc
    • https://github.com/bitaps-com/aiojsonrpc

    bitcores

    https://github.com/bitpay/bitcore/

    部署步骤:

    • 服务器配置: 8 核, 16G, 1TB+ SSD

    • 比特币全节点(或者可靠的peer节点)

    • 安装mongodb 3.4 及以上

      修改 /etc/mongo.conf , 设置数据存储路径, 将SSD挂在到 对应的路径下

      storage:
         dbPath: /data1/mongo
         journal:
           enabled: true
      
      net:
         port: 27017
         bindIp: 0.0.0.0 
      
    • gcc 和 g++

    • CentOS 7

    • node: v10.21.0

    • bitcore version: master (commit: 734107b)

    git clone https://github.com/bitpay/bitcore.git
    
    npm cache clean --force
    rm -rf node_modules
    rm -rf package-lock.json
    
    #使用 cnpm 替换 npm
    
    npm config set registry https://registry.npm.taobao.org
    
    npm install -g cnpm --registry=https://registry.npm.taobao.org
    
    cnpm install 
    
    
    #如果报警告: eslint@^4.9.0 is not installed , 安装一下  eslint@4.9.0
    
    cnpm install cnpm install eslint@4.9.0
    
    
    然后运行
    
    cnpm  run node 
    
    
    
    #可以启动浏览器
    NETWORK=mainnet CHAIN=BTC cnpm run insight
    

    Bitcoin相关库

    Python

    • https://github.com/richardkiss/pycoin
    • https://github.com/petertodd/python-bitcoinlib
    • https://github.com/chainside/btcpy
    • https://github.com/1200wd/bitcoinlib.git
  • 相关阅读:
    详解两两交换链表中的节点
    Let Users Easily Navigate PDF Documents
    STM32定时器的One Pulse Mode,OPM应用
    https通信过程中,第三方是如何修改我们的数据?应对策略又是怎样的?
    Java8 新特性之Stream(四)-- Stream的summaryStatistics()
    jeecg 重新加载表格
    DXF笔记:文字对齐的研究
    C++斩题录|递归专题 | leetcode50. Pow(x, n)
    【精选】发布应用到应用商店的基本介绍
    (3DV 2017) SEGCloud: Semantic Segmentation of 3D Point Clouds
  • 原文地址:https://blog.csdn.net/qq_67479387/article/details/139609928
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号