Bitcoin Forum
November 27, 2025, 03:58:55 AM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Creating a new transfer  (Read 114 times)
mutasim (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
October 25, 2024, 12:42:07 PM
 #1

I'm creating a new transfer using NBitcoin all the process is complete but they need to be broadcasted i enter this code the process complete but not appear in the explorer

// Create a node to connect to the Bitcoin network
using (var node = Node.Connect(Network.Main, "x9.dnsseed.bitcoin.dashjr.org"))
{
    node.VersionHandshake();
    node.SendMessage(new InvPayload(InventoryType.MSG_TX, transaction.GetHash()));
    node.SendMessage(new TxPayload(transaction));
    Console.WriteLine("Transaction broadcasted successfully.");
}
pooya87
Legendary
*
Offline Offline

Activity: 4018
Merit: 12054



View Profile
October 26, 2024, 06:50:34 AM
Merited by ABCbits (1)
 #2

I'm not familiar with that library but should you "await" the handshake first before sending the message?

In any case if we assume the broadcast was successful (you can use WireShark to monitor your network and see the bitcoin messages sent to make sure), the reason why your tx doesn't appear in any explorer could be the transaction itself. It could be invalid (wrong signature, already spent inputs, etc.) non-standard or simply paying a low fee that led to the rejection of it by the other node.

ABCbits
Legendary
*
Offline Offline

Activity: 3430
Merit: 9387



View Profile
October 26, 2024, 09:15:59 AM
 #3

I'm also not familiar with that library. But looking at Luke's blog post on https://medium.com/@lukedashjr/malware-on-bitcoin-dns-seeds-not-a-problem-6f8dc3c0368b, x9.dnsseed.bitcoin.dashjr.org is a domain that acts as Bitcoin DNS Seeds rather than Bitcoin full node. You probably should try connect to different domain or IP address, such as ones listed on https://bitnodes.io/.

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!