Skip to content

A simplified Algorand transaction library for serverless environment

License

Notifications You must be signed in to change notification settings

thencc/micronautjs

Repository files navigation

Micronaut.js

Micronaut.js is designed to be a very small wrapper for the algosdk designed for edge computing. The goals are to make the easy stuff easy and the hard stuff possible with a consistent, clear, well-typed syntax across the library.

Get Started

Install via NPM:

npm install @thencc/micronautjs --save

Usage:

import Micronaut from '@thencc/micronautjs';
const micronaut = new Micronaut({
  nodeConfig: {
    BASE_SERVER: https://testnet-api.algonode.cloud,
    INDEX_SERVER: https://testnet-idx.algonode.cloud,
    LEDGER: "TestNet",
    PORT: "443",
    API_TOKEN: "",
  },
});

micronaut.connectAccount("a mnemonic phrase");

const txnStatus = await micronaut.sendAlgo("toAddress", 1000, "a note for the transaction");
console.log(txnStatus);

About

A simplified Algorand transaction library for serverless environment

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published