js-algoexplorer-api
Algoexplorer SDK is a javascript library for communicating with the Algoexplorer REST API.
Installation
Nodejs
npm i -s js-algoexplorer-api
Requires Node.js v10+ to run.
Browser
Include this line in your HTML.
Quick Start
const AlgoexplorerAPI = ;const api = ;async { console;};
Usage
Query address transactions
async { console;};
Query block by number
async { console;};
Query transactions from global index
async { console;};
Send transaction
async { // Get blocks count const blocksCount = await api; const mnemonic = "obtain extend cheap want ride fatal jungle reject field sell arm apology" + " avocado grit ball enough rebuild false celery favorite cook soon talk abandon hope"; const keys = algosdk; // Prepare transaction const txn = "from": keysaddr "to": "46QNIYQEMLKNOBTQC56UEBBHFNH37EWLHGT2KGL3ZGB4SW77W6V7GBKPDY" "fee": 1000 "amount": 10000 "firstRound": blocksCount + 1 "lastRound": blocksCount + 100 "genesisID": client "genesisHash": client "note": 0 ; const signedTxn = algosdk; const hexa = Buffer; // Send transaction await api;};