Needle-Pinpointing Machine

    This package has been deprecated

    Author message:

    this package has been deprecated

    depay-blockchains

    1.0.1 • Public • Published

    Quickstart

    yarn add depay-blockchains
    

    or

    npm install --save depay-blockchains
    
    import { Blockchain } from 'depay-blockchains'
    
    Blockchain.all
    // [
    //   { name: 'ethereum', id: '0x01', label: 'Ethereum', logo: '...' },
    //   { name: 'bsc', id: '0x38', label: 'Binance Smart Chain', logo: '...' },
    //   ...
    // ]
    
    Blockchain.findById('0x01')
    // { name: 'ethereum', id: '0x01', label: 'Ethereum', logo: '...' }
    
    Blockchain.findByName('ethereum')
    // { name: 'ethereum', id: '0x01', label: 'Ethereum', logo: '...' }

    Support

    This libraries supports the following blockchains:

    Data Structure

    Blockchain data is provided in the following structure:

    {
      name: String,
      id: String,
      label: String,
      logo: String (base64 encoded PNG)
    }
    

    Functionalities

    all: Retreive all information for all blockchains

    import { Blockchain } from 'depay-blockchains'
    
    Blockchain.all
    // [
    //   { name: 'ethereum', id: '0x01', label: 'Ethereum', logo: '...' },
    //   { name: 'bsc', id: '0x38', label: 'Binance Smart Chain', logo: '...' },
    //   ...
    // ]

    findById: Get blockchain by blockchain id

    import { Blockchain } from 'depay-blockchains'
    
    Blockchain.findById('0x01')
    // { name: 'ethereum', id: '0x01', label: 'Ethereum', logo: '...' }
    
    Blockchain.findById('0x38')
    // { name: 'bsc', id: '0x38', label: 'Binance Smart Chain', logo: '...' }

    findByName: Get blockchain by blockchain name

    import { Blockchain } from 'depay-blockchains'
    
    Blockchain.findByName('ethereum')
    // { name: 'ethereum', id: '0x01', label: 'Ethereum', logo: '...' }
    
    Blockchain.findByName('bsc')
    // { name: 'bsc', id: '0x38', label: 'Binance Smart Chain', logo: '...' }

    Development

    Get started

    yarn install
    yarn start
    

    Release

    npm publish
    

    Keywords

    Install

    npm i depay-blockchains

    DownloadsWeekly Downloads

    8

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    49.8 kB

    Total Files

    6

    Last publish

    Collaborators

    • depay-sebastian