tx_getBatchTransactions

根据交易哈希批量查询交易。

Parameters

  1. <Object>
  • hashs: [<string>] - 交易哈希数组,哈希值为32字节的十六进制字符串。

Returns

  1. [<Transaction>] - Transaction对象字段见 合法交易.

Example

  1. # Request
  2. curl -X POST --data '{"jsonrpc":"2.0","method":"tx_getBatchTransactions","params":[{
  3. "hashes":["0x22321358931c577ceaa2088d914758148dc6c1b6096a0b3f565d130f03ca75e4","0x7aebde51531bb29d3ba620f91f6e1556a1e8b50913e590f31d4fe4a2436c0602"]
  4. }],"id":1}'
  5.  
  6. # Response
  7. {
  8. "jsonrpc": "2.0",
  9. "namespace": "global",
  10. "id": 1,
  11. "code": 0,
  12. "message": "SUCCESS",
  13. "result": [
  14. {
  15. "version": "1.3",
  16. "hash": "0x22321358931c577ceaa2088d914758148dc6c1b6096a0b3f565d130f03ca75e4",
  17. "blockNumber": "0x2",
  18. "blockHash": "0x9c41efcc50ec6af6e3d14e1669f37bd1fc0cfe5836af6ab1e43ced98653c938b",
  19. "txIndex": "0x0",
  20. "from": "0x17d806c92fa941b4b7a8ffffc58fa2f297a3bffc",
  21. "to": "0xaeccd2fd1118334402c5de1cb014a9c192c498df",
  22. "amount": "0x0",
  23. "timestamp": 1509440823410000000,
  24. "nonce": 8291834415403909,
  25. "extra": "",
  26. "executeTime": "0x6",
  27. "payload": "0x0a9ae69d"
  28. },
  29. {
  30. "version": "1.3",
  31. "hash": "0x7aebde51531bb29d3ba620f91f6e1556a1e8b50913e590f31d4fe4a2436c0602",
  32. "blockNumber": "0x1",
  33. "blockHash": "0x4cd9f393aabb2df51c09e66925c4513e23f0dbbb9e94d0351c1c3ec7539144a0",
  34. "txIndex": "0x0",
  35. "from": "0x17d806c92fa941b4b7a8ffffc58fa2f297a3bffc",
  36. "to": "0x0000000000000000000000000000000000000000",
  37. "amount": "0x0",
  38. "timestamp": 1509440820498000000,
  39. "nonce": 5098902950712745,
  40. "extra": "",
  41. "executeTime": "0x11",
  42. "payload": "0x6060604052341561000f57600080fd5b60405160408061016083398101604052808051919060200180519150505b6000805467ffffffff000000001963ffffffff19821663ffffffff600393840b8701840b81169190911791821664010000000092839004840b860190930b16021790555b50505b60de806100826000396000f300606060405263ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630a9ae69d811460465780638466c3e614606f575b600080fd5b3415605057600080fd5b60566098565b604051600391820b90910b815260200160405180910390f35b3415607957600080fd5b605660a9565b604051600391820b90910b815260200160405180910390f35b600054640100000000900460030b81565b60005460030b815600a165627a7a7230582073eeeb74bb45b3055f1abe89f428d164ef7425bf57a999d219cbaefb6e3c0080002900000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005"
  43. }
  44. ]
  45. }