Closed D4rk4 closed 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"}
{"jsonrpc":"2.0","result":"0x0000000000000000000000000000000000000000000000000000000000000000","id":"eth_call_1538473672"}
Wrong method
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"}