Author

Topic: public master keys to addresses (Read 108 times)

newbie
Activity: 4
Merit: 0
January 18, 2023, 01:53:27 AM
#4
I am currently using https://github.com/romanz/electrs for various stuff, but unfortunately I dont find any api details anymore.

The documentation for the Electrum Server Protocol is the same as for ElectrumX, i.e. this one: https://electrumx-spesmilo.readthedocs.io/en/latest/protocol.html
Electrs most probably also follows that.
I am talking about the Rest API from Electrs. It differs from the ElectrumX protocoll.

As you can see here, generating addresses from an extended public key is not that hard.

https://learnmeabitcoin.com/technical/images/extended-keys/child-extended-public-key-normal.png

That being said, existing solutions can be found easily on GitHub. This one for example, seems to fit almost exactly your description; since it's in JavaScript it should be easy to embed it in a NodeJS application with API that you add yourself. https://github.com/swan-bitcoin/xpub-tool
Thanks, I will look into that and update, once it is working.
hero member
Activity: 882
Merit: 5834
not your keys, not your coins!
January 17, 2023, 05:07:19 PM
#3
As you can see here, generating addresses from an extended public key is not that hard.



That being said, existing solutions can be found easily on GitHub. This one for example, seems to fit almost exactly your description; since it's in JavaScript it should be easy to embed it in a NodeJS application with API that you add yourself. https://github.com/swan-bitcoin/xpub-tool

legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
January 17, 2023, 11:14:12 AM
#2
I am currently using https://github.com/romanz/electrs for various stuff, but unfortunately I dont find any api details anymore.

The documentation for the Electrum Server Protocol is the same as for ElectrumX, i.e. this one: https://electrumx-spesmilo.readthedocs.io/en/latest/protocol.html
Electrs most probably also follows that.
newbie
Activity: 4
Merit: 0
January 17, 2023, 11:08:04 AM
#1
Hello,
I am searching for a self Hosted (!!) solution to generate addresses from a public zpub key. It would be great, if it has an intigrated rest api inside. Maybe something for nodejs would be very nice.

This would be a nice solution for cold storage wallets.

I am currently using https://github.com/romanz/electrs for various stuff, but unfortunately I dont find any api details anymore.

Jump to: