HomePhabricator

[Chronik] Add `/broadcast-tx(s)` endpoints

Description

[Chronik] Add /broadcast-tx(s) endpoints

Summary:
These endpoints are similar to the sendrawtransaction RPC, with some differences:

  1. They take a serialized BroadcastTx(s)Request (similar to most Chronik endpoints)
  2. They perform an SLP/ALP check and reject all txs atomically if any tokens are unintentionally burned

Currently /broadcast-txs, after the token check, simply broadcasts txs one by one and not as a package. This matches the current NNG Chronik behavior, but in the future we could use the AcceptMultipleTransactions function from the node to make that atomic, too.

Depends on D15369.

Test Plan: ninja check-functional

Reviewers: Fabien, #bitcoin_abc

Reviewed By: Fabien, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D15370

Details

Provenance
tobias_ruckAuthored on Feb 2 2024, 15:24
tobias_ruckPushed on Feb 11 2024, 21:22
Reviewer
Restricted Project
Differential Revision
D15370: [Chronik] Add `/broadcast-tx(s)` endpoints
Parents
rABC389555e8829f: [Cashtab] Do not auto-open the QR code scanner in the extension
Branches
Unknown
Tags
Unknown