GetTransactionByHash.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * This file is part of web3.php package.
  4. *
  5. * (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
  6. *
  7. * @author Peter Lai <alk03073135@gmail.com>
  8. * @license MIT
  9. */
  10. namespace blockchain\web3\src\Methods\Eth;
  11. use InvalidArgumentException;
  12. use blockchain\web3\src\Methods\EthMethod;
  13. use blockchain\web3\src\Validators\BlockHashValidator;
  14. use blockchain\web3\src\Formatters\HexFormatter;
  15. class GetTransactionByHash extends EthMethod
  16. {
  17. /**
  18. * validators
  19. *
  20. * @var array
  21. */
  22. protected $validators = [
  23. BlockHashValidator::class
  24. ];
  25. /**
  26. * inputFormatters
  27. *
  28. * @var array
  29. */
  30. protected $inputFormatters = [
  31. HexFormatter::class
  32. ];
  33. /**
  34. * outputFormatters
  35. *
  36. * @var array
  37. */
  38. protected $outputFormatters = [];
  39. /**
  40. * defaultValues
  41. *
  42. * @var array
  43. */
  44. protected $defaultValues = [];
  45. /**
  46. * construct
  47. *
  48. * @param string $method
  49. * @param array $arguments
  50. * @return void
  51. */
  52. // public function __construct($method='', $arguments=[])
  53. // {
  54. // parent::__construct($method, $arguments);
  55. // }
  56. }