BitcoinLibTestClient(network, base_url, denominator, *args)¶
Dummy service client for bitcoinlib test network. Only used for testing.
Does not make any connection to a service provider, so can be used offline.
Dummy estimate fee method for the bitcoinlib testnet.
Parameters: blocks (int) – Number of blocks Return int: Fee as 100000 // number of blocks
Dummy getbalance method for bitcoinlib testnet
Parameters: addresslist (list) – List of addresses Return int:
Dummy method to retreive UTXO’s. This method creates a new UTXO for each address provided out of the testnet void, which can be used to create test transactions for the bitcoinlib testnet.
- addresslist (list) – List of addresses
- utxos_per_address (int) – Number of UTXO’s to be created per address
The created UTXO set
Dummy method to send transactions on the bitcoinlib testnet. The bitcoinlib testnet does not exists, so it just returns the transaction hash.
Parameters: rawtx (bytes, str) – A raw transaction hash Return str: Transaction hash