GetBlockTransactionCountByNumber.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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\QuantityValidator;
  14. use blockchain\web3\src\Formatters\OptionalQuantityFormatter;
  15. use blockchain\web3\src\Formatters\BigNumberFormatter;
  16. class GetBlockTransactionCountByNumber extends EthMethod
  17. {
  18. /**
  19. * validators
  20. *
  21. * @var array
  22. */
  23. protected $validators = [
  24. QuantityValidator::class
  25. ];
  26. /**
  27. * inputFormatters
  28. *
  29. * @var array
  30. */
  31. protected $inputFormatters = [
  32. OptionalQuantityFormatter::class
  33. ];
  34. /**
  35. * outputFormatters
  36. *
  37. * @var array
  38. */
  39. protected $outputFormatters = [
  40. BigNumberFormatter::class
  41. ];
  42. /**
  43. * defaultValues
  44. *
  45. * @var array
  46. */
  47. protected $defaultValues = [
  48. 'latest'
  49. ];
  50. /**
  51. * construct
  52. *
  53. * @param string $method
  54. * @param array $arguments
  55. * @return void
  56. */
  57. // public function __construct($method='', $arguments=[])
  58. // {
  59. // parent::__construct($method, $arguments);
  60. // }
  61. }