Socket
Book a DemoInstallSign in
Socket

@opcat-labs/openapi

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opcat-labs/openapi

NestJS API Gateway with OpenAPI v3 support

latest
npmnpm
Version
1.0.3
Version published
Maintainers
4
Created
Source

@opcat-labs/openapi

A TypeScript SDK for interacting with the OpCat Labs OpenAPI, providing type-safe access to blockchain data including blocks, transactions, addresses, UTXOs, and tokens.

Installation

npm install @opcat-labs/openapi

or

yarn add @opcat-labs/openapi

Quick Start

import { healthCheck, getBlockByHash, getTransactionById } from '@opcat-labs/openapi';

// Check service health
const health = await healthCheck();

// Get block by hash
const block = await getBlockByHash({
  params: { hash: 'your-block-hash-here' }
});

// Get transaction by ID
const transaction = await getTransactionById({
  params: { txid: 'your-transaction-id-here' }
});

API Reference

All api reference here: https://testnet-openapi.opcatlabs.io/

FAQs

Package last updated on 14 Oct 2025

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