https://github.com/rachyrachyrach/bsv-transaction-bsv-sdk
Create and broadcast transactions using the bsv sdk
https://github.com/rachyrachyrach/bsv-transaction-bsv-sdk
asyncio bitcoinsv bsv p2pkh privatekey requests satoshi transaction transactioninput transactionoutput utxo whatsonchain whatsonchainbroadcaster
Last synced: 6 months ago
JSON representation
Create and broadcast transactions using the bsv sdk
- Host: GitHub
- URL: https://github.com/rachyrachyrach/bsv-transaction-bsv-sdk
- Owner: rachyrachyrach
- Created: 2024-12-10T15:51:24.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-01-23T16:06:22.000Z (9 months ago)
- Last Synced: 2025-02-08T00:28:32.845Z (8 months ago)
- Topics: asyncio, bitcoinsv, bsv, p2pkh, privatekey, requests, satoshi, transaction, transactioninput, transactionoutput, utxo, whatsonchain, whatsonchainbroadcaster
- Language: Python
- Homepage: https://docs.bsvblockchain.org/guides/sdks/py
- Size: 734 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bsv transaction bsv-sdk

***
Python script to create BSV transactions, check utxos and broadcast BSV to a wallet. Supports Testnet and Mainnet.Used [BSV Blockchain.org Python Guide](https://docs.bsvblockchain.org/guides/sdks/py)
### Setup
***Python3 3.9.6 You can install the [bsv-sdk](https://docs.bsvblockchain.org/guides/sdks/py) library or use the requirements.txt file provided.
```
pip install -r requirements.txt
```
or```
python3 -m pip install bsv-sdkpython3 -m pip install yenpoint_1satordinals
```Add your private key locally using the export command.
```
export PRIVATE_KEY="paste your private key here"
```Add the wallet address you are sending BSV to by using the export command.
```
export TARGET_ADDRESS="paste wallet address here"
```Send your money
```
python txid_utxo.py
```To look at your unspent transactions, use the utxos.py script.
My transaction on WhatsonChain using the txid_utxo.py script. [example](https://whatsonchain.com/tx/3ded06b71a4ff8cfdb44f37a2fec9b77d6bae2cf6507ad0d4985e0544e3d965e)
My unspent transactions, the utxos. [example](https://api.whatsonchain.com/v1/bsv/main/address/1PXxMeP14C1A73y8Lf8DNT2o5EWGftGDUV/unspent)

***
`op_return_test.py` is to add a message in the op_return`1sat_ordinal.py` is to inscribe an image on chain.
***
***
Other:
non-asyinc.py is a work in progress to not use async.
***[](https://youtu.be/6G97nsB4xqU)
***
