Author

Topic: Does Electrum have an API? (C# preferred) (Read 982 times)

newbie
Activity: 5
Merit: 0
December 29, 2016, 04:11:09 AM
#9
Thanks for the info.
As far as the country goes, it's fine. I'm not doing it for myself. The server and the owner will be outside of my country. I'll look more into both options. Thanks again.
legendary
Activity: 1042
Merit: 2805
Bitcoin and C♯ Enthusiast
December 29, 2016, 01:54:48 AM
#8
Well, as far as security goes, BitPay is a safe choice. In fact Steam (Valve) is using their services and they are like an intermediary who just make a bitcoin address and receive the payment then give it to you.
Looking at your username, you may want to check to see if they offer services to your country Wink

I think the best option is running your own full node (e.g. bitcoin core) and then on your server connect to it using JSON-RPC to generate addresses and request payments. (You should consult someone more experienced than me though)
newbie
Activity: 5
Merit: 0
December 28, 2016, 01:55:19 PM
#7
Thanks for the resources.
My first try was Blockchain.info's API (and its wrapper) but it requires installing a service on my PC and let's just say it wasn't as easy as it sounded like. I'm having some issues with it. However, if this is the way to go, I could install it on a Linux server and use it on my Windows server.

I've contacted BitcoinLib's owner and he said that using his library would require a lot of customization on my part. I haven't read NBitcoin's docs however I'd think that it's basically the same as BitcoinLib.

About using 3rd party service, I don't have any issues with it. But some people suggested that it might be less secure than using a wallet locally on my server. One might argue the opposite but I'm not sure which way is the best option.

Paying some small fee for this wouldn't be an issue as long as it's not a lot. I'm just trying to find the best solution and by "best" I mean a solution which requires as little as possible tampering on my side and the highest possible security for my business

Which solution would you suggest?

Thanks again.
legendary
Activity: 1042
Merit: 2805
Bitcoin and C♯ Enthusiast
December 27, 2016, 01:01:13 PM
#6
Did someone call my name Grin

C# is not really supported in a lot of bitcoin projects (you won't find much documentations)♯♯♯

Here is a book about it in C♯ https://programmingblockchain.gitbooks.io/programmingblockchain/content/
Here is a decent library: https://github.com/MetacoSA/NBitcoin
Here is an example SPV wallet in C♯: https://github.com/NicolasDorier/NBitcoin.SPVSample
Here is bouncy castle for crypto related stuff in C♯: https://github.com/bcgit/bc-csharp
Another library: https://github.com/GeorgeKimionis/BitcoinLib
Base58 stuff: https://github.com/adamcaudill/Base58Check
Blockchain.info API wrapper in C♯: https://github.com/blockchain/api-v1-client-csharp

I'm creating a website to transfer bitcoins between clients. ♯♯

Have you considered using a third party service like BitPay?
newbie
Activity: 5
Merit: 0
December 26, 2016, 02:44:14 PM
#5
thank you very much
staff
Activity: 3500
Merit: 6152
December 26, 2016, 10:57:05 AM
#4
Thanks for the reply. Could you suggest me another API? I'm looking for a secure wallet with transaction support.

I'm not sure If blockchain.info does that but BlockTrail should be a good choice and It's probably better (from recommendations I heard) then blockchain's one : https://www.blocktrail.com/api/docs (It allow both creating and signing transactions)
newbie
Activity: 5
Merit: 0
December 26, 2016, 09:47:23 AM
#3
Thanks for the reply. Could you suggest me another API? I'm looking for a secure wallet with transaction support.
staff
Activity: 3500
Merit: 6152
December 26, 2016, 04:52:16 AM
#2
I'm creating a website to transfer bitcoins between clients. Can I use Electrum for this? Does it have an API to allow me to create a unique wallet for each user and transfer funds between them? Any helps would be appreciated.

It doesn't have any , but I guess you could build one and link it with your electrum server. C# is not really supported in a lot of bitcoin projects (you won't find much documentations) so It's probably better If you switch to something else and use another API instead.
newbie
Activity: 5
Merit: 0
December 26, 2016, 04:33:10 AM
#1
I'm creating a website to transfer bitcoins between clients. Can I use Electrum for this? Does it have an API to allow me to create a unique wallet for each user and transfer funds between them? Any helps would be appreciated.
Jump to: