We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello.
Could you write an example of creating a transaction, signing it, and obtaining a transaction hash that can be sent further - having:
So I don't know nothing about prev tx and so on. I have only private key in diff formats which I get from:
private function generateWallet() { $oPrivateKeyFactory = new PrivateKeyFactory(); $oRandom = new Random(); $this->sPrivateKey = $oPrivateKeyFactory->generateCompressed($oRandom); $this->sPrivateKeyWif = $this->sPrivateKey->toWif(); $this->sPublicKey = $this->sPrivateKey->getPublicKey(); $sPublicKeyHash = $this->sPublicKey->getPubKeyHash(); $oAddress = new PayToPubKeyHashAddress($sPublicKeyHash); $this->sAddress = $oAddress->getAddress($this->oNetwork); $oSegwitAddress = new SegwitAddress(WitnessProgram::v0($sPublicKeyHash)); $this->sSegwitAddress = $oSegwitAddress->getAddress(); }
I read these links and many others, but they didn't help me:
I need a simple solution: received the keys, the address, created a transaction, signed, sent (I know that I a not empty balance).
Thanks.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello.
Could you write an example of creating a transaction, signing it, and obtaining a transaction hash that can be sent further - having:
So I don't know nothing about prev tx and so on. I have only private key in diff formats which I get from:
I read these links and many others, but they didn't help me:
I need a simple solution: received the keys, the address, created a transaction, signed, sent (I know that I a not empty balance).
Thanks.
The text was updated successfully, but these errors were encountered: