Open kamran-jabbar opened 5 years ago
@kamran-jabbar are you able to create account in php using $web3->personal ?
@phpemobxdev No, I did it using NodeJS API endpoint and just send cURL request from PHP to NodeJS endpoint to get the public key and private key.
@kamran-jabbar can you please share your code ?
@phpemobxdev
var api_response = web3js.eth.accounts.create(password);
Hi, I'm trying to figure this out myself. How do I either generate a locally kept keypair or use a keypair I have stored locally (not on the provider node)?
@beardhero I have no idea about that, I have used infura.io
as provider.
@kamran-jabbar I hope will help you. https://github.com/kornrunner/php-ethereum-address
@tuandat77 yeah may be in future but for now I am not working on that part, anyhow thank you so much :)
I am using this to get public key: https://github.com/sc0Vu/web3.php#assign-value-to-outside-scopefrom-callback-scope-to-outside-scope I am in need of to get the public and private key using PHP web3 like this: https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#create
How can I do that?