Bitcoin Stack Change is a query and reply web site for Bitcoin crypto-currency lovers. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The very best solutions are voted up and rise to the highest
Requested
Considered
666 occasions
I’m searching for a strategy to construct a Bitcoin pockets native cellular software for iOS & Android.
I need the app to supply the next options to its customers;
- Create a brand new pockets (self custodial)
- Create new addresses to obtain bitcoin
- Ship bitcoin
- Show pockets stability
Do i’ve to run my very own Bitcoin Node or is there a great API as a service that i’m lacking that might assist me hit the bottom operating? (I’m searching for a NodeJs API).
I’ve googled round for a “bitcoin pockets NodeJs API” however what obtained me confused was that each one the API’s with a “pockets integration” do not appear to supply pockets era. They provide “new pockets tackle” era as a substitute which is one degree above what i am searching for. API examples i discovered:
This obtained me considering that i have to be lacking one thing? Is there a great motive why these well-rounded providers will not be providing one thing trivial like a brand new pockets era?
Does this imply i’ve to run my very own bitcoin node and wrap it in a REST API service with one thing like Node.js?
I might recognize if somebody might clarify and level me in the correct route. Thanks.
4
Does this imply i’ve to run my very own bitcoin node and wrap it in a REST API service with one thing like Node.js?
AFAIK most self-custodial Bitcoin pockets apps for Android/iOS are SPV nodes. They do not depend on the consumer operating a full-node on their-own or on different individuals’s computer systems.
I do not learn about Node.js – it appears to be largely used for back-end internet purposes – by which case it is not one thing I might select to implement a cellular SPV pockets. Nonetheless you could know higher.
Neglect about these APIs, if you are going to construct a pockets do it the correct approach, the non-custodial approach.
What you need to see is a library that can let you work together with an electrum server. An electrum server is that this piece of software program that enhances the bitcoin core and supply indexes for addresses, or reasonably script hashes. That is what you may must hold observe of transactions, UTXOs and thus construct a stability.
Here is a spec of the protocol: https://electrumx.readthedocs.io/en/newest/protocol.html
You may generate the RPC calls your self or you need to use a wrapper like this one.
You then’ll additionally need one thing that does key administration. For that I would advocate having a look at bitcoinjs-lib and all its associated libraries.