1.0.1 • Published 11 months ago

createaddress-simplifier v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Blockchain Address Generator

This npm package provides utility functions for generating addresses for multiple blockchain networks: Ethereum (ERC-20), Bitcoin (BTC), Ripple (XRP), and TRON (TRC-20). The package uses popular libraries such as web3.js, bitcore-lib, and tronweb to handle address generation and key management.

Features

  • Generate a new ERC-20 (Ethereum) address with private key and public key.
  • Generate a new BTC (Bitcoin) address with private key, public key, and WIF (Wallet Import Format).
  • Generate a new XRP (Ripple) address with private key and public key.
  • Generate a new TRON (TRC-20) address with private key and public key.

Installation

To install this package, run the following npm command:

npm install createaddress-simplifier
const CreateAddress = require('createaddress-simplifier');

 const createAddress = new CreateAddress();

async function generateEthereumAddress() {
    const rpcUrl = 'https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID'; // Provide your Ethereum RPC URL
    const ethereumAddress = await createAddress.CreateErc20Address(rpcUrl);
    console.log(ethereumAddress);
}

async function generateBitcoinAddress() {
    const btcAddress = await createAddress.CreateBtcAddress();
    console.log(btcAddress);
}


async function generateRippleAddress() {
    const xrpAddress = await createAddress.CreateXrpAddress();
    console.log(xrpAddress);
}

async function generateTronAddress() {
    const tronAddress = await createAddress.CreateTronAddress();
    console.log(tronAddress);
}

async function generateSolanaAddress() {
    const solanaAddress = await createAddress.CreateSolanaAddress();
    console.log(solanaAddress);
}
1.0.1

11 months ago

1.0.0

11 months ago