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.
Properties
Section titled “Properties”antiFeeSniping?
Section titled “antiFeeSniping?”
optionalantiFeeSniping?: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).
client?
Section titled “client?”
optionalclient?: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.
consensusBranchId?
Section titled “consensusBranchId?”
optionalconsensusBranchId?: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.
expiryDelta?
Section titled “expiryDelta?”
optionalexpiryDelta?: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.
fetch?
Section titled “fetch?”
optionalfetch?: {(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.
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”URL | RequestInfo
RequestInit
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(
input,init?):Promise<Response>
Parameters
Section titled “Parameters”string | URL | Request
RequestInit
Returns
Section titled “Returns”Promise<Response>
maxFee?
Section titled “maxFee?”
optionalmaxFee?: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).
maxInputs?
Section titled “maxInputs?”
optionalmaxInputs?:number
Defined in: wallet-zcash/src/types.ts:88
Coin-selection input cap (default 200).
network?
Section titled “network?”
optionalnetwork?:ZcashNetwork
Defined in: wallet-zcash/src/types.ts:65
retries?
Section titled “retries?”
optionalretries?:number
Defined in: wallet-zcash/src/types.ts:67
Extra attempts across the client list after the first failure (default 3).
timeoutMs?
Section titled “timeoutMs?”
optionaltimeoutMs?:number
Defined in: wallet-zcash/src/types.ts:69
Per-request timeout in ms (default 15000).
transactionMaxFee?
Section titled “transactionMaxFee?”
optionaltransactionMaxFee?:number|bigint
Defined in: wallet-zcash/src/types.ts:73
Max fee (zatoshis) for sendTransaction / signTransaction.
transferMaxFee?
Section titled “transferMaxFee?”
optionaltransferMaxFee?:number|bigint
Defined in: wallet-zcash/src/types.ts:71
Max fee (zatoshis) for transfer.