@pipeline-ui-2/pipeline

    1.2.7 • Public • Published

    Pipeline Algorand Connector

    A work-in-progress JavaScript class to streamline the process of using MyAlgo Connect, WalletConnect and AlgoSigner to sign and send transactions to the Algorand network.

    Usage

    Running the included example

    cd example
    npm install
    npm run start

    Install from npm:

    npm install @pipeline-ui-2/pipeline

    Import the class into your project:

    import Pipeline from "@pipeline-ui-2/pipeline";

    Initialize Pipeline:

    const myAlgoWallet = Pipeline.init();

    Connect to MyAlgo (returns first address in wallet):

    Pipeline.connect(myAlgoWallet)
        .then(data => {
            console.log(data);
        });

    Connect to AlgoSigner (returns first address in wallet):

    Pipeline.pipeConnector = "AlgoSigner";
    Pipeline.connect()
        .then(data => {
            console.log(data);
        });

    Send a transaction (returns transaction id):

    send(address, amt, myNote, sendingAddress, wallet, index = 0)
        .then(data => {
            console.log(data);
        });

    Pipeline.send Arguments

    1. address (string)
    2. amt (amount in microalgos, integer)
    3. myNote (note, string)
    4. sendingAddress (string)
    5. wallet (instance of Pipeline.init)
    6. index (0 = Algorand, otherwise asset index number, integer)

    Install

    npm i @pipeline-ui-2/pipeline

    DownloadsWeekly Downloads

    39

    Version

    1.2.7

    License

    MIT

    Unpacked Size

    14.7 kB

    Total Files

    3

    Last publish

    Collaborators

    • pipeline-ui-2