Skip to content
docs

ZcashBlockbookClient

Defined in: wallet-zcash/src/blockbook.ts:24

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

new ZcashBlockbookClient(config, fetchFn?, timeoutMs?): ZcashBlockbookClient

Defined in: wallet-zcash/src/blockbook.ts:30

Record<string, string>

string

{(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

number = DEFAULT_TIMEOUT_MS

ZcashBlockbookClient

broadcast(rawTx): Promise<string>

Defined in: wallet-zcash/src/blockbook.ts:99

Broadcast raw hex; returns the txid.

string

Promise<string>

ZcashClient.broadcast


close(): Promise<void>

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

Promise<void>

ZcashClient.close


connect(): Promise<void>

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

Promise<void>

ZcashClient.connect


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

Defined in: wallet-zcash/src/blockbook.ts:55

string

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

ZcashClient.getBalance


getBlockHeight(): Promise<number>

Defined in: wallet-zcash/src/blockbook.ts:106

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

Promise<number>

ZcashClient.getBlockHeight


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

Defined in: wallet-zcash/src/blockbook.ts:83

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

string

number

Promise<SpentOutput | undefined>

ZcashClient.getOutput


getTransaction(txid): Promise<string>

Defined in: wallet-zcash/src/blockbook.ts:77

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

string

Promise<string>

ZcashClient.getTransaction


getTransactionDetails(txid): Promise<BlockbookTxDetails | undefined>

Defined in: wallet-zcash/src/blockbook.ts:70

string

Promise<BlockbookTxDetails | undefined>


getTransactionInfo(txid): Promise<ZcashTxInfo | undefined>

Defined in: wallet-zcash/src/blockbook.ts:90

string

Promise<ZcashTxInfo | undefined>

ZcashClient.getTransactionInfo


listUnspent(address): Promise<Utxo[]>

Defined in: wallet-zcash/src/blockbook.ts:60

string

Promise<Utxo[]>

ZcashClient.listUnspent