New answers tagged

1

Shortly, you cannot. window is defined only in a browser environment. In your case, since you're running it through Nodejs, window is undefined as expected.


0

Have a look at the npm documentation for resolving eaccess permissions when installing packages globally. https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally I would suggest resolving the permissions issue using a node version manager. Note: Currently truffle doesn't work with node 12 so use either node 10 or node 11....


0

Alternatively, you can specify the name of your event directly as follow : contractInstance.getPastEvents('adduintevent', { filter: {yourIndexedParameter: _value}, fromBlock: 0, toBlock: 'latest' }, (error, events) => { if (!error){ console.log(...


0

Most confusion with handling high volumes of transactions stems from hidden assumptions that will bite at scale. There are some important and non-obvious facts to understand. Transaction nonce is managed by the sender. Transactions from the same sender will be mined in nonce order. Implicitly, it follows that: If a transaction isn't mined, ...


1

It appears that you are having issues with node/npm rather than anything specific to ZeppelinOS. You could delete the token-exchange directory and start the tutorial again. I am not sure why you need to use sudo. If you are not already, you could reinstall npm with a node version manager. https://docs.npmjs.com/resolving-eacces-permissions-errors-when-...


1

Try with this: $ node > const Web3 = require('web3'); > const URL = "https://mainnet.infura.io/v3/ca689c96846043b18d038f8c97174cf6" > const web3 = new Web3(new Web3.providers.HttpProvider(URL)) > web3.version.api '0.20.0' > const address = "0xa92b75a1349426380edd57b4858674cdb327a30d" > web3.eth.getBalance(address, (err, wei) => { ...


1

What you are trying to achieve is definitely doable using any Ethereum tech stack (Javascript, Python, Go, Java, etc...). I will try to explain step by step how to do it using nodejs, Truffle (Ethereum development framework) and Ganache (local development blockchain) Prerequisite: NodeJS, NPM Truffle $ npm install -g truffle $ truffle version Truffle v5....


0

I dont know whether you got the solution or not but I will tell you one solution Please change ipfs.files.add to ipfs.default.files.add Try! Hope it helps you.


Top 50 recent answers are included