@hyperbitjs/chains
v1.7.0
Published
![Hyperbit Chains Banner](https://github.com/hyperbit-dev/chains/raw/master/media/repo-banner.png)
Downloads
105
Readme
Hyperbit - Chains
JavaScript dictionary of blockchain specifications inspired from coinkey with additional fields and values.
Installation
npm install @hyperbitjs/chains
Usage
import { chains } from '@hyperbitjs/chains';
const { mainnet, testnet } = chains.btc;
import { btc } from '@hyperbitjs/chains';
const { mainnet, testnet } = btc;
Example Output:
btc: {
mainnet: {
name: 'Bitcoin',
decimalPlaces: 1e8,
unit: 'BTC',
messagePrefix: '...,
messagePrefixAlts: [...],
hashGenesisBlock: '...',
port: 8333,
portRpc: 8332,
protocol: {...},
bech32: '...',
seedsDns: [...],
versions: {...}`
}
}
Usage with BitcoinJS and Bitcore
You can pass in your desired coin to make it compatible with bitcoinjs-lib or bitcore by making use of to additional utility functions.
import { btc, toBitcoinJS, toBitcore } from '@hyperbitjs/chains';
const { mainnet, testnet } = btc;
const btcBitcoinJSMain = toBitcoinJS(mainnet, 'mainnet');
const btcBitcoinJSTest = toBitcoinJS(testnet, 'testnet');
const btcBitcoreMain = toBitcore(mainnet, 'mainnet');
const btcBitcoreTest = toBitcore(testnet, 'testnet');
Contributing
If you're interested in contributing, please read the contributing docs before submitting a pull request.
Authors
License
MIT License
Supported Coins
| Symbol | Coin | Supported | | ---------- | ----------------------------------------------------------------------------------------- | ------------- | | BTC | Bitcoin | Yes | | LTC | Litecoin | Yes | | DOGE | Dogecoin | Yes | | RDD | Reddcoin | Yes | | DASH | Dash | Yes | | PGN | Pigeon | Yes | | PPC | Peercoin | Yes | | NMC | Namecoin | Yes | | FTC | Feathercoin | Yes | | XCP | Counterparty | | | BLK | Blackcoin | Yes | | NSR | NuShares | | | NBT | NuBits | Yes | | MZC | Mazacoin | | | VIA | Viacoin | Yes | | XCH | ClearingHouse | | | RBY | Rubycoin | | | GRS | Groestlcoin | Yes | | DGC | Digitalcoin | | | CCN | Cannacoin | | | DGB | DigiByte | Yes | | | Open Assets | | | MONA | Monacoin | Yes | | CLAM | Clams | | | XPM | Primecoin | | | NEOS | Neoscoin | | | JBS | Jumbucks | | | ZRC | ziftrCOIN | | | VTC | Vertcoin | Yes | | NXT | NXT | | | BURST | Burst | | | MUE | MonetaryUnit | | | ZOOM | Zoom | | | VASH | Virtual Cash | | | CDN | Canada eCoin | | | SDC | ShadowCash | | | PKB | ParkByte | | | PND | Pandacoin | | | START | StartCOIN | | | MOIN | MOIN | | | EXP | Expanse | | | EMC2 | Einsteinium | | | DCR | Decred | Yes | | XEM | NEM | | | PART | Particl | | | ARG | Argentum (dead) | | | | Libertas | | | | Posw coin | | | SHR | Shreeji | | | GCR | Global Currency Reserve (GCRcoin) | | | NVC | Novacoin | | | AC | Asiacoin | | | BTCD | BitcoinDark | | | DOPE | Dopecoin | | | TPC | Templecoin | | | AIB | AIB | | | EDRC | EDRCoin | | | SYS | Syscoin | | | SLR | Solarcoin | | | SMLY | Smileycoin | | | ETH | Ether | | | ETC | Ether Classic | | | PSB | Pesobit | | | LDCN | Landcoin (dead) | | | | Open Chain | | | XBC | Bitcoinplus | | | IOP | Internet of People | | | NXS | Nexus | | | INSN | InsaneCoin | | | OK | OKCash | | | BRIT | BritCoin | | | CMP | Compcoin | | | CRW | Crown | | | BELA | BelaCoin | | | ICX | ICON | | | FJC | FujiCoin | | | MIX | MIX | | | XVG | Verge Currency | | | EFL | Electronic Gulden | | | CLUB | ClubCoin | | | RICHX | RichCoin | | | POT | Potcoin | | | QRK | Quarkcoin | | | TRC | Terracoin | | | GRC | Gridcoin | | | AUR | Auroracoin | | | IXC | IXCoin | | | NLG | Gulden | | | BITB | BitBean | | | BTA | Bata | | | XMY | Myriadcoin | | | BSD | BitSend | | | UNO | Unobtanium | | | MTR | MasterTrader | | | GB | GoldBlocks | | | SHM | Saham | | | CRX | Chronos | | | BIQ | Ubiquoin | | | EVO | Evotion | | | STO | SaveTheOcean | | | BIGUP | BigUp | | | GAME | GameCredits | | | DLC | Dollarcoins | | | ZYD | Zayedcoin | | | DBIC | Dubaicoin | | | STRAT | Stratis | | | SH | Shilling | | | MARS | MarsCoin | | | UBQ | Ubiq | | | PTC | Pesetacoin | | | NRO | Neurocoin | | | ARK | ARK | | | USC | UltimateSecureCashMain | | | THC | Hempcoin | | | LINX | Linx | | | ECN | Ecoin | | | DNR | Denarius | Yes | | PINK | Pinkcoin | | | ATOM | Atom | | | PIVX | Pivx | | | FLASH | Flashcoin | | | ZEN | Zencash | | | PUT | Putincoin | | | ZNY | BitZeny | | | UNIFY | Unify | | | XST | StealthCoin | | | BRK | Breakout Coin | | | VC | Vcash | | | XMR | Monero | | | VOX | Voxels | | | NAV | Navcoin | Yes | | FCT | Factom Factoids | | | EC | Factom Entry Credits | | | ZEC | Zcash | | | LSK | Lisk | | | STEEM | Steem | | | XZC | ZCoin | | | RBTC | RSK | | | | Giftblock | | | RPT | RealPointCoin | | | LBC | LBRY Credits | | | KMD | Komodo | | | BSQ | bisq Token | | | RIC | Riecoin | | | XRP | Ripple | | | BCH | Bitcoin Cash | Yes | | NEBL | Neblio | | | ZCL | ZClassic | | | XLM | Stellar Lumens | | | NLC2 | NoLimitCoin2 | | | WHL | WhaleCoin | | | ERC | EuropeCoin | | | DMD | Diamond | | | BTM | Bytom | | | BIO | Biocoin | | | XWCC | Whitecoin Classic | | | BTG | Bitcoin Gold | | | BTC2X | Bitcoin 2x | | | SSN | SuperSkynet | | | TOA | TOACoin | | | BTX | Bitcore | | | ACC | Adcoin | | | BCO | Bridgecoin | | | ELLA | Ellaism | | | PIRL | Pirl | | | XNO | Nano | | | VIVO | Vivo | | | FRST | Firstcoin | | | HNC | Helleniccoin | | | BUZZ | BUZZ | | | MBRS | Ember | | | HC | Hcash | | | HTML | HTMLCOIN | | | ODN | Obsidian | | | ONX | OnixCoin | | | RVN | Ravencoin | Yes | | EVR | Evrmore | Yes | | GBX | GoByte | | | BTCZ | BitcoinZ | | | POA | Poa | | | NYC | NewYorkCoin | | | MXT | MarteXcoin | | | WC | Wincoin | | | MNX | Minexcoin | | | BTCP | Bitcoin Private | | | MUSIC | Musicoin | | | BCA | Bitcoin Atom | | | CRAVE | Crave | | | STAK | STRAKS | | | WBTC | World Bitcoin | | | LCH | LiteCash | | | EXCL | ExclusiveCoin | | | | Lynx | | | LCC | LitecoinCash | | | XFE | Feirm | | | EOS | EOS | | | TRX | Tron | | | KOBO | Kobocoin | | | HUSH | HUSH | | | BANANO | Bananos | | | ETF | ETF | | | OMNI | Omni | | | BIFI | BitcoinFile | | | UFO | Uniform Fiscal Object | | | CNMC | Cryptonodes | | | BCN | Bytecoin | | | RIN | Ringo | | | ATP | Alaya | | | EVT | everiToken | | | ATN | ATN | | | BIS | Bismuth | | | NEET | NEETCOIN | | | BOPO | BopoChain | | | OOT | Utrum | | | ALIAS | Alias | | | MONK | Monkey Project | | | BOXY | BoxyCoin | | | FLO | Flo | | | MEC | Megacoin | | | BTDX | BitCloud | | | XAX | Artax | | | ANON | ANON | | | LTZ | LitecoinZ | | | BITG | Bitcoin Green | | | ICP | Internet Computer (DFINITY) | | | SMART | Smartcash | | | XUEZ | XUEZ | | | HLM | Helium | | | WEB | Webchain | | | ACM | Actinium | | | NOS | NOS Stable Coins | | | BITC | BitCash | | | HTH | Help The Homeless Coin | | | TZC | Trezarcoin | | | VAR | Varda | | | IOV | IOV | | | FIO | FIO | | | BSV | BitcoinSV | | | DXN | DEXON | | | QRL | Quantum Resistant Ledger | | | PCX | ChainX | | | LOKI | Loki | | | | Imagewallet | | | NIM | Nimiq | | | SOV | Sovereign Coin | | | JCT | Jibital Coin | | | SLP | Simple Ledger Protocol | | | EWT | Energy Web | | | UC | Ulord | | | EXOS | EXOS | | | ECA | Electra | | | SOOM | Soom | | | XRD | Redstone | | | FREE | FreeCoin | | | NPW | NewPowerCoin | | | BST | BlockStamp | | | | SmartHoldem | | | NANO | Bitcoin Nano | | | BTCC | Bitcoin Core | | | | Zen Protocol | | | ZEST | Zest | | | ABT | ArcBlock | | | PION | Pion | | | DT3 | DreamTeam3 | | | ZBUX | Zbux | | | KPL | Kepler | | | TPAY | TokenPay | | | ZILLA | ChainZilla | | | ANK | Anker | | | BCC | BCChain | | | HPB | HPB | | | ONE | ONE | | | SBC | SBC | | | IPC | IPChain | | | DMTC | Dominantchain | | | OGC | Onegram | | | SHIT | Shitcoin | | | ANDES | Andescoin | | | AREPA | Arepacoin | | | BOLI | Bolivarcoin | | | RIL | Rilcoin | | | HTR | Hathor Network | | | FCTID | Factom ID | | | BRAVO | BRAVO | | | ALGO | Algorand | | | BZX | Bitcoinzero | | | GXX | GravityCoin | | | HEAT | HEAT | | | XDN | Digital Note | Yes | | FSN | FUSION | | | CPC | Capricoin | | | BOLD | Bold | | | IOST | IOST | | | TKEY | Tkeycoin | | | USE | Usechain | | | BCZ | BitcoinCZ | | | IOC | Iocoin | | | ASF | Asofe | | | MASS | MASS | | | FAIR | FairCoin | | | NUKO | Nekonium | | | GNX | Genaro Network | | | DIVI | Divi Project | | | CMT | Community | | | EUNO | EUNO | | | IOTX | IoTeX | | | ONION | DeepOnion | | | 8BIT | 8Bit | | | ATC | AToken Coin | | | BTS | Bitshares | | | CKB | Nervos CKB | | | UGAS | Ultrain | | | ADS | Adshares | | | ARA | Aura | | | ZIL | Zilliqa | | | MOAC | MOAC | | | SWTC | SWTC | | | VNSC | vnscoin | | | PLUG | Pl^g | | | MAN | Matrix AI Network | | | ECC | ECCoin | | | RPD | Rapids | | | RAP | Rapture | | | GARD | Hashgard | | | ZER | Zero | | | EBST | eBoost | | | SHARD | Shard | | | MRX | Metrix Coin | | | CMM | Commercium | | | BLOCK | Blocknet | | | AUDAX | AUDAX | | | LUNA | Terra | | | ZPM | zPrime | | | KUVA | Kuva Utility Note | | | MEM | MemCoin | | | CS | Credits | | | SWIFT | SwiftCash | | | FIX | FIX | | | CPC | CPChain | | | VGO | VirtualGoodsToken | | | DVT | DeVault | | | N8V | N8VCoin | | | MTNS | OmotenashiCoin | | | BLAST | BLAST | | | DCT | DECENT | | | AUX | Auxilium | | | USDP | USDP | | | HTDF | HTDF | | | YEC | Ycash | | | QLC | QLC Chain | | | TEA | Icetea Blockchain | | | ARW | ArrowChain | | | MDM | Medium | | | CYB | Cybex | | | LTO | LTO Network | | | DOT | Polkadot | | | AEON | Aeon | | | RES | Resistance | | | AYA | Aryacoin | | | DAPS | Dapscoin | | | CSC | CasinoCoin | | | VSYS | V Systems | | | NOLLAR | Nollar | | | XNOS | NOS | | | CPU | CPUchain | | | LAMB | Lambda Storage Chain | | | VCT | ValueCyber | | | CZR | Canonchain | | | ABBC | ABBC | | | HET | HET | | | XAS | Asch | | | VDL | Vidulum | | | MED | MediBloc | | | ZVC | ZVChain | | | VESTX | Vestx | | | DBT | DarkBit | | | SEOS | SuperEOS | | | MXW | Maxonrow | | | ZNZ | ZENZO | | | XCX | XChain | | | SOX | SonicX | | | NYZO | Nyzo | | | ULC | ULCoin | | | RYO | Ryo Currency | | | KAL | Kaleidochain | | | XSN | Stakenet | | | DOGEC | DogeCash | | | BMV | Bitcoin Matteo's Vision | | | QBC | Quebecoin | | | IMG | ImageCoin | | | QOS | QOS | | | PKT | PKT | | | LHD | LitecoinHD | | | CENNZ | CENNZnet | | | HSN | Hyper Speed Network | | | CRO | Crypto Chain | | | UMBRU | Umbru | | | EVER | Everscale | | | NEAR | NEAR Protocol | | | XPC | XPChain | | | ZOC | 01coin | | | NIX | NIX | | | UC | Utopiacoin | | | GALI | Galilel | | | OLT | Oneledger | | | XBI | XBI | | | DONU | DONU | | | EARTHS | Earths | | | HDD | HDDCash | | | SUGAR | Sugarchain | | | AILE | AileCoin | | | TENT | TENT | | | TAN | Tangerine Network | | | AIN | AIN | | | MSR | Masari | | | SUMO | Sumokoin | | | ETN | Electroneum | | | BYTZ | BYTZ | | | WOW | Wownero | | | XTNC | XtendCash | | | LTHN | Lethean | | | NODE | NodeHost | | | AGM | Argoneum | | | CCX | Conceal Network | | | TNET | Title Network | | | TELOS | TelosCoin | | | AION | Aion | | | BC | Bitcoin Confidential | | | KTV | KmushiCoin | | | ZCR | ZCore | | | ERG | Ergo | | | PESO | Criptopeso | | | BTC2 | Bitcoin 2 | | | XRPHD | XRPHD | | | WE | WE Coin | | | KSM | Kusama | | | PCN | Peepcoin | | | NCH | NetCloth | | | ICU | CHIPO | | | LN | LINK | | | DTP | DeVault Token Protocol | | | BTCR | Bitcoin Royale | | | AERGO | AERGO | | | XTH | Dothereum | | | LV | Lava | | | PHR | Phore | | | VITAE | Vitae | | | COCOS | Cocos-BCX | | | DIN | Dinero | | | SPL | Simplicity | | | YCE | MYCE | | | XLR | Solaris | | | KTS | Klimatas | | | DGLD | DGLD | | | XNS | Insolar | | | EM | EMPOW | | | SHN | ShineBlocks | | | SEELE | Seele | | | AE | æternity | | | ODX | ObsidianX | | | KAVA | Kava | | | GLEEC | GLEEC | | | FIL | Filecoin | | | RUTA | Rutanio | | | CSDT | CSDT | | | ETI | EtherInc | | | ZSLP | Zclassic Simple Ledger Protocol | | | ERE | EtherCore | | | DX | DxChain Token | | | CPS | Capricoin+ | | | BTH | Bithereum | | | MESG | MESG | | | FIMK | FIMK | | | AR | Arweave | | | OGO | Origo | | | ROSE | Oasis Network | | | BARE | BARE Network | | | GLEEC | GleecBTC | | | CLR | Color Coin | | | RNG | Ring | | | OLO | Tool Global | | | PEXA | Pexa | | | MOON | Mooncoin | | | OCEAN | Ocean Protocol | | | BNT | Bluzelle Native | | | AMO | AMO Blockchain | | | FCH | FreeCash | | | LAT | PlatON | | | COIN | Bitcoin Bank | | | VEO | Amoveo | | | CCA | Counos Coin | | | GFN | Graphene | | | BIP | Minter Network | | | KPG | Kunpeng Network | | | FIN | FINL Chain | | | BAND | Band | | | DROP | Dropil | | | BHT | Bluehelix Chain | | | LYRA | Scrypta | | | CS | Credits | | | RUPX | Rupaya | | | THETA | Theta | | | SOL | Solana | | | THT | ThoughtAI | | | CFX | Conflux | | | KUMA | Kumacoin | | | HASH | Provenance | | | CSPR | Casper | | | EARTH | EARTH | | | EGLD | MultiversX | | | CHI | Xaya | | | KOTO | Koto