🚀 Socket Launch Week Day 4:Socket MCP Adds Org Alerts, Threat Feed Review, and Package Inspection.Learn more
Sign In

@rlajous/sdk-core

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rlajous/sdk-core

Core utilities for Webacy SDK packages

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
9
-40%
Maintainers
1
Weekly downloads
 
Created
Source

@rlajous/sdk-core

Core utilities and shared internals for Webacy SDK packages. This package is automatically installed as a dependency of @rlajous/sdk-trading and @rlajous/sdk-threat.

Installation

This package is typically not installed directly. Instead, install one of the SDK packages:

npm install @rlajous/sdk           # Full SDK
npm install @rlajous/sdk-trading   # Trading analysis only
npm install @rlajous/sdk-threat    # Threat analysis only

What's Included

Chain Support

import { Chain, isEvmChain, CHAIN_IDS, CHAIN_NAMES } from '@rlajous/sdk-core';

// Check if a chain is EVM-compatible
if (isEvmChain(Chain.ETH)) {
  console.log('Using EVM chain');
}

// Get chain metadata
console.log(CHAIN_NAMES[Chain.SOL]); // "Solana"
console.log(CHAIN_IDS[Chain.ETH]);   // 1

Error Classes

import {
  WebacyError,
  AuthenticationError,
  RateLimitError,
  ValidationError,
  NotFoundError,
  NetworkError,
} from '@rlajous/sdk-core';

try {
  await client.addresses.analyze('0x...');
} catch (error) {
  if (error instanceof RateLimitError) {
    console.log(`Retry after ${error.retryAfter} seconds`);
  }
}

Type Definitions

import type {
  RiskTag,
  RiskModule,
  RiskCategory,
  TokenMetadata,
  OwnershipDistribution,
} from '@rlajous/sdk-core';

Address Validation

import {
  isValidAddress,
  isValidEvmAddress,
  isValidSolanaAddress,
} from '@rlajous/sdk-core';

isValidAddress('0x742d35Cc...', Chain.ETH); // true
isValidSolanaAddress('EPjFWdd5Aufq...'); // true

Supported Chains

ChainCodeEVM
EthereumethYes
BasebaseYes
BSCbscYes
PolygonpolYes
ArbitrumarbYes
OptimismoptYes
SolanasolNo
TONtonNo
SuisuiNo
StellarstellarNo
BitcoinbtcNo

License

MIT

Keywords

webacy

FAQs

Package last updated on 02 Jan 2026

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