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 ?

drov
  • 33
  • 1
  • 4
  • 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. – ʰᵈˑ Sep 21 '17 at 09:31

1 Answers1

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.

Jesbus
  • 10,478
  • 6
  • 35
  • 62