UNPKG

@mayaprotocol/zcash-js

Version:

Zcash JavaScript library for Maya Protocol - Build and sign Zcash transparent transactions with memo support

31 lines (30 loc) 554 B
export type Config = { server: { host: string; user: string; password: string; }; mainnet: boolean; }; export type UTXO = { address: string; txid: string; outputIndex: number; satoshis: number; }; export type OutputPKH = { type: 'pkh'; address: string; amount: number; }; export type OutputMemo = { type: 'op_return'; memo: string; }; export type Output = OutputPKH | OutputMemo; export type Tx = { height: number; inputs: UTXO[]; outputs: Output[]; fee: number; };