debug_js.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package api
  2. const Debug_JS = `
  3. web3._extend({
  4. property: 'debug',
  5. methods:
  6. [
  7. new web3._extend.Method({
  8. name: 'printBlock',
  9. call: 'debug_printBlock',
  10. params: 1,
  11. inputFormatter: [web3._extend.formatters.formatInputInt],
  12. outputFormatter: web3._extend.formatters.formatOutputString
  13. }),
  14. new web3._extend.Method({
  15. name: 'getBlockRlp',
  16. call: 'debug_getBlockRlp',
  17. params: 1,
  18. inputFormatter: [web3._extend.formatters.formatInputInt],
  19. outputFormatter: web3._extend.formatters.formatOutputString
  20. }),
  21. new web3._extend.Method({
  22. name: 'setHead',
  23. call: 'debug_setHead',
  24. params: 1,
  25. inputFormatter: [web3._extend.formatters.formatInputInt],
  26. outputFormatter: web3._extend.formatters.formatOutputBool
  27. }),
  28. new web3._extend.Method({
  29. name: 'processBlock',
  30. call: 'debug_processBlock',
  31. params: 1,
  32. inputFormatter: [web3._extend.formatters.formatInputInt],
  33. outputFormatter: function(obj) { return obj; }
  34. }),
  35. new web3._extend.Method({
  36. name: 'seedHash',
  37. call: 'debug_seedHash',
  38. params: 1,
  39. inputFormatter: [web3._extend.formatters.formatInputInt],
  40. outputFormatter: web3._extend.formatters.formatOutputString
  41. }) ,
  42. new web3._extend.Method({
  43. name: 'dumpBlock',
  44. call: 'debug_dumpBlock',
  45. params: 1,
  46. inputFormatter: [web3._extend.formatters.formatInputInt],
  47. outputFormatter: function(obj) { return obj; }
  48. })
  49. ],
  50. properties:
  51. [
  52. ]
  53. });
  54. `