zpywallet.broadcast.btc package

Submodules

zpywallet.broadcast.btc.all module

async broadcast_transaction_btc(raw_transaction_hex, **kwargs)[source]

Broadcast a Bitcoin transaction.

This function attempts to asynchronously broadcast a signed transaction to several propagators that relay the transaction across the network.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

tx_hash_btc(raw_transaction_hex)[source]

Calculate the hash of a Bitcoin transaction.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

zpywallet.broadcast.btc.bitaps module

async broadcast_transaction_btc_bitaps(raw_transaction_hex)[source]

Broadcast a Bitcoin transaction using Bitaps.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

zpywallet.broadcast.btc.blockchain_info module

async broadcast_transaction_btc_blockchain_info(raw_transaction_hex)[source]

Broadcast a Bitcoin transaction using Blockchain.info.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

zpywallet.broadcast.btc.blockchair module

async broadcast_transaction_btc_blockchair(raw_transaction_hex)[source]

Broadcast a Bitcoin transaction using Blockchair.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

zpywallet.broadcast.btc.blockcypher module

async broadcast_transaction_btc_blockcypher(raw_transaction_hex)[source]

Broadcast a Bitcoin transaction using Blockcypher.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

zpywallet.broadcast.btc.blockstream module

async broadcast_transaction_btc_blockstream(raw_transaction_hex)[source]

Broadcast a Bitcoin transaction using Blockstream.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

zpywallet.broadcast.btc.esplora module

async broadcast_transaction_btc_esplora(raw_transaction_hex, **kwargs)[source]

Broadcast a Bitcoin transaction using an Esplora node.

Parameters:
  • raw_transaction_hex (str) – The raw transaction in hexadecimal form.

  • esplora_url (str) – The Esplora endpoint URL.

zpywallet.broadcast.btc.fullnode module

async broadcast_transaction_btc_full_node(raw_transaction_hex, **kwargs)[source]

Broadcast a Bitcoin transaction using a full node.

If the node requires authentication, both username and password must be passed.

Parameters:
  • raw_transaction_hex (str) – The raw transaction in hexadecimal form.

  • url (str) – The JSON-RPC URL of the node. Include the port if necessary.

  • username (str) – The RPC username.

  • password (str) – The RPC password.

zpywallet.broadcast.btc.mempool_space module

async broadcast_transaction_btc_mempool_space(raw_transaction_hex)[source]

Broadcast a Bitcoin transaction using Mempool.space.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

zpywallet.broadcast.btc.smartbit module

async broadcast_transaction_btc_smartbit(raw_transaction_hex)[source]

Broadcast a Bitcoin transaction using Smartbit.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

zpywallet.broadcast.btc.viabtc module

async broadcast_transaction_btc_viabtc(raw_transaction_hex)[source]

Broadcast a Bitcoin transaction using ViaBTC.

Parameters:

raw_transaction_hex (str) – The raw transaction in hexadecimal form.

Module contents