Bitcoin Forum
May 03, 2024, 03:41:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why doesn't Core have a broadcasttransaction RPC call?  (Read 95 times)
NotATether (OP)
Legendary
*
Online Online

Activity: 1596
Merit: 6726


bitcoincleanup.com / bitmixlist.org


View Profile WWW
July 02, 2022, 04:38:43 PM
 #1

We have a send RPC call for sending transactions inside a wallet, but what about an RPC call for broadcasting signed transactions that are not part of the wallet?

It would eliminate the need to use blockcypher and other 3rd parties as a transaction broadcasting service. Then we could just use our own nodes.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
1714707677
Hero Member
*
Offline Offline

Posts: 1714707677

View Profile Personal Message (Offline)

Ignore
1714707677
Reply with quote  #2

1714707677
Report to moderator
1714707677
Hero Member
*
Offline Offline

Posts: 1714707677

View Profile Personal Message (Offline)

Ignore
1714707677
Reply with quote  #2

1714707677
Report to moderator
1714707677
Hero Member
*
Offline Offline

Posts: 1714707677

View Profile Personal Message (Offline)

Ignore
1714707677
Reply with quote  #2

1714707677
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714707677
Hero Member
*
Offline Offline

Posts: 1714707677

View Profile Personal Message (Offline)

Ignore
1714707677
Reply with quote  #2

1714707677
Report to moderator
1714707677
Hero Member
*
Offline Offline

Posts: 1714707677

View Profile Personal Message (Offline)

Ignore
1714707677
Reply with quote  #2

1714707677
Report to moderator
1714707677
Hero Member
*
Offline Offline

Posts: 1714707677

View Profile Personal Message (Offline)

Ignore
1714707677
Reply with quote  #2

1714707677
Report to moderator
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4165


View Profile
July 02, 2022, 04:43:38 PM
Merited by achow101 (5), LoyceV (4), pooya87 (2), ABCbits (1)
 #2

Doesn't sendrawtransaction suffice for the purpose? Just pass a signed raw transaction in hex to the RPC.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
NotATether (OP)
Legendary
*
Online Online

Activity: 1596
Merit: 6726


bitcoincleanup.com / bitmixlist.org


View Profile WWW
July 03, 2022, 03:34:33 AM
 #3

Doesn't sendrawtransaction suffice for the purpose? Just pass a signed raw transaction in hex to the RPC.

OK, when I was scouring the RPC help of the list of methods, I did not consider sendrawtransaction because I was looking for RPCs that took a txid (quite literally "txid" as that is how the parameters are labelled in the short description).

But what if I'm using an air-gapped wallet that doesn't provide a raw transaction, but just a txhash?  Perhaps the hexstr argument of sendrawtransaction can be amended to take the txhash as an alternative? This is the only way I think this funcionallity an be inserted if another RPC call cannot be created.

I know its already returned as the result, but it's not possible to obtain the raw transaction bytes in all wallets.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4165


View Profile
July 03, 2022, 03:41:20 AM
Merited by ABCbits (1)
 #4

OK, when I was scouring the RPC help of the list of methods, I did not consider sendrawtransaction because I was looking for RPCs that took a txid (quite literally "txid" as that is how the parameters are labelled in the short description).

But what if I'm using an air-gapped wallet that doesn't provide a raw transaction, but just a txhash?  Perhaps the hexstr argument of sendrawtransaction can be amended to take the txhash as an alternative? This is the only way I think this funcionallity an be inserted if another RPC call cannot be created.

I know its already returned as the result, but it's not possible to obtain the raw transaction bytes in all wallets.

You should be able to. Txhash doesn't provide sufficient information for you to broadcast anything. You need the raw transaction, not just the txhash to broadcast the transaction.

If you can somehow rebroadcast using the Txid, then chances are your transaction is already propagated.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











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