Etherscan API 中文文档-交易以及检查交易收据状态

本文原文链接
点击这里获取Etherscan API 中文文档(完整版)
完整内容排版更好,推荐读者前往阅读。

交易(Transaction)

交易相关的 API,接口的参数说明请参考Etherscan API 约定, 文档中不单独说明。

[BETA] 检查合约执行状态

(if there was an error during contract execution)

Note: isError":"0" = Pass , isError":"1" = Error during Contract Execution

https://api.etherscan.io/api?module=transaction&action=getstatus&txhash=0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a&apikey=YourApiKeyToken

[BETA] 检查交易收据状态

(Only applicable for Post Byzantium fork transactions)

Note: status: 0 = Fail, 1 = Pass. Will return null/empty value for pre-byzantium fork

https://api.etherscan.io/api?module=transaction&action=gettxreceiptstatus&txhash=0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76&apikey=YourApiKeyToken
点击获取Etherscan API 中文文档(完整版)

示意图:
在这里插入图片描述

相关文档推荐:

Solidity 中文文档(完整版)
ethers.js 中文文档(完整版)
Web3.js 中文文档(完整版)
Truffle 中文文档(完整版)

posted @ 2019-05-26 20:35  Tiny熊  阅读(1209)  评论(0编辑  收藏  举报