本文原文連接
點擊這裏獲取Etherscan API 中文文檔(完整版)
完整內容排版更好,推薦讀者前往閱讀。html
交易相關的 API,接口的參數說明請參考Etherscan API 約定, 文檔中不單獨說明。web
(if there was an error during contract execution)api
Note: isError":"0" = Pass , isError":"1" = Error during Contract Executionapp
https://api.etherscan.io/api?module=transaction&action=getstatus&txhash=0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a&apikey=YourApiKeyToken
(Only applicable for Post Byzantium fork transactions)spa
Note: status: 0 = Fail, 1 = Pass. Will return null/empty value for pre-byzantium forkcode
https://api.etherscan.io/api?module=transaction&action=gettxreceiptstatus&txhash=0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76&apikey=YourApiKeyToken
示意圖:
htm
Solidity 中文文檔(完整版)
ethers.js 中文文檔(完整版)
Web3.js 中文文檔(完整版)
Truffle 中文文檔(完整版)blog