furqansiddiqui / erc20-php

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

how does call contract method #27

Closed PHPJourney closed 1 year ago

PHPJourney commented 4 years ago

In project code,i can't see use call call other method.

now i can use token get token info and balance

like approve something

PHPJourney commented 4 years ago

approveAndCall params bytes type can't use encodeArg

xcc369 commented 3 years ago

did you fix that problem?

atlaschiew commented 3 years ago

@PHPJourney @xcc369

In project code,i can't see use call call other method. not sure is this https://www.btcschools.net/ethereum/eth_call.php helpful to u? shortly, say you use infura's node, then next you need to get encoded param and trigger eth_call method .

approveAndCall params bytes type can't use encodeArg i have added encode bytes type in https://www.btcschools.net/ethereum/eth_abi_data_encoding.php. @furqansiddiqui i modify this on top of your codings actually, so you may enhance it in your repo. thanks

Atlas Chiew btcschools.net