imanrjb/hd-wallet

HD wallet for multiple cryptocurrencies

Installs: 50

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

pkg:composer/imanrjb/hd-wallet

v1.1.4 2022-07-12 10:06 UTC

This package is auto-updated.

Last update: 2025-10-12 17:33:11 UTC


README

How to install

composer require imanrjb/hd-wallet

Put below parameters in .env file

(XPRV is only used in private key generation)
BTC_XPUB=
ERC_XPUB=
TRC_XPUB=

BTC_XPRV=
ERC_XPRV=
TRC_XPRV=

Generate address using network and HD path

return AddressGenerator::getNewAddress('btc', '0/0');

Generate private key and address using network and HD path

return PrivateKeyGenerator::getAddressWithPrivateKey('btc', '0/0');

Supported networks:

Network Symbol
Bitcoin btc
Ethereum erc
Tron trc