getTransactionReceipt
返回根据交易哈希查询的交易回执信息
参数
groupID
:unsigned int
- 群组IDtransactionHash
:string
- 交易哈希
返回值
object
: - 交易信息,其字段如下:blockHash
:string
- 包含该交易的区块哈希blockNumber
:string
- 包含该交易的区块高度contractAddress
:string
- 合约地址,如果创建合约,则为”0x0000000000000000000000000000000000000000”from
:string
- 发送者的地址gasUsed
:string
- 交易消耗的gaslogs
:array
- 交易产生的loglogsBloom
:string
- log的布隆过滤器值status
:string
- 交易的状态值,参考:交易回执状态to
:string
- 接收者的地址,创建合约交易的该值为nulltransactionHash
:string
- 交易哈希transactionIndex
:string
- 交易序号
- 示例
- // Request
- curl -X POST --data '{"jsonrpc":"2.0","method":"getTransactionReceipt","params":[1,"0x7536cf1286b5ce6c110cd4fea5c891467884240c9af366d678eb4191e1c31c6f"],"id":1}' http://127.0.0.1:8545 |jq
- // Result
- {
- "id": 1,
- "jsonrpc": "2.0",
- "result": {
- "blockHash": "0x10bfdc1e97901ed22cc18a126d3ebb8125717c2438f61d84602f997959c631fa",
- "blockNumber": "0x1",
- "contractAddress": "0x0000000000000000000000000000000000000000",
- "from": "0x6bc952a2e4db9c0c86a368d83e9df0c6ab481102",
- "gasUsed": "0x64d8",
- "logs": [ ],
- "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
- "status": "0x0",
- "to": "0xd6f1a71052366dbae2f7ab2d5d5845e77965cf0d",
- "transactionHash": "0x7536cf1286b5ce6c110cd4fea5c891467884240c9af366d678eb4191e1c31c6f",
- "transactionIndex": "0x0"
- }
- }
当前内容版权归 FISCO BCOS 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 FISCO BCOS .