【Monero】Onion Monero Blockchain Explorer | 洋葱门罗币区块链浏览器

github:onion-monero-blockchain-explorer

Onion Monero Blockchain Explorer特点:

• 没有cookie,没有网络分析跟踪器,没有image,

• 开源,

• 完全用C++编写,

• 显示加密的付款 ID,

• 显示环签名,

• 显示交易额外字段,

• 显示门罗币地址的公共部分,

• 解码哪些输出和混合属于给定的门罗币地址和视图密钥,

• 可以证明您将门罗币发送给某人,

• 有关戒指成员的详细信息,例如年龄、时间范围和戒指尺寸,

• 显示数量输出指数,

• 支持 Monero 测试网和 stagnet 网络,

• 用于在线推送交易的交易检查器和推送器,

• 根据地址和视图密钥估计可能的支出,

• 可以提供所有矿工费的总额,

• 解码加密的支付ID,

• 解码输出并证明发送到子地址的交易。

linux ubuntu22.04

首先要下载并编译最新的monerod

一旦门罗币编译完成,就可以下载并编译浏览器:

cpp 复制代码
# go to home folder if still in ~/monero
cd ~

# download the source code 
git clone https://github.com/moneroexamples/onion-monero-blockchain-explorer.git

# enter the downloaded sourced code folder
cd onion-monero-blockchain-explorer

# make a build folder and enter it
mkdir build && cd build

# create the makefile
cmake ..

# compile
make

cmake可能提示错误:Monero libraries not found in:/xxx/xx/xxx

这时候打开CMakeCache.txt修改路径

修改MONERO_BUILD_DIR:PATH和MONWEO_SOURCE_DIR:PATH

修改到你自己.../monero的位置和.../monero/build/release文件夹位置

cpp 复制代码
cmake ..
cpp 复制代码
make

run

cpp 复制代码
./xmrblocks

就可以访问127.0.0.1:8081

浏览器有 JSON api。默认情况下,API 是禁用的。要启用它,请使用--enable-json-api标志,例如

cpp 复制代码
./xmrblocks --enable-json-api
api/transaction/<tx_hash>
cpp 复制代码
curl  -w "\n" -X GET "http://127.0.0.1:8081/api/transaction/6093260dbe79fd6277694d14789dc8718f1bd54457df8bab338c2efa3bb0f03d"

Partial results shown:

cpp 复制代码
{
  "data": {
    "block_height": 1268252,
    "coinbase": false,
    "confirmations": 1057855,
    "current_height": 2326107,
    "extra": "01be23e277aed6b5f41f66b05244bf994c13108347366ec678ae16657f0fc3a22b",
    "inputs": [
      {
        "amount": 0,
        "key_image": "67838fd0ffd79f13e735830d3ec60412aed59e53e1f997feb6f73d088b949611",
        "mixins": [
          {
            "block_no": 1238623,
            "public_key": "0a5b853c55303c10e1326acfb085b9e246e088b1ccac7e37f7a810d46a28a914",
            "tx_hash": "686555fb053dd53f6f9eb79449e2bdcd377221f823f508158d70d4a1966fe955"
          },
          {
            "block_no": 1246942,
            "public_key": "527cf86f5abbfb006c970f7c6eb40493786d4751306f8985c6a43f98a88c0dff",
            "tx_hash": "4fa1999f9e0d2ad031dbe5594f2e8336651b6cad19dd3cee7980a01c47600f91"
          }
        ]
      }
    ],
    "mixin": 9,
    "outputs": [
      {
        "amount": 0,
        "public_key": "525779873776e4a42f517fd79b72e7c31c3ba03e730fc32287f6414fb702c1d7"
      },
      {
        "amount": 0,
        "public_key": "e25f00fceb77af841d780b68647618812695b4ca6ebe338faba6e077f758ac30"
      }
    ],
    "payment_id": "",
    "payment_id8": "",
    "rct_type": 1,
    "timestamp": 1489753456,
    "timestamp_utc": "2017-03-17 12:24:16",
    "tx_fee": 12517785574,
    "tx_hash": "6093260dbe79fd6277694d14789dc8718f1bd54457df8bab338c2efa3bb0f03d",
    "tx_size": 13323,
    "tx_version": 2,
    "xmr_inputs": 0,
    "xmr_outputs": 0
  },
  "status": "success"
}
api/transactions

Transactions in last 25 blocks:

cpp 复制代码
curl  -w "\n" -X GET "http://127.0.0.1:8081/api/transactions"

Partial results shown:

cpp 复制代码
{
  "data": {
    "blocks": [
      {
        "age": "33:16:49:53",
        "height": 1268252,
        "size": 105390000000000000,
        "timestamp": 1489753456,
        "timestamp_utc": "2017-03-17 12:24:16",
        "txs": [
          {
            "coinbase": true,
            "mixin": 0,
            "outputs": 8491554678365,
            "rct_type": 0,
            "tx_fee": 0,
            "tx_hash": "7c4286f64544568265bb5418df84ae69afaa3567749210e46f8340c247f4803f",
            "tx_size": 151000000000000,
            "tx_version": 2
          },
          {
            "coinbase": false,
            "mixin": 5,
            "outputs": 0,
            "rct_type": 2,
            "tx_fee": 17882516700,
            "tx_hash": "2bfbccb918ee5f050808dd040ce03943b7315b81788e9cdee59cf86b557ba48c",
            "tx_size": 19586000000000000,
            "tx_version": 2
          }
        ]
      }
    ],
    "limit": 25,
    "page": 0
  },
  "status": "success"
}

其他示例参考github

相关推荐
nomi-糯米3 小时前
Fisco Bcos 2.11.0配置console控制台2.10.0及部署调用智能合约
分布式·网络安全·区块链·智能合约·分布式账本
WSY88x14 小时前
重塑支付安全:区块链技术引领下的积分系统革新
安全·区块链
friklogff17 小时前
【C#生态园】提升C#开发效率:深入了解自然语言处理库与工具
开发语言·c#·区块链
SunsPlanter1 天前
02 ETH
区块链
yunteng5211 天前
零知识证明-ZK-SNARKs基础(七)
区块链·零知识证明·zk-snarks·ricp·qap
山师第一深情2 天前
solidity-19-fallback
区块链
zhuqiyua2 天前
TVM和EVM的比较
区块链·智能合约·ton
sino_sound2 天前
伦敦金的交易差价意味着什么?
人工智能·金融·区块链
黑色叉腰丶大魔王2 天前
什么是区块链,以及应用场景
去中心化·区块链·分布式账本
qiquandong2 天前
场外期权或成暴利工具?!应该怎么做场外期权?
区块链