Skip to content

rachyrachyrach/bsv-transaction-bsv-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bsv transaction bsv-sdk

bsv dragon


Python script to create BSV transactions, check utxos and broadcast BSV to a wallet. Supports Testnet and Mainnet.

Used BSV Blockchain.org Python Guide

Setup


Python3 3.9.6 You can install the bsv-sdk library or use the requirements.txt file provided.

pip install -r requirements.txt

or

python3 -m pip install bsv-sdk

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

My unspent transactions, the utxos. example

utxos example


Other: non-asyinc.py is a work in progress to not use async.

op_return_test.py is a work in progress to add script into the op_return.


In action


BSV Dragon