tx_getBatchTransactions
根据交易哈希批量查询交易。
Parameters
<Object>
hashs
:[<string>]
- 交易哈希数组,哈希值为32字节的十六进制字符串。
Returns
[<Transaction>]
- Transaction对象字段见 合法交易.
Example
- # Request
- curl -X POST --data '{"jsonrpc":"2.0","method":"tx_getBatchTransactions","params":[{
- "hashes":["0x22321358931c577ceaa2088d914758148dc6c1b6096a0b3f565d130f03ca75e4","0x7aebde51531bb29d3ba620f91f6e1556a1e8b50913e590f31d4fe4a2436c0602"]
- }],"id":1}'
- # Response
- {
- "jsonrpc": "2.0",
- "namespace": "global",
- "id": 1,
- "code": 0,
- "message": "SUCCESS",
- "result": [
- {
- "version": "1.3",
- "hash": "0x22321358931c577ceaa2088d914758148dc6c1b6096a0b3f565d130f03ca75e4",
- "blockNumber": "0x2",
- "blockHash": "0x9c41efcc50ec6af6e3d14e1669f37bd1fc0cfe5836af6ab1e43ced98653c938b",
- "txIndex": "0x0",
- "from": "0x17d806c92fa941b4b7a8ffffc58fa2f297a3bffc",
- "to": "0xaeccd2fd1118334402c5de1cb014a9c192c498df",
- "amount": "0x0",
- "timestamp": 1509440823410000000,
- "nonce": 8291834415403909,
- "extra": "",
- "executeTime": "0x6",
- "payload": "0x0a9ae69d"
- },
- {
- "version": "1.3",
- "hash": "0x7aebde51531bb29d3ba620f91f6e1556a1e8b50913e590f31d4fe4a2436c0602",
- "blockNumber": "0x1",
- "blockHash": "0x4cd9f393aabb2df51c09e66925c4513e23f0dbbb9e94d0351c1c3ec7539144a0",
- "txIndex": "0x0",
- "from": "0x17d806c92fa941b4b7a8ffffc58fa2f297a3bffc",
- "to": "0x0000000000000000000000000000000000000000",
- "amount": "0x0",
- "timestamp": 1509440820498000000,
- "nonce": 5098902950712745,
- "extra": "",
- "executeTime": "0x11",
- "payload": "0x6060604052341561000f57600080fd5b60405160408061016083398101604052808051919060200180519150505b6000805467ffffffff000000001963ffffffff19821663ffffffff600393840b8701840b81169190911791821664010000000092839004840b860190930b16021790555b50505b60de806100826000396000f300606060405263ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630a9ae69d811460465780638466c3e614606f575b600080fd5b3415605057600080fd5b60566098565b604051600391820b90910b815260200160405180910390f35b3415607957600080fd5b605660a9565b604051600391820b90910b815260200160405180910390f35b600054640100000000900460030b81565b60005460030b815600a165627a7a7230582073eeeb74bb45b3055f1abe89f428d164ef7425bf57a999d219cbaefb6e3c0080002900000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005"
- }
- ]
- }
当前内容版权归 Hyperchain 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Hyperchain .