furqansiddiqui / erc20-php

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

$token->transfer not working with Parity #10

Closed D4rk4 closed 6 years ago

D4rk4 commented 6 years ago

try { $token->transfer(exchange, $tk_balance); echo "\033[01;32Done\033[0m\n"; } catch (\Exception $e) { echo "\e[5m\033[01;31mTransaction failed\033[0m\e[25m\n\033[01;37mERR: ".$e->getMessage()."\033[0m\n"; }

Always get exception " Failed to retrieve transfer response"

Parity return 0x0 result {"jsonrpc":"2.0","result":"0x0000000000000000000000000000000000000000000000000000000000000000","id":"eth_call_1538473672"}

D4rk4 commented 6 years ago

Wrong method