imanrjb/hd-wallet

HD wallet for multiple cryptocurrencies

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

This package is auto-updated.

Last update: 2024-12-12 15:30:00 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: