make_address
v1.0.3
Published
You can generate 6 types of cryptocurrency addresses (BTC, ETH, SOL, TRX, XMR, XRP) with just one function call.
Readme
make_address
A simple Node.js package that allows you to generate 6 types of cryptocurrency addresses with a single function call.
✨ Features
make_address can generate addresses for the following cryptocurrencies:
- Bitcoin (BTC)
- Ethereum (ETH)
- Solana (SOL)
- Tron (TRX)
- Ripple (XRP)
- Monero (XMR)
Each generated address includes detailed information such as:
- Private key
- Public key
- Address
All information is tailored to the specific coin.
🚀 Installation
Install the package via npm:
npm i make_address📖 Usage
Use the make function to generate addresses and key pairs:
const MakeAddress = require("make_address");
(async () => {
// Generate Bitcoin (BTC) address
const btc_address = await MakeAddress.make("btc");
console.log("# BitCoin (BTC)");
console.log(btc_address);
// Generate Ethereum (ETH) address
const eth_address = await MakeAddress.make("eth");
console.log("# Ethereum (ETH)");
console.log(eth_address);
// Generate Solana (SOL) address
const sol_address = await MakeAddress.make("sol");
console.log("# Solana (SOL)");
console.log(sol_address);
// Generate Tron (TRX) address
const trx_address = await MakeAddress.make("trx");
console.log("# Tron (TRX)");
console.log(trx_address);
// Generate Ripple (XRP) address
const xrp_address = await MakeAddress.make("xrp");
console.log("# Ripple (XRP)");
console.log(xrp_address);
// Generate Monero (XMR) address
const xmr_address = await MakeAddress.make("xmr");
console.log("# Monero (XMR)");
console.log(xmr_address);
})();📝 Example Output
Note: Keys and addresses are randomly generated and will differ on each run.
# BitCoin (BTC)
{
"private_key": "c5d3ac3dcf8597bf7bafaf630fdb9170d2b9346fcfee807dce12fd1a2c4d881f",
"compressed_public_key": "033cdb909425b0ef9117bd40896c0caa3108d0f361aaac4d4558ea8f453516dace",
"address": "131vfbf6f9tMPeFFmtqYB6qD9wwn3axuiz",
"wif_key": "L3rG4Jtb24W762e4jXNzHUVPotHEmUfRYmZMNTHLhoEvsUZeb5Bf",
"coin": "btc"
}# Ethereum (ETH)
{
"address": "0x78e6cF3332CEc30687b3bD6Cc0d1C85594B15522",
"private_key": "0x9e0b813673ec08912f88a97b070262138845f746ddccd0cc80ec8bf60313a815",
"coin": "eth"
}# Solana (SOL)
{
"address": "C9dfaCXUojVLQUUcvXTmY7dtVDUnv4DHEFCceKP3czw5",
"private_key": "T6LHjwQRadWMaA3LD4NDt4yLahRV8Ho3yiEQcRqqcRalpqjy7UTDVq6T0fQZ2suShsdPfgfzc7E5djdWx2Z4nA==",
"coin": "sol"
}# Tron (TRX)
{
"address": "TBMyJW1XRPzJST4MgQFc4xESotntKZTg7G",
"private_key": "49F5E2308868B52D58B7674F547911BDADBCEC6486059FAB988F8C13C6750909",
"coin": "trx"
}# Ripple (XRP)
{
"address": "rK3Us6KJ1ek8h4SULtBuTjrvR5xAMEKnio",
"publicKey": "EDF5C3095FD866EEBEB4774B3D4181C3033435AE543682DCB43FD201715AA8758B",
"privateKey": "EDE7A714AD7506EA56E1E73FF7F026A2E5E0A287390A0314F80E9A02426817A9FA",
"seed": "sEdVBf5qeJ31jnhkEcr5sHPJQSP5GnG",
"coin": "xrp"
}# Monero (XMR)
{
"walletName": "bcb473d9-919b-4031-89fd-81ff75c1df75",
"address": "4AoTJNx3aRe2eqWFdDNMnMbHRANPdZ8cZBcbpwjP3WKDDSy5m1wNuWHFNq8qALRvF42sA1DSko4StasTKui7wvMHFXsNbF4",
"private_view_key": "5ffb14e84775e3e566f9b5a9718635a11d2c4d0a46f6dcdc2cccde786062fa04",
"private_spend_key": "7013e5a4690d0fce4b8ee7734ed437b52761f8065afd0aaef0405d10f1a0b40c",
"coin": "xmr"
}🤝 Contribution
Contributions are always welcome! Feel free to report bugs, suggest features, or submit pull requests to contribute to the project.
📄 License
This project is distributed under the MIT License.
See the LICENSE file for more details.
