基于区块链的毕业设计EthTx Community Edition – EthTx社区版

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计EthTx Community Edition – EthTx社区版 是一篇很好的国外资料

EthTx Community Edition

Community version of EthTx transaction decoder

EthTx Community Edition - EthTx社区版 EthTx Community Edition - EthTx社区版 EthTx Community Edition - EthTx社区版 EthTx Community Edition - EthTx社区版


Local environment

For local instance, you need few things:

  1. Depending on your distribution, install: docker, docker-compose, python3-pip, pipenv
  2. mongoDB – to set it up for the first time, execute this command: make populate-db. This will init db with seed provided in repository. After this, if mongo is not running you can raise it with make run-database
  3. pipenv – to create virtual env run command pipenv install, this should create venv for this project with all python dependencies.

After this, if you want to run any command inside this env, use pipenv run or pipenv shell.

To run flask server localy, use make run-local command, this will setup new server on host 0.0.0.0 port 5000

.env file

For proper functioning, .env file is required containing all database and 3rd party providers configuration. .env.sample file is provided in repository with default values and should be good to use if nothing else was changed.

Parameters [CHAIN_ID]_NODE_URL should hold valid urls to ethereum nodes; Parameter ETHERSCAN_KEY should be equal to Etherscan API key assigned to user.

For docker container, values should be placed in .env_docker file since urls for database are differrent than normal instance

API

The EthTx APIs are provided as a community service and without warranty, so please use what you need and no more. We support GET requests.

  • Decode transaction

    Returns decoded EthTx transaction, based on chain_id and transaction hash tx_hash

    • URL
      /api/transactions/CHAIN_ID/TX_HASH
    • Method GET
    • Authorization
      • Required: header: x-api-key=[string] OR query parameter: api_key=[string]
    • URL Params
      • Required: chain_id=[string],tx_hash=[string]
    • Example
      curl --location --request GET 'http://0.0.0.0:5000/api/transactions/dsad/asd'  --header 'x-api-key: 05a2212d-9985-48d2-b54f-0fbc5ba28766'
  • Get Raw Semantic

    Returns raw semantic based on chain_id and sender/receiver address

    • URL
      /api/semantics/CHAIN_ID/ADDRESS
    • Method GET
    • Authorization
      • Required: header: x-api-key=[string] OR query parameter: api_key=[string]
    • URL Params
      • Required:chain_id=[string],address=[string]
    • Example
      curl --location --request GET 'http://0.0.0.0:5000/api/semantics/dsad/asd'  --header 'x-api-key: 05a2212d-9985-48d2-b54f-0fbc5ba28766'

EthTx Community Edition

EthTx事务解码器的社区版本

对于本地实例,您只需要几件事:


本地环境

之后,如果您想在此环境中运行任何命令,请使用pipenv run或pipenv shell

  1. 根据您的发行版,安装:docker、docker compose、python3 pip,pipenv
  2. mongoDB-要首次设置它,请执行以下命令:makepopulatedb。这将使用存储库中提供的种子初始化数据库。在此之后,如果mongo没有运行,您可以使用make run database
  3. pipenv-来创建virtual env run命令pipenv install,这应该为这个项目创建具有所有python依赖项的venv

要在本地运行flask server,请使用make run local命令,这将在主机0.0.0.0端口5000上设置新服务器,以确保正常运行。需要包含所有数据库和第三方提供程序配置的.env文件。如果存储库中未提供任何要使用的默认值,则应使用env.sample

参数[CHAINu ID]u NODEu URL应包含指向以太坊eth节点的有效URL;参数ETHERSCANu KEY应等于分配给用户的ETHERSCAN API KEY

.env文件

对于docker容器,值应该放在.envu docker文件中,因为数据库的URL与普通实例不同

EthTx API是作为社区服务提供的,不提供任何担保,因此请使用您需要的内容。我们支持GET请求

解码事务

API

返回解码的EthTx事务,基于链id和事务hash txu hash

  • 解码事务返回解码的EthTx事务,基于chain_id和事务哈希tx_hash URL/api/transactions/chain_id/tx_hash方法获取所需授权:header:x-api-key=[string]或查询参数:api_key=[string]URL参数所需:chain_id=[string],tx_hash=[string]示例curl–location–request GET’http://0.0.0.0:5000/api/transactions/dsad/asd“–header”x-api-key:05a2212d-9985-48d2-b54f-0fbc5ba28766′
  • 方法GET

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/23344.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计EthTx Community Edition – EthTx社区版

提供最优质的资源集合

立即查看 了解详情