Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

crypto-address-parser

shivapendem26ISC0.1.9

crypto-address-parser for crypto address parsing with multi chains

crypto-address-parser, crypto-address, crypto address, crypto address parser, shivapendem, generate Crypto Address Url, generate Crypto Address, aeternity, algorand, aptos, arbitrum, aurora, avalanche-c, avaxc, base, binance, binance smart chain, bitcoin, bitcoin cash, bch, bnb, bsc, cardano, cosmos, cronos, cro, crypto.org, dash, decred, doge, eos, ethereum, ethereum classic, etc, ever, fantom, filecoin, fio, ftm, gnosis, gochain, groestlcoin, harmony, hedera, icp, icon, internet computer, iotex, kusama, kcc, linea, litecoin, mantle, matic, multiversx, nano, near, neo, nebulas, nervos, oasis network, ontology, op mainnet, opbnb, opbnb mainnet, polygon, pol, polkadot, qtum, ripple, ronin, rune, solana, stellar, sui, tezos, terra, terra classic, the open network, theta, thorchain, ton, tron, trx, vechain, vet, waves, xlm, xrp, zcash, zec, zilliqa

readme

Description

npm package for crypto address parser.

Installation

`npm i crypto-address-parser --save`

let cpr = require('crypto-address-parser');

How to use

Let's see about js code:

    let cpr = require('crypto-address-parser');

    let _addressinfo=cpr.parseaddress("ethereum:0xe8312ec868303fc3f14DeA8C63A1013608038801@0x39?amount=0.003985&contract=0x");

    console.log(_addressinfo); // returns as follows
    {
      params: { amount: '0.003985', contract: '0x' },
      address: '0xe8312ec868303fc3f14DeA8C63A1013608038801',
      chain: 'ethereum',
      network: '0x39'
    }

    const ethereumAddress = '0x000000000000000000000000000000000000dEaD';  
    const ethereumUrl = cpr.generateCryptoAddressUrl('Ethereum', ethereumAddress, 0.1,"0x",1);
    console.log(ethereumUrl);
    // ethereum:0x000000000000000000000000000000000000dEaD@0x1?contract=0x&refid=1&amount=0.1


Support

Happy to add more, and need any updates, do get in touch on my telegram over @chigovera