UNPKG

@xchainjs/xchain-zcash

Version:

Custom Zcash client and utilities used by XChainJS clients

23 lines (22 loc) 990 B
import { Network } from '@xchainjs/xchain-client'; import { Address } from '@xchainjs/xchain-util'; /** * Function to get the Zcash prefix depending on network * * @param {Network} network - The network type (Mainnet, Testnet, or Stagenet). * @returns {utxolib.Network} The Zcash network. */ export declare const zecNetworkPrefix: (network: Network) => number[]; /** * Function to validate a Zcash address. * @param {Address} address - The Zcash address to validate. * @param {Network} network - The network type (Mainnet, Testnet, or Stagenet). * @returns {boolean} `true` if the address is valid, `false` otherwise. */ export declare const validateAddress: (address: Address, network: Network) => boolean; /** * Function to get the address prefix based on the network. * @param {Network} network - The network type (Mainnet, Testnet, or Stagenet). * @returns {string} The address prefix based on the network. */ export declare const getPrefix: (network: Network) => string;