I have an xpub key and I'd like to generate the sequence of btc addresses in PHP based on the index. Is there a way to do that?


You can use https://github.com/denpamusic/php-bitcoinrpc to call methods defined in Bitcoin Core API Documentation.

Getting addresses from xpub: https://bitcoincore.org/en/doc/0.20.0/rpc/util/deriveaddresses/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.