Advertisement
Guest User

Untitled

a guest
Dec 9th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  1.  
  2. C:\temp>node test
  3. Eth {
  4. _requestManager:
  5. RequestManager {
  6. provider:
  7. HttpProvider {
  8. host: 'https://mainnet.infura.io/8R57ZwCvZ5w7UjLuYZCQ',
  9. timeout: 0,
  10. user: undefined,
  11. password: undefined },
  12. polls: {},
  13. timeout: null },
  14. getBalance: { [Function: send] request: [Function: bound ], call: 'eth_getBalance' },
  15. getStorageAt: { [Function: send] request: [Function: bound ], call: 'eth_getStorageAt' },
  16. getCode: { [Function: send] request: [Function: bound ], call: 'eth_getCode' },
  17. getBlock: { [Function: send] request: [Function: bound ], call: [Function: blockCall] },
  18. getUncle: { [Function: send] request: [Function: bound ], call: [Function: uncleCall] },
  19. getCompilers: { [Function: send] request: [Function: bound ], call: 'eth_getCompilers' },
  20. getBlockTransactionCount:
  21. { [Function: send]
  22. request: [Function: bound ],
  23. call: [Function: getBlockTransactionCountCall] },
  24. getBlockUncleCount:
  25. { [Function: send]
  26. request: [Function: bound ],
  27. call: [Function: uncleCountCall] },
  28. getTransaction:
  29. { [Function: send]
  30. request: [Function: bound ],
  31. call: 'eth_getTransactionByHash' },
  32. getTransactionFromBlock:
  33. { [Function: send]
  34. request: [Function: bound ],
  35. call: [Function: transactionFromBlockCall] },
  36. getTransactionReceipt:
  37. { [Function: send]
  38. request: [Function: bound ],
  39. call: 'eth_getTransactionReceipt' },
  40. getTransactionCount: { [Function: send] request: [Function: bound ], call: 'eth_getTransactionCount' },
  41. call: { [Function: send] request: [Function: bound ], call: 'eth_call' },
  42. estimateGas: { [Function: send] request: [Function: bound ], call: 'eth_estimateGas' },
  43. sendRawTransaction: { [Function: send] request: [Function: bound ], call: 'eth_sendRawTransaction' },
  44. signTransaction: { [Function: send] request: [Function: bound ], call: 'eth_signTransaction' },
  45. sendTransaction: { [Function: send] request: [Function: bound ], call: 'eth_sendTransaction' },
  46. sign: { [Function: send] request: [Function: bound ], call: 'eth_sign' },
  47. compile:
  48. { solidity: { [Function: send] request: [Function: bound ], call: 'eth_compileSolidity' },
  49. lll: { [Function: send] request: [Function: bound ], call: 'eth_compileLLL' },
  50. serpent: { [Function: send] request: [Function: bound ], call: 'eth_compileSerpent' } },
  51. submitWork: { [Function: send] request: [Function: bound ], call: 'eth_submitWork' },
  52. getWork: { [Function: send] request: [Function: bound ], call: 'eth_getWork' },
  53. coinbase: [Getter],
  54. getCoinbase: { [Function: get] request: [Function: bound ] },
  55. mining: [Getter],
  56. getMining: { [Function: get] request: [Function: bound ] },
  57. hashrate: [Getter],
  58. getHashrate: { [Function: get] request: [Function: bound ] },
  59. syncing: [Getter],
  60. getSyncing: { [Function: get] request: [Function: bound ] },
  61. gasPrice: [Getter],
  62. getGasPrice: { [Function: get] request: [Function: bound ] },
  63. accounts: [Getter],
  64. getAccounts: { [Function: get] request: [Function: bound ] },
  65. blockNumber: [Getter],
  66. getBlockNumber: { [Function: get] request: [Function: bound ] },
  67. protocolVersion: [Getter],
  68. getProtocolVersion: { [Function: get] request: [Function: bound ] },
  69. iban:
  70. { [Function: Iban]
  71. fromAddress: [Function],
  72. fromBban: [Function],
  73. createIndirect: [Function],
  74. isValid: [Function] },
  75. sendIBANTransaction: [Function: bound transfer] }
  76. C:\temp\test.js:15
  77. web3.eth.getPastLogs({address: "0x06012c8cf97bead5deae237070f9587f8e7a266d", topics: ["0x241ea03ca20251805084d27d4440371
  78. c34a0b85ff108f6bb5611248f73818b80"]}).then(logs => {
  79. ^
  80.  
  81. TypeError: web3.eth.getPastLogs is not a function
  82. at Object.<anonymous> (C:\temp\test.js:15:10)
  83. at Module._compile (module.js:635:30)
  84. at Object.Module._extensions..js (module.js:646:10)
  85. at Module.load (module.js:554:32)
  86. at tryModuleLoad (module.js:497:12)
  87. at Function.Module._load (module.js:489:3)
  88. at Function.Module.runMain (module.js:676:10)
  89. at startup (bootstrap_node.js:187:16)
  90. at bootstrap_node.js:608:3
  91.  
  92. C:\temp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement