chaingate
Version:
Multi-chain cryptocurrency SDK for TypeScript — unified API for Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Polygon, Arbitrum, and any EVM-compatible chain. Create wallets, query balances, send transactions, and manage tokens and NFTs across UTXO
17 lines (16 loc) • 671 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.supports = supports;
const SigningWallet_1 = require("./Wallet/SigningWallet/SigningWallet");
const HDWallet_1 = require("./Wallet/SigningWallet/HDWallet/HDWallet");
const ViewOnlyWallet_1 = require("./Wallet/ViewOnlyWallet/ViewOnlyWallet");
function supports(wallet, feature) {
switch (feature) {
case 'hdwallet':
return wallet instanceof HDWallet_1.HDWallet;
case 'signingwallet':
return wallet instanceof SigningWallet_1.SigningWallet;
case 'viewonly':
return wallet instanceof ViewOnlyWallet_1.ViewOnlyWallet;
}
}