Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adrianmcli/zenith

🌌 A better API wallet for ZenCash
https://github.com/adrianmcli/zenith

cryptocurrency wallet zencash

Last synced: 18 days ago
JSON representation

🌌 A better API wallet for ZenCash

Awesome Lists containing this project

README

        

Zenith




Night Sky


A better API wallet for ZenCash


zen cash
API wallet
done right

---

![screenshot](https://user-images.githubusercontent.com/943555/34443683-c48ee636-ec96-11e7-911f-570993a300bc.png)

## Installation

```bash
npm install
```

## Start

Serve pages to localhost:3000
```bash
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

```
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:

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
```