furqansiddiqui / ethereum-rpc

Ethereum (geth) RPC client
MIT License
24 stars 32 forks source link

Problem sending ERC20 token #14

Closed sonofliberty closed 4 years ago

sonofliberty commented 5 years ago

So this $data = $erc20->token($contract)->encodedTransferData($to, $value);

gives me this 0xa9059cbb000000000000000000000000218f85c91c12cae5be1d63194e693af55cf8857500000000000000000000000000000000000000000000000ad78ebc5ac6200000

Parity doesn't like this 138 characters long string Invalid params: invalid length 0, expected a 0x-prefixed hex string with length between (0; 64]

Am I doing it wrong?

furqansiddiqui commented 4 years ago

Please try with Ethereum Go (geth) server instead of parity