Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rodoufu/btc-rawtx-rest
Rest webservice to create raw transactions selecting UTXO
https://github.com/rodoufu/btc-rawtx-rest
bitcoin flask raw-transaction rest-api utxo webservice
Last synced: about 5 hours ago
JSON representation
Rest webservice to create raw transactions selecting UTXO
- Host: GitHub
- URL: https://github.com/rodoufu/btc-rawtx-rest
- Owner: rodoufu
- License: mit
- Created: 2020-02-19T18:03:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T17:52:53.000Z (6 months ago)
- Last Synced: 2024-05-21T19:02:12.228Z (6 months ago)
- Topics: bitcoin, flask, raw-transaction, rest-api, utxo, webservice
- Language: Python
- Size: 55.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# btc-rawtx-rest
Rest webservice to create raw transactions selecting UTXO
## Endpoints
### Create transaction
This endpoint will be used to create a raw transaction that spends from a P2PKH address and that supports
paying to mulitple addresses (either P2PKH or P2SH). The endpoint should return a transaction that
spends from the source address and that pays to the output addresse- URL: /payment_transactions
- Method: POST
- Request body (dictionary):
- source_address (string): The address to spend from
- outputs (dictionary): A dictionary that maps addresses to amounts (in SAT)
- fee_kb (int): The fee per kb in SAT
- Response body (dictionary):
- raw (string): The unsigned raw transaction
- inputs (array of dicts): The inputs used
- txid (string): The transaction id
- vout (int): The output number
- script_pub_key (string): The script pub key
- amount (int): The amount in SAT