Learn Smart Contracts · Web3.js · #2 Ethereum Blockchain Development Crash Course

preview_player
Показать описание
► SUBSCRIBE TO THIS CHANNEL ◄

How to Build Ethereum Dapp (Decentralized Application Development Tutorial)

Donate Ether to the channel: 0x39C7BC5496f4eaaa1fF75d88E079C22f0519E7b9

Рекомендации по теме
Комментарии
Автор

if you are a newbie readon:
- if the function call returns a promise there most like a good reason NOT to use callbacks (infact that is one of the main reasons promises exist) so do something like this instead of what is in this video
=> console.log(result))
Of if you are in 2020 and using node12 or above you should really be using async/await
const result = await

franleplant
Автор

Dude the address that you copy from the etherscan in the end is actually the address of the OMG contract, it is displayed right there on every token holder page, if you check some more. So this is the number of tokens OMG has left in their own token contract. You have to copy the external (user) address from the left column if you want to check the hodler's balance.

Sorry that I point out your mistakes under the videos but it can't be confusing for the people that are trying to learn. This is a minor detail though in comparison with your mistake in the first clip. Lastly, I want to say I do recognize your effort and the time you spend creating a content for free in order to help others.

edmonddantes
Автор

Those having issues, this suggestion fixed it for me. Try:
from Windows PowerShell/cmd (as an ADMIN!)


npm install --global --production windows-build-tools


restart computer
install (also cmd as admin):

npm install web3 latest

awnihussein
Автор

Anybody who couldn't find abi, select the token, click on contract address, then select the contract tab. There u go.

BharatSingh-zklx
Автор

Seems like this doesn't work anymore? Can anyone get contract.methods.totalSupply().call((err, result) => {console.log(result) }) to work? I just get unidentified...

DaBossLewis
Автор

Thanks man! I could not find anything like this in the whole internet....

enfuball
Автор

Excellent, it helped me getting started on the js coding!

samsow
Автор

contract.methods not listing the function list of the contract! Instead it is displaying some other attributes like abimode, events, defaultGasPrice,

animeshtimsina
Автор

My `contract` is working it is retrning the object, but `contract.methods` returns undefined.
Any help?

JavedBaloch
Автор

You must provide the json interface of the contract when instantiating a contract object. Why i am getting this error.

harshanand
Автор

Thank you for the tutorial! It helps a lot! Keep the awesome work!

jhred
Автор

i have a error like this :
WeakReference {} } }
> (node:1451) Error: Node error

I can't see symbol, name etc how can I solve this ?

furkandemirel
Автор

Great video, please I need help. How can I send token to multiple addresses. Note; the token as been verified and publish on ethereum network but I want to send Airdrop to my members at once. Thanks

odesolamoses
Автор

the unit we use with the tokens follow the same division for smaller units like wei and ether or there s no smaller units of the tokens?

carlosfernandez
Автор

web3 is not available but i can use web3-providers-http. However I cannot connect to the network. It tells me the connection is false. I use infura. Yesterday evening it worked! Any ideas

DanielWeikert
Автор

The you fetched in the end isn't that incorrect? The number didn't match with the etherscan

ulhaqanwaar
Автор

Hello Gregory, I've started to follow the tutorial, look great congratulations and thanks. Let me suggest you get verified as BRAVE Creator, so cryptoenthusiastic can tip you using BAT, as I intended to do (just a BAT is not much, but a 9k peopl tipping you 1 BAT could be interesting).

xavierespanol
Автор

420 likes and 0 dislikes! I want to like the video, but I also don't want to ruin the likes number

charliek
Автор

contract.methods not showing the methods. i couldn't get value of contract.methods.name().call((err, the result variable
here shown as null.

_justsiva_
Автор

when you install web3 using npm does that install on my local machine or does it install web3 in the folder that im in?

ArdmoreNo