0.0.1 • Published 2 years ago
algorand-social v0.0.1
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
0.0.1
2 years ago