A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.
1.16k
stars
543
forks
source link
Why there is no private key in sending transaction code in Web3.php? #341
Open
Alireza-Zojaji opened 9 months ago
I want to use Web3.php so that I send contract transaction to Ethereum blockchain.
I use the following code:
It produces this error:
Uncaught RuntimeException: Wrong type of eth_sendTransaction method argument 0.
Now my main question is that where my private key must be provided in the code to sign the sent transaction.