🌌 A better API wallet for ZenCash
npm install
Serve pages to localhost:3000
yarn dev
Code is in SendZen.js
Unlock wallet in first textbox using the secret passphrase.
Select the first address for the dropdown (duplicate address should appear right above it if selected properly) ztpt...yfmh - should have 60 ZEN
Select any of the other addresses in the list below as the recipient
Amount: 5, Fee: 0.000001
cumulative history:
[{"txid":"28f3...2d45","vout":0,"scriptPubKey":"76a9...02b4","satoshis":1000000000,"cumSatoshis":1000000000}]
recipients:
[{"address":"ztfp...fBc7","satoshis":500000000},{"address":"ztpt...yfmh","satoshis":499999900}]
private key:
<redacted>
txObj (pre-sign):
{"locktime":0,"version":1,"ins":[{"output":{"hash":"28f3...2d45","vout":0},"script":"","prevScriptPubKey":"76a9...02b4","sequence":"ffffffff"}],"outs":[{"script":"76a9...02b4","satoshis":500000000},{"script":"76a9...02b4","satoshis":499999900}]}
txObj (post-sign):
{"locktime":0,"version":1,"ins":[{"output":{"hash":"28f3...2d45","vout":0},"script":"4730...8b86","prevScriptPubKey":"76a9...02b4","sequence":"ffffffff"}],"outs":[{"script":"76a9...02b4","satoshis":500000000},{"script":"76a9...02b4","satoshis":499999900}]}
txHexString:
0100...0000