Author

Topic: C# recieve funds “simplified” (Read 152 times)

newbie
Activity: 26
Merit: 30
September 01, 2021, 12:18:52 PM
#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.
full member
Activity: 151
Merit: 100
September 01, 2021, 11:52:58 AM
#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].
full member
Activity: 151
Merit: 100
September 01, 2021, 11:51:26 AM
#7
Here is a list of all the available API calls.

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
full member
Activity: 151
Merit: 100
September 01, 2021, 11:49:49 AM
#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!

legendary
Activity: 1042
Merit: 2805
Bitcoin and C♯ Enthusiast
September 01, 2021, 07:24:13 AM
#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
newbie
Activity: 26
Merit: 30
September 01, 2021, 05: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.  
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
September 01, 2021, 04: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.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
August 31, 2021, 10:14:12 PM
#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) .
newbie
Activity: 26
Merit: 30
August 31, 2021, 04:38:26 PM
#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
Jump to: