algorand-social
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

A library that interact with algorand blockchain

Installation

npm install 'social-algo-api

Usage

getCreateAccountTransaction

// returns Transaction that for createAccount
let txn = await getCreateAccountTransaction(ChainType.TestNet, ipfsClient, wallet, "John Doe", "john@gmail.com")

// After that call proceed transaction to make the transaction work
await proceedTransaction(ChainType.TestNet, txn, connector)

getDeleteAccountTransaction

// returns Transaction that for deleteAccount
let txn = await getDeleteAccountTransaction(ChainType.TestNet, wallet)

// After that call proceed transaction to make the transaction work
await proceedTransaction(ChainType.TestNet, txn, connector)

proceedTransaction

// Proceed the txn 
await proceedTransaction(ChainType.TestNet, txn, connector)

getAccount

//@dev Get Account data
await getAccount(ChainType.TestNet, _ipfsClient, wallet)

Types

ChainType // return ChainType Enum

AccInfo // return AccInfo interface

Readme

Keywords

Package Sidebar

Install

npm i algorand-social

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

33.7 kB

Total Files

15

Last publish

Collaborators

  • 0mkar