Closed ericjohncarlson closed 3 years ago
So creating and posting a json blob to the pending_transactions endpoint of the form
{
"txn": "<base64>"
}
is not easy enough?
I don't know why a Helium network user needs to be an expert in posting json to API endpoints from the command line to be able to run a pay
or stake
transaction if they want to keep their wallet air-gapped, but if you feel this is a stretch in functionality and not needed, then mark it closed.
The ability for the Helium mobile app to post a txn from an offline wallet generated QR code would be way to go.
I don't know why a Helium network user needs to be an expert in posting json to API endpoints from the command line to be able to run a
pay
orstake
transaction if they want to keep their wallet air-gapped, but if you feel this is a stretch in functionality and not needed, then mark it closed.
I was just asking.. hence the not closing..
The ability for the Helium mobile app to post a txn from an offline wallet generated QR code would be way to go.
With @deasydoesit's additions for the ability for the helium wallet to create transactions offline, this allows a user to create a wallet, stake a validator, transfer a validator and create a payment transaction all while in an air gapped state. This txn then can be posted manually to the API through a variety of methods.
A way to make this air gapped situation more approachable would be to allow a non-air gapped helium wallet binary to post a
txn
that was created from an air gapped wallet.The process would be:
./helium-wallet --format json validators stake --fee 35000 Y3kjkj4kdrjZzRV1udPD1Sdgkjdfkj3kj3kj2bFwNEEKVHzN5GCyN6iw 10000
txn
base64 value from air gapped machine to another machine with internet connectivity./helium-wallet post-transaction 6gGTAQohEGXvQGaz/15SaD143sF1VZ3QrFT3Iri4u14gjeTJHZn1EiERHkLMINj+ys/cl88dxF8G4vfZQoh+p20PrN8/EafJNtwYgKCUpY0dIkBU6hgBtOfMXqATl2DKVIeGh7TehO1hc02XnOphci0O3TwGldeASltawTr53kJqOFJGFxp6bMHJgHRuV3xnWaoMKLiRAg==
This would allow users who are unfamiliar with the API to post transactions.
--format json
in the stake command, use--qr
to create a QR code of thetxn
hash. Then allow the Helium Mobile Application scan that QR code and post the transaction to the Helium API.