Bitcoin Forum
May 08, 2024, 01:29:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: C# recieve funds “simplified”  (Read 130 times)
glascake (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 30


View Profile
August 31, 2021, 09:38:26 PM
Merited by LoyceV (4), BlackHatCoiner (3), vapourminer (1)
 #1

Hello community
I have a c# server backend and
I would love to receive bitcoins.
But finding a wallet is more difficult than expected.
Electrum has no Cli on windows,
NBitcoin is way too feature rich and complicated for a crypto beginner like me.
I am basically looking for a way to receive money. Best solution would
make be a cold wallet that is only able to receive money but not spend,
Just like electrum (damn it’s almost perfect).


Anonymous Free API of an online wallet is also acceptable.

regards glascake
1715131764
Hero Member
*
Offline Offline

Posts: 1715131764

View Profile Personal Message (Offline)

Ignore
1715131764
Reply with quote  #2

1715131764
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715131764
Hero Member
*
Offline Offline

Posts: 1715131764

View Profile Personal Message (Offline)

Ignore
1715131764
Reply with quote  #2

1715131764
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
September 01, 2021, 03:14:12 AM
 #2

No idea on its reliability but I remember bitcoinj being mentioned and it even has a subforum here (albeit not well used) : https://bitcoin.org

(adding to my previous point, I just checked their github and a long standing developer of bitcoin core pushed a commit 4 hours ago so I think they might be a good choice). Not sure how easy it'll be to implement it with c# though but java is very similar to c# (although you might be able to call both from each other) .
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6730


bitcoincleanup.com / bitmixlist.org


View Profile WWW
September 01, 2021, 09:42:12 AM
 #3

You can place your address & private key(s) in cold storage and then integrate a service such as https://getblock.io/ (they have a free tier) in your backend to track payments to this address in real-time.

Or even better, make a master private key and master public key, put the master public key in your backend code and programmatically derive an address for each customer using BIP44 (I know you don't want to use NBitcoin, but it's good for just that purpose), then use an API to track payments to each of those addresses. You will be able to derive the corresponding private keys offline using a software wallet such as Electrum.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
glascake (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 30


View Profile
September 01, 2021, 10:33:11 AM
 #4

@ETFbitcoin @jackg Java could also be used, I could write a cli Java application which acts as a bridge. I’ll take a look at bitcoinj.

@NotATether
The problem with NBitcoin is, I can’t seem to find good / complete code examples (that’s my way of learning/ understanding new concepts) . And as far as I understood it also needs the full blockchain for checking incoming transactions and/or has to watch each new block. Getblockio has even reasonable prices. Other Bitcoin APIs have prices 200+$. 10$/month is totally reasonable and the free tier is sufficient for the start. Upgrading down the line is no problem. So what I will try this week is this super idea where I will be deriving addresses from my master public key using NBitcoin and then use getblock.io for checking balances. Thank you so much I will post if I got this figured out, and I might even post my class.  
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1039
Merit: 2783


Bitcoin and C♯ Enthusiast


View Profile WWW
September 01, 2021, 12:24:13 PM
Merited by LoyceV (4), BlackHatCoiner (1)
 #5

then use getblock.io for checking balances.
You could always use Electrum protocol itself instead of the wallet software to connect to Electrum full nodes and get balance, history, etc. from them in a much more decentralized way which is also faster and free. I've been meaning to implement this (as an SPV client) in C# but my focus is being drawn to other projects so it keeps getting postponed.
Here is the doc: https://electrumx-spesmilo.readthedocs.io/en/latest/protocol.html

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
sunsofdust
Full Member
***
Offline Offline

Activity: 151
Merit: 100


View Profile
September 01, 2021, 04:49:49 PM
 #6

Hello community
I have a c# server backend and
I would love to receive bitcoins.
But finding a wallet is more difficult than expected.
Electrum has no Cli on windows,
NBitcoin is way too feature rich and complicated for a crypto beginner like me.
I am basically looking for a way to receive money. Best solution would
make be a cold wallet that is only able to receive money but not spend,
Just like electrum (damn it’s almost perfect).


Anonymous Free API of an online wallet is also acceptable.

regards glascake


You can run a full bitcoin node on Windows using Bitcoin core which has a JSON RPC API, providing an interface to send & receive BITCOIN by generating a payment addresses.   Here is a link to the API reference guide with an example implementation for .NET (C#) on how to communicate with the RPC service running on the Bitcoin core client.

https://en.bitcoin.it/wiki/API_reference_%28JSON-RPC%29

You can download the Bitcoin core client from Bitcoin.org

Cheers!

sunsofdust
Full Member
***
Offline Offline

Activity: 151
Merit: 100


View Profile
September 01, 2021, 04:51:26 PM
 #7

Here is a list of all the available API calls.

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
sunsofdust
Full Member
***
Offline Offline

Activity: 151
Merit: 100


View Profile
September 01, 2021, 04:52:58 PM
 #8

getnewaddress    [account]    Returns a new bitcoin address for receiving payments. If [account] is specified payments received with the address will be credited to [account].
glascake (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 30


View Profile
September 01, 2021, 05:18:52 PM
Last edit: September 01, 2021, 09:26:30 PM by glascake
 #9

You can place your address & private key(s) in cold storage and then integrate a service such as https://getblock.io/ (they have a free tier) in your backend to track payments to this address in real-time.

Follow up question what prevents me from using: https://blockchain.info/address/1F34duy2eeMz5mSrvFepVzy7Y1rBsnAyWC?format=json

And about NBitcoin. Lets say I got my xprv and xpub pair. For me to "recover" funds, I minimum need the index/"path" of the derived public keys and the xprv. If i only have the xprv I do not know the "path" of the derived keys, correctly. Man I learned so much in the last 2 hours my brain is potato.

You can run a full bitcoin node ...

Full node is sadly not an option.
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!