比特币通用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

相关推荐

  1. 通用API服务

    2024-06-17 07:34:02       7 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-06-17 07:34:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-17 07:34:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-17 07:34:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-17 07:34:02       20 阅读

热门阅读

  1. Flink Watermark详解

    2024-06-17 07:34:02       7 阅读
  2. 矩阵补全IGMC 学习笔记

    2024-06-17 07:34:02       7 阅读
  3. ComfyUI

    ComfyUI

    2024-06-17 07:34:02      6 阅读
  4. 外键的基本概念

    2024-06-17 07:34:02       7 阅读
  5. C++多态

    2024-06-17 07:34:02       6 阅读
  6. 面试计算机网络八股文十问十答第九期

    2024-06-17 07:34:02       7 阅读
  7. linux发行版CentOS、Debian和Ubuntu的对比

    2024-06-17 07:34:02       7 阅读
  8. 按键精灵的自动q语言连接mysql

    2024-06-17 07:34:02       5 阅读
  9. LeetCode --- 2073. Time Needed to Buy Tickets 解题报告

    2024-06-17 07:34:02       8 阅读
  10. ES6-04-模块化的暴露:export关键字

    2024-06-17 07:34:02       10 阅读
  11. ActiViz中不规则网络数据体绘制技术介绍

    2024-06-17 07:34:02       8 阅读
  12. C# OpenCvSharp 图像处理函数-颜色通道-cvtColor

    2024-06-17 07:34:02       5 阅读
  13. 【R语言入门】开启R的会话并大步向前!

    2024-06-17 07:34:02       10 阅读