Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API needs an endpoint to submit a package of txs #532

Open
stevenroose opened this issue Sep 23, 2024 · 0 comments
Open

API needs an endpoint to submit a package of txs #532

stevenroose opened this issue Sep 23, 2024 · 0 comments

Comments

@stevenroose
Copy link

Currently there is the POST /tx endpoint where you can submit a tx. With Bitcoin Core 28 releasing package relay in a limited form, it is possible using Core to submit and relay packages of transactions. More specifically, it is possible to relay a pair of txs of which either of them would not be accepted into the mempool alone.

This means that submitting the txs one by one into the /tx endpoint does not work and the API needs to be able to accept packages of multiple (currently just 2) transactions.

Maybe POST /tx can support a body of multiple lines, or of a JSON array, or a new endpoint /txs can be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant