Closed JellyBool closed 6 years ago
Not sure if it works with ETC, I was doing it for ETH.
If you want to send a transaction you should write something like:
$this->client->personal()->unlockAccount($youradrress, $yourpassword, 15);
$transaction = new \EthereumPHP\Types\Transaction(
$youraddress,
$otheraddress,
null,
null,
new Wei(1),
$amountToSend
);
$transactionHash = $this->client->eth()->sendTransaction($transaction);
I hope it helps!
Hi, can I send a transaction between to accounts using this package?
btw, does it support ETC ?