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

sdk-user

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sdk-user

A node sample app using the VeChain SDK

  • 1.0.0-beta.27
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

sdk-node-integration: VeChain Transaction Logger

The VeChain Transaction Logger is a TypeScript class that provides methods to monitor the transactions of a specific VeChain account and optionally send webhook notifications when new transactions occur.

Features

  • Monitors transactions sent to and from a specified VeChain account.
  • Automatically filters out transactions that occurred before the latest timestamp.
  • Optionally sends webhook notifications with transaction details when new transactions are detected.

Usage

// Initialize the VeChainTransactionLogger with VeChain node URL and optional webhook URL
const logger = new VeChainTransactionLogger('YOUR_VET_NODE_URL', 'YOUR_WEBHOOK_URL');

// Start monitoring transactions for a specific address
logger.startLogging('YOUR_VET_ACCOUNT_ADDRESS');

// Stop monitoring transactions
logger.stopLogging();

Configuration

  • new VeChainTransactionLogger(url: string, webhookUrl?: string): Constructor to initialize the logger. Requires the URL of the VeChain node. Optionally accepts the URL of the webhook endpoint.
  • startLogging(address: string): Method to start monitoring transactions for the specified VeChain account address.
  • stopLogging(): Method to stop monitoring transactions.

Webhook notifications: The logger can send webhook notifications with transaction details if a webhook URL is provided.

FAQs

Package last updated on 27 Aug 2024

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