
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
cardano-explorer-api
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
cardano-explorer
Wrapper for https://cardanodocs.com/technical/explorer/api/#path--api-blocks-pages using promises.
npm instal cardano-explorer-api
## Usage
Initialize with optional options endpoint
and debug
. Default Endpoint: https://cardanoexplorer.com/api.
new CardanoExplorerApi(options);
Method (Params) | Aliases | URI |
---|---|---|
addressesSummary({ address }) | address | /addresses/summary/{address} |
blocksPages({ page, pageSize }) | /blocks/pages | |
blocksPagesTotal({ pageSize }) | /blocks/pages/total | |
blocksSummary({ hash }) | blockSummary , block | /blocks/summary/{hash} |
blocksTxs({ hash, limit, offset }) | blockTxs | /blocks/txs/{hash} |
epochs({ epoch, page }) | epoch | /epochs/{epoch} |
epochsSlot({ epoch, slot }) | slot | /epochs/{epoch}/{slot} |
genesisAddress({ page, pageSize, filter }) | /genesis/address | |
genesisAddressPagesTotal({ pageSize, filter }) | /genesis/address/pages/total | |
genesisSummary({ }) | /genesis/summary | |
statsTxs({ page }) | recentTransactions | /stats/txs |
supplyAda({ }) | totalSupply | /supply/ada |
txsLast({ }) | lastTransaction | /txs/last |
txsSummary({ txid }) | tx | /txs/summary/{txid} |
const explorer = new CardanoExplorerApi();
// or configure new CardanoExplorerApi({ debug: true, endpoint: 'http://localhost:8100/api' });
(async () => {
const hash = 'f9b473a4a8f264adc14dbe349921a35d9580aa357dcbe1181c12553c12a7312c';
const block = await explorer.blocksSummary({ hash });
console.log(block);
/*
{ cbsEntry:
{ cbeEpoch: 2,
cbeSlot: 5,
cbeBlkHash: 'f9b473a4a8f264adc14dbe349921a35d9580aa357dcbe1181c12553c12a7312c',
cbeTimeIssued: 1507067191,
cbeTxNum: 1,
cbeTotalSent: { getCoin: '8000001486438' },
cbeSize: 1028,
cbeBlockLead: '1deb82908402c7ee3efeb16f369d97fba316ee621d09b32b8969e54b',
cbeFees: { getCoin: '171246' } },
cbsPrevHash: '2333fb5f09a894d8cd698239fa70712d40432726da752f8469724bcd2eed9c4b',
cbsNextHash: '47daf279ff8af6beb487869c64c0e207fd0eba5e4be69ec66a31b195d2df7e8f',
cbsMerkleRoot: '080d93fe4516a4860f954cad6c5d3a012daac264fb47fcf8215505b03fc890b1' }
*/
})();
Currently uses default endpoint mainnet data, todo: implement mock test server.
npm run test
MIT 2018
FAQs
### Isomorphic Javascript Interface for `cardano-explorer`
The npm package cardano-explorer-api receives a total of 0 weekly downloads. As such, cardano-explorer-api popularity was classified as not popular.
We found that cardano-explorer-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.