eth_js.go 570 B

12345678910111213141516171819202122232425262728
  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. ],
  17. properties:
  18. [
  19. new web3._extend.Property({
  20. name: 'pendingTransactions',
  21. getter: 'eth_pendingTransactions',
  22. outputFormatter: function(obj) { return obj; }
  23. })
  24. ]
  25. });
  26. `