Skip to main content

Node.js Integration

This guide shows how to integrate TxnCheck API into your Node.js application.

Installation

For TypeScript support:

Basic Client Setup

Create a reusable client class:

Usage Examples

Async Mode (Default)

Sync Mode

Full Check

VPA Blocklist Check

Error Handling

Webhook Signature Verification

Native Fetch Client (Node.js 18+)

Complete Integration Example

Next Steps

Webhooks Guide

Set up webhooks for async notifications

Error Handling

Handle API errors properly

Security Best Practices

Secure your integration

Use Cases

See real-world examples