Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hirosystems/ordhook-sdk-js

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hirosystems/ordhook-sdk-js

`ordhook-sdk-js` is a node library, designed to let developers write protocols sitting on top of the Ordinals theory. It is implemented as a dynamic library that can be loaded by Node.

  • 0.6.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

ordhook-sdk-js

ordhook-sdk-js is a node library, designed to let developers write protocols sitting on top of the Ordinals theory. It is implemented as a dynamic library that can be loaded by Node.

Installation

# Yarn
yarn add dev @hirosystems/ordhook-sdk-js

# NPM
npm install --save-dev @hirosystems/ordhook-sdk-js

If any error occurs during the installation of this package, feel free to open an issue on this repository.

Usage

import { OrdinalsIndexer } from "@hirosystems/ordhook-sdk-js";

let indexer = new OrdinalsIndexer({
  bitcoinRpcUrl: 'http://localhost:8332',
  bitcoinRpcUsername: 'devnet',
  bitcoinRpcPassword: 'devnet',
  workingDirectory: '/etc/ordinals/db'
  logs: true
});

indexer.applyBlock((block) => {

})

indexer.undoBlock((block) => {

})

indexer.onTermination(() => {

})

indexer.start();


// indexer.dropBlock();
// indexer.recomputeBlock();
// indexer.replayBlocks();

Case Study

BRC20

Screencasts

FAQs

Package last updated on 13 Oct 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc