Wondering what’s next for npm?Check out our public roadmap! »

    @trezor/blockchain-link
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.17 • Public • Published

    @trezor/blockchain-link

    API for communication with blockchain backends. Every type of a backed is isolated inside own worker file. Currently supported:

    Development:

    Compile and run with simple ui for the API methods.

    yarn
    yarn dev
    

    Build

    yarn lint
    yarn test
    yarn build
    

    Integration

    yarn add @trezor/blockchain-link
    
    import BlockchainLink from '@trezor/blockchain-link';
    
    const link = new BlockchainLink({
        name: string;
        worker: string;
        server: string[];
        debug: boolean;
    });
    
    try {
        const resp = link.getInfo();
    } catch(error) {
    
    }
    

    Workers compilation

    Workers are already builded and minified inside @trezor/blockchain-link/build/ directory.

    Then set your project to compile and provide those workers into blockchain-link instance. An webpack configuration example using worker-loader could be found in here

    Install

    npm i @trezor/blockchain-link

    DownloadsWeekly Downloads

    1,336

    Version

    1.0.17

    License

    SEE LICENSE IN LICENSE.md

    Unpacked Size

    4.89 MB

    Total Files

    50

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar