Bitcoin Forum
November 07, 2024, 01:13:45 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Does Electrum have an API? (C# preferred)  (Read 969 times)
alirezanoori (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 26, 2016, 09: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.
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3654
Merit: 6426



View Profile
December 26, 2016, 09: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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
alirezanoori (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 26, 2016, 02:47:23 PM
 #3

Thanks for the reply. Could you suggest me another API? I'm looking for a secure wallet with transaction support.
OmegaStarScream
Staff
Legendary
*
Offline Offline

Activity: 3654
Merit: 6426



View Profile
December 26, 2016, 03:57:05 PM
 #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)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
alirezanoori (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 26, 2016, 07:44:14 PM
 #5

thank you very much
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1042
Merit: 2805


Bitcoin and C♯ Enthusiast


View Profile WWW
December 27, 2016, 06: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?

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
alirezanoori (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 28, 2016, 06: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.
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1042
Merit: 2805


Bitcoin and C♯ Enthusiast


View Profile WWW
December 29, 2016, 06: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)

Projects List+Suggestion box
Donate: 1Q9s or bc1q
|
|
|
FinderOuter(0.19.1)Ann-git
Denovo(0.7.0)Ann-git
Bitcoin.Net(0.26.0)Ann-git
|
|
|
BitcoinTransactionTool(0.11.0)Ann-git
WatchOnlyBitcoinWallet(3.2.1)Ann-git
SharpPusher(0.12.0)Ann-git
alirezanoori (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
December 29, 2016, 09: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!