eth_js.go 859 B

1234567891011121314151617181920212223242526272829303132333435
  1. package api
  2. // JS api provided by web3.js
  3. // eth_sign not standard
  4. const Eth_JS = `
  5. web3._extend({
  6. property: 'eth',
  7. methods:
  8. [
  9. new web3._extend.Method({
  10. name: 'sign',
  11. call: 'eth_sign',
  12. params: 2,
  13. inputFormatter: [web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputString],
  14. outputFormatter: web3._extend.formatters.formatOutputString
  15. }),
  16. new web3._extend.Method({
  17. name: 'resend',
  18. call: 'eth_resend',
  19. params: 3,
  20. inputFormatter: [function(obj) { return obj; },web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputString],
  21. outputFormatter: web3._extend.formatters.formatOutputString
  22. })
  23. ],
  24. properties:
  25. [
  26. new web3._extend.Property({
  27. name: 'pendingTransactions',
  28. getter: 'eth_pendingTransactions',
  29. outputFormatter: function(obj) { return obj; }
  30. })
  31. ]
  32. });
  33. `