项目作者: adrianmcli

项目描述 :
🌌 A better API wallet for ZenCash
高级语言: JavaScript
项目地址: git://github.com/adrianmcli/zenith.git
创建时间: 2017-11-22T22:01:19Z
项目社区:https://github.com/adrianmcli/zenith

开源协议:

下载


Zenith



Night Sky


A better API wallet for ZenCash


zen cash
API wallet
done right


screenshot

Installation

  1. npm install

Start

Serve pages to localhost:3000

  1. yarn dev

Code is in SendZen.js

Reproduction steps

  1. Unlock wallet in first textbox using the secret passphrase.
  2. Select the first address for the dropdown (duplicate address should appear right above it if selected properly)
    ztpt…yfmh - should have 60 ZEN

  3. Select any of the other addresses in the list below as the recipient

  4. Amount: 5, Fee: 0.000001

Variable dump from this flow

  1. cumulative history:
  2. [{"txid":"28f3...2d45","vout":0,"scriptPubKey":"76a9...02b4","satoshis":1000000000,"cumSatoshis":1000000000}]
  3. recipients:
  4. [{"address":"ztfp...fBc7","satoshis":500000000},{"address":"ztpt...yfmh","satoshis":499999900}]
  5. private key:
  6. <redacted>
  7. txObj (pre-sign):
  8. {"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}]}
  9. txObj (post-sign):
  10. {"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}]}
  11. txHexString:
  12. 0100...0000