social-algo-api
v0.0.3
Published
Algorand API for social media app.
Downloads
6
Readme
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", "[email protected]")
// 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)