Necessarily Precedes Mischief

    @waves/provider-ledger
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.0 • Public • Published

    ProviderLedger

    Overview

    ProviderLedger

    Getting Started

    1. Library installation

    To install Signer and ProviderLedger libraries use

    npm i @waves/signer @waves/provider-ledger

    2. Library initialization

    Add library initialization to your app.

    • For Testnet:

      import { Signer } from '@waves/signer';
      import { ProviderLedger } from '@waves/provider-ledger';
      
      const signer = new Signer({
        // Specify URL of the node on Testnet
        NODE_URL: 'https://nodes-testnet.wavesnodes.com'
      });
      const provider = new ProviderLedger();
      signer.setProvider(provider);
    • For Mainnet:

      import { Signer } from '@waves/signer';
      import { ProviderLedger } from '@waves/provider-ledger';
      
      const signer = new Signer();
      const provider = new ProviderLedger();
      signer.setProvider(provider);

    3. Basic example

    Now your application is ready to work with Waves Platform. Let's test it by implementing basic functionality. For example, we could try to authenticate user and transfer funds.

    const user = await signer.login();
    const [transfer] = await signer
      .transfer({
        amount: 1,
        recipient: 'alias:T:merry',
      })
      .sign();

    For more information see Signer documentation.

    Keywords

    none

    Install

    npm i @waves/provider-ledger

    DownloadsWeekly Downloads

    199

    Version

    0.2.0

    License

    none

    Unpacked Size

    1.1 MB

    Total Files

    108

    Last publish

    Collaborators

    • vsuharnikov
    • gakhramanov
    • tsigel
    • ebceu4
    • vba2000
    • msmolyakov-waves
    • wavesadmin
    • dvshur
    • jlewka
    • kozhevnikov.peter
    • axepuff
    • okanishcheva
    • vladislav.petushkov
    • d.lobanov
    • emera1d