eth_js.go 631 B

1234567891011121314151617181920212223242526272829303132
  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.utils.toAddress, null]
  14. }),
  15. new web3._extend.Method({
  16. name: 'resend',
  17. call: 'eth_resend',
  18. params: 3,
  19. inputFormatter: [web3._extend.formatters.inputTransactionFormatter, web3._extend.utils.fromDecimal, web3._extend.utils.fromDecimal]
  20. })
  21. ],
  22. properties:
  23. [
  24. new web3._extend.Property({
  25. name: 'pendingTransactions',
  26. getter: 'eth_pendingTransactions'
  27. })
  28. ]
  29. });
  30. `