主页 > imtoken安装不了 > account/txlistinternal - 获取指定交易触发的内部交易列表
account/txlistinternal - 获取指定交易触发的内部交易列表
imtoken安装不了 2023-10-19 05:07:22
account/txlistinternal - 获取指定交易触发的内部交易列表
当一个合约方法在内部调用其他合约方法时,这个事务称为内部事务。 使用account模块的txlistinternal方法获取指定交易触发的内部交易列表。
API调用
GET|POST /api
查询|表单参数:
API返回结果
JSON对象以太坊交易信息获取,主要字段如下:
示例代码
curl的调用示例如下以太坊交易信息获取,或者点击这里在浏览器中调用:
~$ curl https://api.etherscan.io/api?module=account&action=txlistinternal&txhash=0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170&apikey=YourApiKeyToken
返回结果:
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "1743059",
"timeStamp": "1466489498",
"from": "0x2cac6e4b11d6b58f6d3c1c9d5fe8faa89f60e5a2",
"to": "0x66a1c3eaf0f1ffc28d209c0763ed0ca614f3b002",
"value": "7106740000000000",
"contractAddress": "",
"input": "",
"type": "call",
"gas": "2300",
"gasUsed": "0",
"isError": "0",
"errCode": ""
}
]
}