debug_js.go 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // Copyright 2015 The go-ethereum Authors
  2. // This file is part of the go-ethereum library.
  3. //
  4. // The go-ethereum library is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU Lesser General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // The go-ethereum library is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public License
  15. // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
  16. package api
  17. const Debug_JS = `
  18. web3._extend({
  19. property: 'debug',
  20. methods:
  21. [
  22. new web3._extend.Method({
  23. name: 'printBlock',
  24. call: 'debug_printBlock',
  25. params: 1,
  26. inputFormatter: [null]
  27. }),
  28. new web3._extend.Method({
  29. name: 'getBlockRlp',
  30. call: 'debug_getBlockRlp',
  31. params: 1,
  32. inputFormatter: [null]
  33. }),
  34. new web3._extend.Method({
  35. name: 'setHead',
  36. call: 'debug_setHead',
  37. params: 1,
  38. inputFormatter: [null]
  39. }),
  40. new web3._extend.Method({
  41. name: 'processBlock',
  42. call: 'debug_processBlock',
  43. params: 1,
  44. inputFormatter: [null]
  45. }),
  46. new web3._extend.Method({
  47. name: 'seedHash',
  48. call: 'debug_seedHash',
  49. params: 1,
  50. inputFormatter: [null]
  51. }),
  52. new web3._extend.Method({
  53. name: 'dumpBlock',
  54. call: 'debug_dumpBlock',
  55. params: 1,
  56. inputFormatter: [null]
  57. }),
  58. new web3._extend.Method({
  59. name: 'metrics',
  60. call: 'debug_metrics',
  61. params: 1,
  62. inputFormatter: [null]
  63. })
  64. ],
  65. properties:
  66. [
  67. ]
  68. });
  69. `