0

I'm trying to use web3.js to use the "transfer" function of an ERC20 token.

I've found this example here : How to send ERC20 token using Web3 API? which seems good (but kind of old)

But I notice they almost always put "..." after an address like so :

var contractAddress = "0x8...";

or

"data": contract.transfer.getData("0xCb...", 10, {from: "0x26..."}),

Why is that ?

1
  • The dost are there to just show more characters are there, a placeholder. They just don't want to reveal the full address. Ignore the dots.
    – ʰᵈˑ
    Commented Sep 21, 2017 at 9:31

1 Answer 1

1

They just don't want to reveal the addresses and keys to everyone on stackexchange.

To get it to work, you must use a full address, without the dots.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.