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

1.0.0 • Public • Published

Ordiscan SDK

A JavaScript/TypeScript SDK for the Ordiscan API.

npm version

Installation

npm install ordiscan

Getting started

import { Ordiscan } from 'ordiscan';

const ordiscan = new Ordiscan('your-api-key-here');

const inscription = await ordiscan.inscription.getInfo('b61b0172d95e266c18aea0c624db987e971a5d6d4ebc2aaed85da4642d635735i0');

See the docs for a full list of available methods and to obtain an API key!

Examples

// Get the info for an inscription:
await ordiscan.inscription.getInfo('b61b0172d95e266c18aea0c624db987e971a5d6d4ebc2aaed85da4642d635735i0');

// Get the rune balance for an address:
await ordiscan.address.getRunes({
  address: "bc1pr8vjq0fk89f5sw3r4n9scrasvw7kaud9akhzw57c3ygycsjspvvseyjcma",
});

// Get the rare sats for an address:
await ordiscan.address.getRareSats({
  address: "bc1pr8vjq0fk89f5sw3r4n9scrasvw7kaud9akhzw57c3ygycsjspvvseyjcma",
});

// Get the inscriptions in a collection:
await ordiscan.collection.getInscriptions({
  collectionSlug: "taproot-wizards"
});

// Get the rare sats in a UTXO:
await ordiscan.utxo.getRareSats({
  utxo: "3d57f76284e17370f1ce45e75f68b5960906c4117951607f20ddd19f85c15706:0"
});

// Get the current price of a rune:
await ordiscan.rune.getMarketInfo({
  name: "UNCOMMONGOODS"
});

/ordiscan/

    Package Sidebar

    Install

    npm i ordiscan

    Weekly Downloads

    339

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    86.2 kB

    Total Files

    86

    Last publish

    Collaborators

    • t4t5