Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\temp>node test
- Eth {
- _requestManager:
- RequestManager {
- provider:
- HttpProvider {
- host: 'https://mainnet.infura.io/8R57ZwCvZ5w7UjLuYZCQ',
- timeout: 0,
- user: undefined,
- password: undefined },
- polls: {},
- timeout: null },
- getBalance: { [Function: send] request: [Function: bound ], call: 'eth_getBalance' },
- getStorageAt: { [Function: send] request: [Function: bound ], call: 'eth_getStorageAt' },
- getCode: { [Function: send] request: [Function: bound ], call: 'eth_getCode' },
- getBlock: { [Function: send] request: [Function: bound ], call: [Function: blockCall] },
- getUncle: { [Function: send] request: [Function: bound ], call: [Function: uncleCall] },
- getCompilers: { [Function: send] request: [Function: bound ], call: 'eth_getCompilers' },
- getBlockTransactionCount:
- { [Function: send]
- request: [Function: bound ],
- call: [Function: getBlockTransactionCountCall] },
- getBlockUncleCount:
- { [Function: send]
- request: [Function: bound ],
- call: [Function: uncleCountCall] },
- getTransaction:
- { [Function: send]
- request: [Function: bound ],
- call: 'eth_getTransactionByHash' },
- getTransactionFromBlock:
- { [Function: send]
- request: [Function: bound ],
- call: [Function: transactionFromBlockCall] },
- getTransactionReceipt:
- { [Function: send]
- request: [Function: bound ],
- call: 'eth_getTransactionReceipt' },
- getTransactionCount: { [Function: send] request: [Function: bound ], call: 'eth_getTransactionCount' },
- call: { [Function: send] request: [Function: bound ], call: 'eth_call' },
- estimateGas: { [Function: send] request: [Function: bound ], call: 'eth_estimateGas' },
- sendRawTransaction: { [Function: send] request: [Function: bound ], call: 'eth_sendRawTransaction' },
- signTransaction: { [Function: send] request: [Function: bound ], call: 'eth_signTransaction' },
- sendTransaction: { [Function: send] request: [Function: bound ], call: 'eth_sendTransaction' },
- sign: { [Function: send] request: [Function: bound ], call: 'eth_sign' },
- compile:
- { solidity: { [Function: send] request: [Function: bound ], call: 'eth_compileSolidity' },
- lll: { [Function: send] request: [Function: bound ], call: 'eth_compileLLL' },
- serpent: { [Function: send] request: [Function: bound ], call: 'eth_compileSerpent' } },
- submitWork: { [Function: send] request: [Function: bound ], call: 'eth_submitWork' },
- getWork: { [Function: send] request: [Function: bound ], call: 'eth_getWork' },
- coinbase: [Getter],
- getCoinbase: { [Function: get] request: [Function: bound ] },
- mining: [Getter],
- getMining: { [Function: get] request: [Function: bound ] },
- hashrate: [Getter],
- getHashrate: { [Function: get] request: [Function: bound ] },
- syncing: [Getter],
- getSyncing: { [Function: get] request: [Function: bound ] },
- gasPrice: [Getter],
- getGasPrice: { [Function: get] request: [Function: bound ] },
- accounts: [Getter],
- getAccounts: { [Function: get] request: [Function: bound ] },
- blockNumber: [Getter],
- getBlockNumber: { [Function: get] request: [Function: bound ] },
- protocolVersion: [Getter],
- getProtocolVersion: { [Function: get] request: [Function: bound ] },
- iban:
- { [Function: Iban]
- fromAddress: [Function],
- fromBban: [Function],
- createIndirect: [Function],
- isValid: [Function] },
- sendIBANTransaction: [Function: bound transfer] }
- C:\temp\test.js:15
- web3.eth.getPastLogs({address: "0x06012c8cf97bead5deae237070f9587f8e7a266d", topics: ["0x241ea03ca20251805084d27d4440371
- c34a0b85ff108f6bb5611248f73818b80"]}).then(logs => {
- ^
- TypeError: web3.eth.getPastLogs is not a function
- at Object.<anonymous> (C:\temp\test.js:15:10)
- at Module._compile (module.js:635:30)
- at Object.Module._extensions..js (module.js:646:10)
- at Module.load (module.js:554:32)
- at tryModuleLoad (module.js:497:12)
- at Function.Module._load (module.js:489:3)
- at Function.Module.runMain (module.js:676:10)
- at startup (bootstrap_node.js:187:16)
- at bootstrap_node.js:608:3
- C:\temp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement