Skip to content
docs

ZcashConfig

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

Options for a Zcash wallet manager or account: transports, network and fee limits. Transparent addresses only.

optional antiFeeSniping?: boolean

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

Set nLockTime to the tip height so the transaction cannot be mined into a reorged block (default true).


optional client?: ZcashClient | ZcashClientConfig | ZcashClient | ZcashClientConfig[]

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

One or more transports (config objects or ready ZcashClients). A list fails over in order. Omit for an offline (sign-only) wallet.


optional consensusBranchId?: number

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

Consensus branch id to sign under. Default on mainnet: the one in force at tip + 1 (branchIdForHeight) — set this when a network upgrade activates before the package learns its id. Required on testnet and regtest, whose upgrades activate at other heights.


optional expiryDelta?: number

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

Blocks after the next block (tip + 1) at which an unmined transaction expires (ZIP-203; default 40, the zcashd/Zebra default). 0 = never.


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

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

Injectable fetch (tests, custom agents). Defaults to globalThis.fetch.

(input, init?): Promise<Response>

MDN Reference

URL | RequestInfo

RequestInit

Promise<Response>

(input, init?): Promise<Response>

MDN Reference

string | URL | Request

RequestInit

Promise<Response>


optional maxFee?: number | bigint

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

Hard fee ceiling in zatoshis for any transaction this account signs or broadcasts (default 1 000 000 = 0.01 ZEC).


optional maxInputs?: number

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

Coin-selection input cap (default 200).


optional network?: ZcashNetwork

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


optional retries?: number

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

Extra attempts across the client list after the first failure (default 3).


optional timeoutMs?: number

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

Per-request timeout in ms (default 15000).


optional transactionMaxFee?: number | bigint

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

Max fee (zatoshis) for sendTransaction / signTransaction.


optional transferMaxFee?: number | bigint

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

Max fee (zatoshis) for transfer.