Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Bitwallet99 on February 18, 2022, 08:16:33 AM



Title: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: Bitwallet99 on February 18, 2022, 08:16:33 AM
Hi,

I'm interested in setting up a local P2P exchange in the area where I live (like localbitcoins.com). Is there an API or a wallet like Electrum which I could use to create my site users personal wallets and also escrow? Plus update transactions whenever they happen.

Would appreciate any advice on this matter.

Thank you


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: NotATether on February 18, 2022, 08:50:52 AM
Electrum doesn't have an API for escrow.

You are better off creating your own API for these use cases, by running your own nodes or renting them off of Getblock.io. Because the way things stand, there is no universal, regularly maintained API for them on Github.


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: pooya87 on February 18, 2022, 09:18:16 AM
Usually when they want to create a new service like a P2P exchange they hire an expert developer to write their backend for them for wallets, transactions, escrows, etc. instead of using some API or a wallet that is not designed to be used by big services (e.g. Electrum can't handle big wallet files). There is also the matter of security that the developer has to constantly keep an eye on.


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: bitmover on February 18, 2022, 11:05:42 AM
Hi,

I'm interested in setting up a local P2P exchange in the area where I live (like localbitcoins.com). Is there an API or a wallet like Electrum which I could use to create my site users personal wallets and also escrow? Plus update transactions whenever they happen.

Would appreciate any advice on this matter.

Thank you

If you need to create wallets, you need to hire a professional

If you just need only to get the balance your users addresses, you can use a block explorer API. They are easy to use.

For example, take a look at this api response:
https://api.blockchair.com/bitcoin/dashboards/address/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa

Docs of 3 good block explorers:
https://blockchair.com/api/docs
https://mempool.space/docs/api/rest
https://www.blockchain.com/en/api


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: hugeblack on February 18, 2022, 11:54:53 AM
Electrum wallet is not designed to handle commercial use (managing hundreds of addresses per hour) so the number of addresses you want to manage will determine what kind of software you can use.

Performance engineering is what will determine whether it is appropriate to use open source applications or you should start from scratch (if the store is large).

any way you can use BTCPay Server[1] and inside it you can have unlimited number of stores that be connected to your electrum wallet.

[1] https://docs.btcpayserver.org/CreateStore/


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: Bitwallet99 on February 20, 2022, 05:17:30 AM
Can I use a library like Awesome Bitcoin?

https://github.com/igorbarinov/awesome-bitcoin


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: pooya87 on February 20, 2022, 06:13:12 AM
Can I use a library like Awesome Bitcoin?
https://github.com/igorbarinov/awesome-bitcoin
That's not a library, it is a list that contains all kinds of tools and services including some libraries that you have to choose from. Choose a programming language and see what libraries are in that list, then check if the library is maintained and up to date then you can think about using it.


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: Bitwallet99 on February 21, 2022, 05:10:13 AM
Can I use a library like Awesome Bitcoin?
https://github.com/igorbarinov/awesome-bitcoin
That's not a library, it is a list that contains all kinds of tools and services including some libraries that you have to choose from. Choose a programming language and see what libraries are in that list, then check if the library is maintained and up to date then you can think about using it.


What do you think about https://github.com/bitcoinjs/bitcoinjs-lib

Would I be able to achieve what I want to do with this library? Would you recommend?


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: pooya87 on February 21, 2022, 05:32:51 AM
What do you think about https://github.com/bitcoinjs/bitcoinjs-lib
Would I be able to achieve what I want to do with this library? Would you recommend?
I generally don't trust what I can't read myself and I can't read JavaScript so I can't vouch for it. But bitcoinjs has a decent popularity and is used by some other popular projects. For example trezor (https://github.com/trezor) team uses it in some of their projects.


Title: Re: What Program To Use For Wallets And Escrow? (For Exchange)
Post by: Exio.tech on March 02, 2022, 01:47:26 PM
it is better to develop your own wallet or even better to get a ready-to-go solution for it. If you are interested in it you can contact us.