furqansiddiqui / erc20-php

Interact with Ethereum ERC20 Tokens
MIT License
164 stars 97 forks source link

How to send ERC20 Custom Token to ether address #2

Closed hsfzmsn closed 6 years ago

hsfzmsn commented 6 years ago

Hi,

Is it possible to send ERC20 Custom Token to and ethereum address? $geth = new EthereumRPC($this->host, $this->port); $erc20 = new \ERC20\ERC20($geth); $token = $erc20->token('0x4c7e9.......');

  var_dump($token->transfer('0x30e3c....','1000000'));

but not yet received think you!

furqansiddiqui commented 6 years ago

transfer() method is there to compliment standard ERC20 ABI, to transfer ERC20 tokens use encodedTransferData() method and use the returning string as value for data parameter of Ethereum transactions

hsfzmsn commented 6 years ago

Yes, much clearer. Thank you so much for your explanation.

amandiobm commented 6 years ago

@furqansiddiqui man, a very good job with this library, easy to use and config.

About send a token, and I read this.

transfer() method is there to compliment standard ERC20 ABI, to transfer ERC20 tokens use encodedTransferData() method and use the returning string as value for data parameter of Ethereum transactions

Can you give me a code example of how to achieve that using your lib?

Kind Regards.

amandiobm commented 6 years ago

Found it

furqansiddiqui commented 6 years ago

https://www.furqansiddiqui.com/transfer-erc20-token-from-one-account-to-another-using-php/

zhawasolutions commented 3 years ago

https://www.furqansiddiqui.com/transfer-erc20-token-from-one-account-to-another-using-php/

the link is broken, can you give me alternate link... thanks before.