getTransactionReceiptByHashWithProof
返回根据交易哈希查询的带证明的交易回执信息,本接口仅在兼容性版本为2.2.0及以后的版本有效,证明信息是为了验证回执的存在性,回执存在性证明请参考文档交易证明
groupID
:unsigned int
- 群组IDtransactionHash
:string
- 交易哈希
返回值
array
- 回执证明,字段如下:left
:array
- 左边的哈希列表right
:array
- 右边的哈希列表
object
: - 交易信息,其字段如下:blockHash
:string
- 包含该交易的区块哈希blockNumber
:string
- 包含该交易的区块高度contractAddress
:string
- 合约地址,如果创建合约交易,则为合约部署地址,如果是调用合约,则为”0x0000000000000000000000000000000000000000”from
:string
- 发送者的地址gasUsed
:string
- 交易消耗的gasinput
:string
- 交易的输入logs
:array
- 交易产生的loglogsBloom
:string
- log的布隆过滤器值output
:string
- 交易的输出status
:string
- 交易的状态值,参考:交易回执状态to
:string
- 接收者的地址,创建合约交易的该值为nulltransactionHash
:string
- 交易哈希transactionIndex
:string
- 交易序号
- 示例
curl -X POST --data '{"jsonrpc":"2.0","method":"getTransactionReceiptByHashWithProof","params":[1,"0xd2c12e211315ef09dbad53407bc820d062780232841534954f9c23ab11d8ab4c"],"id":1}' http://127.0.0.1:8585 |jq
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"receiptProof": [
{
"left": [
"3088b5c8f9d92a3411a911f35ff0119a02e8f8f04852cf2fdfaa659843eac6a3ad",
"31170ac8fd555dc50e59050841da0d96e4c4bc7e6266e1c6865c08c3b2391801dd"
],
"right": [
"33c572c8f961e0c56689d641fcf274916857819769a74e6424c58659bf530e90e3",
"341233933ea3d357b4fdd6b3d1ed732dcff15cfd54e527c93c15a4e0238585ed11",
"351e7ba09965cce1cfb820aced1d37204b06d96a21c5c2cf36850ffc62cf1fc84c",
"361f65633d9ae843d4d3679b255fd448546a7b531c0056e8161ea0adbf1af12c0f",
"37744f6e0d320314536b230d28b2fd6ac90b0111fb1e3bf4a750689abc282d8589",
"386e60d9daa0be9825019fcf3d08cdaf51a90dc62a22a6e11371f94a8e516679cc",
"391ef2f2cee81f3561a9900d5333af18f59aa3cd14e70241b5e86305ba697bf5f2",
"3ac9999d4f36d76c95c61761879eb9ec60b964a489527f5af844398ffaa8617f0d",
"3b0039ce903e275170640f3a464ce2e1adc2a7caee41267c195469365074032401",
"3ca53017502028a0cb5bbf6c47c4779f365138da6910ffcfebf9591b45b89abd48",
"3de04fc8766a344bb73d3fe6360c61d036e2eeedfd9ecdb86a0498d7849ed591f0",
"3e2fc73ee22c4986111423dd20e8db317a313c9df29fa5aa3090f27097ecc4e1a9",
"3fa7d31ad5c6e7bba3f99f9efc03ed8dd97cb1504003c34ad6bde5a662481f00a0"
]
},
{
"left": [
"cd46118c0e99be585ffcf50423630348dbc486e54e9d9293a6a8754020a68a92",
"3be78209b3e3c83af3668ec3192b5bf232531323ef66b66de80a11f386270132",
"bd3a11d74a3fd79b1e1ea17e45b76eda4d25f6a5ec7fc5f067ea0d086b1ce70f"
],
"right": [
"6a6cefef8b48e455287a8c8694b06f4f7cb7950017ab048d6e6bdd8029f9f8c9",
"0a27c5ee02e618d919d228e6a754dc201d299c91c9e4420a48783bb6fcd09be5"
]
},
{
"left": [],
"right": []
}
],
"transactionReceipt": {
"blockHash": "0xcd31b05e466bce99460b1ed70d6069fdfbb15e6eef84e9b9e4534358edb3899a",
"blockNumber": "0x5",
"contractAddress": "0x0000000000000000000000000000000000000000",
"from": "0x148947262ec5e21739fe3a931c29e8b84ee34a0f",
"gasUsed": "0x21dc1b",
"input": "0x8a42ebe90000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000000a3564646636663863653800000000000000000000000000000000000000000000",
"logs": [],
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"output": "0x",
"root": "0xc3b4185963c78a4ca8eb90240e5cd95371d7217a9ce2bfa1149d53f79c73afbb",
"status": "0x0",
"to": "0xd6c8a04b8826b0a37c6d4aa0eaa8644d8e35b79f",
"transactionHash": "0xd2c12e211315ef09dbad53407bc820d062780232841534954f9c23ab11d8ab4c",
"transactionIndex": "0x32"
}
}
}
当前内容版权归 fisco-bcos.org 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 fisco-bcos.org .