WalletManagerZcash
Defined in: wallet-zcash/src/manager.ts:20
One seed → Zcash transparent accounts at m/44’/133’/0’/0/i (BIP-44, the path Zashi, YWallet, Ledger and Trezor use for the transparent receiver) — t1… on mainnet, tm… on testnet. Paths may be relative to the purpose/coin prefix (“0’/0/i”) or given in full.
Built with a secp256k1 Signer instead of a seed, the manager wraps it:
a derivable SeedSigner yields getAccount(i) children below its path; a
leaf or external signer is getAccount(0).
Extends
Section titled “Extends”WalletManager<WalletAccountZcash,ZcashConfig>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WalletManagerZcash(
seedOrSigner,config?):WalletManagerZcash
Defined in: wallet-zcash/src/manager.ts:21
Parameters
Section titled “Parameters”seedOrSigner
Section titled “seedOrSigner”string | Uint8Array<ArrayBufferLike> | Signer
config?
Section titled “config?”ZcashConfig = {}
Returns
Section titled “Returns”WalletManagerZcash
Overrides
Section titled “Overrides”WalletManager<WalletAccountZcash, ZcashConfig>.constructor
Properties
Section titled “Properties”_accounts
Section titled “_accounts”
protectedreadonly_accounts:Map<string,WalletAccountZcash>
Defined in: core/dist/index.d.ts:271
Inherited from
Section titled “Inherited from”WalletManager._accounts
_config
Section titled “_config”
protectedreadonly_config:ZcashConfig
Defined in: core/dist/index.d.ts:270
Inherited from
Section titled “Inherited from”WalletManager._config
_signer
Section titled “_signer”
protectedreadonly_signer:Signer|undefined
Defined in: core/dist/index.d.ts:269
Inherited from
Section titled “Inherited from”WalletManager._signer
Accessors
Section titled “Accessors”basePath
Section titled “basePath”Get Signature
Section titled “Get Signature”get basePath():
string
Defined in: wallet-zcash/src/manager.ts:26
m/44'/133' on mainnet (coin type 1 on testnet); account i is at basePath/0'/0/i.
Returns
Section titled “Returns”string
Methods
Section titled “Methods”cachedAccount()
Section titled “cachedAccount()”
protectedcachedAccount(key,create):Promise<WalletAccountZcash>
Defined in: core/dist/index.d.ts:295
The account cached under key, built by create at most once: concurrent calls share one
build. Throws once the manager is disposed; an account whose build finishes after dispose()
is disposed itself and the call throws, so no live signing account outlives the manager.
Parameters
Section titled “Parameters”string
create
Section titled “create”() => WalletAccountZcash | Promise<WalletAccountZcash>
Returns
Section titled “Returns”Promise<WalletAccountZcash>
Inherited from
Section titled “Inherited from”WalletManager.cachedAccount
dispose()
Section titled “dispose()”dispose():
void
Defined in: core/dist/index.d.ts:302
Dispose every derived account and zeroize the seed; subclasses zeroize their own extras first, then call super.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WalletManager.dispose
externalSigner()
Section titled “externalSigner()”
protectedexternalSigner():Signer|undefined
Defined in: core/dist/index.d.ts:281
The Signer this manager was built with, if any (no mnemonic then). Chain managers decide how to turn it into accounts.
Returns
Section titled “Returns”Signer | undefined
Inherited from
Section titled “Inherited from”WalletManager.externalSigner
getAccount()
Section titled “getAccount()”getAccount(
index?):Promise<WalletAccountZcash>
Defined in: wallet-zcash/src/manager.ts:30
Account index on the chain’s standard path. Cached per index.
Parameters
Section titled “Parameters”index?
Section titled “index?”number = 0
Returns
Section titled “Returns”Promise<WalletAccountZcash>
Overrides
Section titled “Overrides”WalletManager.getAccount
getAccountByPath()
Section titled “getAccountByPath()”getAccountByPath(
path):Promise<WalletAccountZcash>
Defined in: wallet-zcash/src/manager.ts:34
Account at an explicit path. Cached per path.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<WalletAccountZcash>
Overrides
Section titled “Overrides”WalletManager.getAccountByPath
getFeeRates()
Section titled “getFeeRates()”getFeeRates():
Promise<FeeRates>
Defined in: wallet-zcash/src/manager.ts:66
ZIP-317 has no fee market: every tier is the 5000-zatoshi marginal fee per logical action.
Returns
Section titled “Returns”Promise<FeeRates>
Overrides
Section titled “Overrides”WalletManager.getFeeRates
getReadOnlyAccount()
Section titled “getReadOnlyAccount()”getReadOnlyAccount(
address):WalletAccountReadOnlyZcash
Defined in: wallet-zcash/src/manager.ts:61
A read-only account for any transparent address, with this manager’s config.
Parameters
Section titled “Parameters”address
Section titled “address”string
Returns
Section titled “Returns”requireSigner()
Section titled “requireSigner()”
protectedrequireSigner(curve):Signer
Defined in: core/dist/index.d.ts:283
The external signer, asserted to sign on curve; throws when the manager holds a mnemonic instead.
Parameters
Section titled “Parameters”SignerCurve
Returns
Section titled “Returns”Signer
Inherited from
Section titled “Inherited from”WalletManager.requireSigner
seedBytes()
Section titled “seedBytes()”
protectedseedBytes():Uint8Array
Defined in: core/dist/index.d.ts:275
The 64-byte seed this manager derives from; throws for a Signer-built or disposed manager.
Returns
Section titled “Returns”Uint8Array
Inherited from
Section titled “Inherited from”WalletManager.seedBytes
signerAccount()
Section titled “signerAccount()”
protectedsignerAccount(key,signer,relativePath,build):Promise<WalletAccountZcash>
Defined in: core/dist/index.d.ts:300
cachedAccount over an injected signer: the signer itself (relativePath undefined) or
its child along relativePath. A child that never becomes an account is disposed.
Parameters
Section titled “Parameters”string
signer
Section titled “signer”Signer
relativePath
Section titled “relativePath”string | undefined
(leaf, publicKey) => WalletAccountZcash
Returns
Section titled “Returns”Promise<WalletAccountZcash>
Inherited from
Section titled “Inherited from”WalletManager.signerAccount
getRandomSeedPhrase()
Section titled “getRandomSeedPhrase()”
staticgetRandomSeedPhrase(words?):string
Defined in: core/dist/index.d.ts:279
Same as the core getRandomSeedPhrase.
Parameters
Section titled “Parameters”words?
Section titled “words?”24 | 12
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”WalletManager.getRandomSeedPhrase
isValidSeedPhrase()
Section titled “isValidSeedPhrase()”
staticisValidSeedPhrase(seed):boolean
Defined in: core/dist/index.d.ts:277
Same as the core isValidSeedPhrase.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”WalletManager.isValidSeedPhrase