Bitcoin Forum
November 09, 2024, 12:53:59 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Inquiry and help regarding NBitcoin library  (Read 65 times)
Ahmadn111 (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 2


View Profile
July 27, 2024, 01:40:39 AM
 #1

I want to use the NBitcoin library to broadcast raw transactions and create wallets. Is this library connected to the Bitcoin network or do I have to download a full Bitcoin Core node to use it?
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6356


Self-proclaimed Genius


View Profile
July 27, 2024, 05:55:21 AM
Merited by ABCbits (1)
 #2

Most of its features require a Full Node but according to their documentation, it includes an "SPV Wallet Implementation".

API Documentation link: https://metacosa.github.io/NBitcoin/api/index.html#description

"SPV" (Simple Payment Verification) like what Electrum is based upon, meaning that you may be able to do those without you own Full Node software.
Study Electrum's protocol to see if you can find a way to be able to connect to its public servers.
(some wallets do that)

Of course, DYOR (I didn't) since no one will do that for you unless they already have a working implementation to use as reference.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Coding Enthusiast
Legendary
*
Offline Offline

Activity: 1042
Merit: 2805


Bitcoin and C♯ Enthusiast


View Profile WWW
July 27, 2024, 06:38:17 AM
Merited by ABCbits (1)
 #3

You don't need the overhead of a SPV client if all you need is to push a tx to the network. You can do it with much less. Feel free to check out my project Bitcoin.Net and its MinimalClient. There is a UI for pushing txs too which you can follow here:
https://github.com/Autarkysoft/Denovo/blob/master/Src/Denovo/ViewModels/PushTxViewModel.cs

I wouldn't recommend using it for wallet generation at the moment since I've been changing the ECC implementation and it might not be the safest option.

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
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!