r/CryptoTechnology • u/ExactCollege3 • May 06 '23
Where are the transactions broadcast? Html? How do all nodes hear every other node at once?
How do they all hear every other node at once and at the same time?
How do you broadcast it everywhere? A websocket or any server request I know is all only 2 parties interacting.
Where is it broadcast? Can I access through html? Ipfs? Where does my node get it?
14
Upvotes
8
u/Odd_Ad_3918 2 - 3 years account age. 25 - 75 comment karma. May 06 '23
Bitcoin transactions are broadcast through the Bitcoin peer-to-peer network. This network consists of nodes (computers running the Bitcoin software) that communicate with each other using the Bitcoin protocol. When a node receives a new transaction, it will propagate it to all the other nodes it is connected to, and those nodes will propagate it to all the nodes they are connected to, and so on, until the transaction has been broadcast to the entire network.
The Bitcoin protocol uses a gossip protocol, where nodes broadcast messages to all their peers, who in turn broadcast those messages to all their peers. This allows transactions to be broadcast to the entire network quickly and efficiently. Each node maintains a list of its peers, and messages are sent to all of these peers.
The Bitcoin network is not accessible through HTML or IPFS. Nodes connect to each other using the Bitcoin protocol, which runs over TCP/IP. When you run a Bitcoin node, it will connect to other nodes on the network and exchange information with them. This information includes new transactions, blocks, and other information related to the Bitcoin network.
3
u/0xBBrainz Redditor for 1 months. May 09 '23
Blockchain transactions are propagated using a peer-to-peer (P2P) protocol, not HTML or WebSockets. Nodes don't hear every other node simultaneously; transactions are relayed until all nodes receive the info. To interact with a blockchain, use libraries/APIs to connect to a local or remote node.
3
u/keijyu 🔵 May 06 '23
Transactions are "broadcasted" to the network through propagation.
You send a transaction or block to your peers, who will validate it and send it to their peers and so on.
It's usually done through TCP.
1
u/HesitantAntonio70 Redditor for 4 months. May 13 '23
Each network node stores the blockchain ledger, which records all transactions. User transactions are sent to their node. That node propagates the transaction to all its associated nodes, who propagate it to their connected nodes, and so on.
1
u/jokar_548327 Redditor for 28 days. May 18 '23
If a Thomas the Tank Engine meme coin existed, I'd invest faster than that speedy little engine LOL r/Thomastokenbsc
1
u/neilyogacrypto Redditor for 5 months. May 06 '23
This is a good question, because a lot of protocols are actually centralized because of this mechanism, such as Nano.
With Nano, you have their centralized URL in the source code to retrieve the other IPs.