personal_js.go 805 B

1234567891011121314151617181920212223242526272829303132
  1. package api
  2. const Personal_JS = `
  3. web3._extend({
  4. property: 'personal',
  5. methods:
  6. [
  7. new web3._extend.Method({
  8. name: 'newAccount',
  9. call: 'personal_newAccount',
  10. params: 1,
  11. inputFormatter: [web3._extend.formatters.formatInputString],
  12. outputFormatter: web3._extend.formatters.formatOutputString
  13. }),
  14. new web3._extend.Method({
  15. name: 'unlockAccount',
  16. call: 'personal_unlockAccount',
  17. params: 3,
  18. inputFormatter: [web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputString,web3._extend.formatters.formatInputInt],
  19. outputFormatter: web3._extend.formatters.formatOutputBool
  20. })
  21. ],
  22. properties:
  23. [
  24. new web3._extend.Property({
  25. name: 'listAccounts',
  26. getter: 'personal_listAccounts',
  27. outputFormatter: function(obj) { return obj; }
  28. })
  29. ]
  30. });
  31. `