Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@koibanx/algorand-connector-sdk

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@koibanx/algorand-connector-sdk

Algorand Connector SDK

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Koibanx Algorand Connector SDK

Algorand Connector SDK based in module Algorand Connector


Installation

npm install @koibanx/algorand-connector-sdk

NOTE: you must have the npm token in your .npmrc file


Initialization

Node

Using ES6 import

import AlgoConnectorApi from '@koibanx/algorand-connector-sdk';

const algoConnector = AlgoConnectorApi({
  baseURL: 'http://your-url',
});

With require

exports.__esModule = true;
const AlgoConnectorApi = require('@koibanx/algorand-connector-sdk')["default"];

const algoConnector = AlgoConnectorApi({
  baseURL: 'http://your-url',
});

Types

  • Typescript (@koibanx/algorand-connector-sdk/dist/index.d.ts)

Examples

Using ES6 import

import AlgoConnectorApi from "@koibanx/algorand-connector-sdk";

const algoConnector = AlgoConnectorApi({
    baseURL: 'http://your-url',
})

const catchError = (err, modulo) => {
  console.log('Modulo: ', modulo);
  console.log('details: ', err.details);
  console.log('shortMessage: ', err.message);
  console.log('errorCode: ', err.code);
}

algoConnector.getAccount('76TLMZVS36OWJN7PTM324PKB66HYAXVO4I4HHE6WESKLM53K5RHFDDQGUY')
.then((res) => {
  console.log('getAccount: ', res);
}).catch((err) => catchError(err, 'getAccount'));

algoConnector.app.getApp(98684787).then((res) => {
  console.log('getApp: ', res);
  console.log('getApp -> app: ', res.application.id);
}).catch((err) => catchError(err, 'getApp'));

algoConnector.app.deleteApp({
  appId: 98684787,
  from: '76TLMZVS36OWJN7PTM324PKB66HYAXVO4I4HHE6WESKLM53K5RHFDDQGUY',
}).then((res) => {
  console.log('deleteApp: ', res);
}).catch((err) => catchError(err, 'deleteApp'));

algoConnector.transaction.getTransaction('4VBO6HFFDPOXNEAFCOGGJZIM72LN22HDVCYFEFQ4LHKBIE52QHSA')
.then((res) => {
  console.log('getTransaction: ', res.sender);
}).catch((err) => catchError(err, 'getTransaction'));

algoConnector.asa.createASA({
  decimals: 0,
  from: '76TLMZVS36OWJN7PTM324PKB66HYAXVO4I4HHE6WESKLM53K5RHFDDQGUY',
  total: 0,
}).then((res) => {
  console.log('createASA: ', res);
}).catch((err) => catchError(err, 'createASA'));

FAQs

Package last updated on 11 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc