Socket
Book a DemoInstallSign in
Socket

utx-config

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

utx-config

configuration of ultrax

1.0.1
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
ย 
Created
Source

utx-config

npm version

A modular configuration and utility toolkit for UTX-based decentralized applications. Designed to simplify environment management, application bootstrapping, and shared logic across blockchain-enabled services.

Features

  • ๐Ÿ”ง Centralized config management for UTX dApps
  • ๐Ÿ’  Shared utilities for staking, pooling, and DEX integrations
  • ๐Ÿ“˜ TypeScript support with complete typings
  • ๐Ÿ“ฆ Compatible with monorepo and modular architectures
  • ๐Ÿงช Unit-tested with extensibility in mind

Installation

Using npm:

npm install utx-config --save

Or with yarn:

yarn add utx-config

Usage

const { loadConfig, validateRequiredEnv } = require('utx-config');

const config = loadConfig(); validateRequiredEnv(['DEX_API_URL', 'PRIVATE_KEY']);

import { getNetworkSettings, isProd } from 'utx-config';

if (isProd()) {
  const settings = getNetworkSettings('mainnet');
  console.log(settings.rpcUrl);
}

Configuration Format

utx-config/ โ”œโ”€โ”€ index.js โ”œโ”€โ”€ env/ โ”‚ โ”œโ”€โ”€ validator.ts โ”‚ โ””โ”€โ”€ loader.ts โ”œโ”€โ”€ network/ โ”‚ โ””โ”€โ”€ settings.ts โ”œโ”€โ”€ utils/ โ”‚ โ””โ”€โ”€ helpers.ts โ”œโ”€โ”€ types/ โ”‚ โ””โ”€โ”€ index.d.ts

Example Output

[utx-config] โœ… Environment validated.
[utx-config] ๐ŸŒ Loaded config for 'mainnet'.

License

MIT ยฉ utx-labs

Contributing

We welcome contributions! If you have utility functions, config formats, or blockchain-specific extensions that could help others in the UTX ecosystem, feel free to submit a PR.

Keywords

log

FAQs

Package last updated on 04 Jun 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.