eth_js.go 395 B

1234567891011121314151617181920
  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. });
  18. `