Skip to content
docs

ZcashClient

Defined in: wallet-zcash/src/types.ts:35

Minimal chain-data client every transport implements. Values in zatoshis.

broadcast(rawTx): Promise<string>

Defined in: wallet-zcash/src/types.ts:46

Broadcast raw hex; returns the txid.

string

Promise<string>


close(): Promise<void>

Defined in: wallet-zcash/src/types.ts:37

Promise<void>


connect(): Promise<void>

Defined in: wallet-zcash/src/types.ts:36

Promise<void>


getBalance(address): Promise<{ confirmed: bigint; unconfirmed: bigint; }>

Defined in: wallet-zcash/src/types.ts:38

string

Promise<{ confirmed: bigint; unconfirmed: bigint; }>


getBlockHeight(): Promise<number>

Defined in: wallet-zcash/src/types.ts:48

Current chain tip height (expiry height, anti-fee-sniping lock time, consensus branch selection).

Promise<number>


getOutput(txid, vout): Promise<SpentOutput | undefined>

Defined in: wallet-zcash/src/types.ts:43

Value + scriptPubKey of one output of an existing transaction (what signing a spend of it needs).

string

number

Promise<SpentOutput | undefined>


getTransaction(txid): Promise<string>

Defined in: wallet-zcash/src/types.ts:41

Raw transaction hex (any version — only used to read prevouts and for receipts).

string

Promise<string>


getTransactionInfo(txid): Promise<ZcashTxInfo | undefined>

Defined in: wallet-zcash/src/types.ts:44

string

Promise<ZcashTxInfo | undefined>


listUnspent(address): Promise<Utxo[]>

Defined in: wallet-zcash/src/types.ts:39

string

Promise<Utxo[]>