Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: guessmi on December 17, 2021, 05:53:05 PM



Title: class or function
Post by: guessmi on December 17, 2021, 05:53:05 PM
as javascript developer,i writed blockchain examples to be a blockchain developer.
still,i need to be able to accept/send payement in € or to/from bitcoin wallet,to be able to write working codes.
i want full example(with explanation)in javascript,about blockchain(handle crypto-trading or set new cryptocurrency),or documentation(pdf...).


Title: Re: class or function
Post by: NotATether on December 17, 2021, 05:57:02 PM
Do you just want to accept a EUR amount but just in BTC, or do you actually need to transfer EUR payments to a BTC wallet?

If the latter, you need to integrate with something like Coinbase Commerce which has an exchange that can do the currency conversion in real-time.


Title: Re: class or function
Post by: bitmover on December 17, 2021, 11:04:18 PM
Have you tried https://btcpayserver.org/?

If you just need to accept payments, that is enough.
Accepting and sending payments is not really blockchain development, btw.

Btcpayserver is a working solution  for what you want,  and open source code.


Title: Re: class or function
Post by: BitMaxz on December 17, 2021, 11:42:42 PM
i want full example(with explanation)in javascript,about blockchain(handle crypto-trading or set new cryptocurrency),or documentation(pdf...).

So you are looking for a full example of blockchain with Javascript? or a Payment gateway that is made with Javascript?

If you talking about blockchain with Javascript then there is a link that I know that explain and help you build your own blockchain with Javascript you can find it on this link below.

- https://github.com/openblockchains/awesome-blockchains#do-it-yourself-diy---build-your-own-blockchain

On that link, you can see all programming languages that can build a DIY blockchain just focusing on Javascript.

About payment processors like the above said BTCpayserver is what you need but the problem is most of the codes of BTCpayserver use C# and less Javascript you can read their documentation here (https://docs.btcpayserver.org/Guide/)


Title: Re: class or function
Post by: guessmi on December 19, 2021, 07:36:04 AM

me looking for an easy,simple class or function (10-20 lines),one to accept payement from a bitcoin wallet to my,the other to send from my to his.
no long code about identification,user data...i do not want to handle(or save in my site)any private data.i suppose a function or bib(crypto-js.js 4.1 or other)to pack all and give secured transaction,just for e-trade(bitcoin to other or new cryptocurrency)