Rdwv

Latest version: v1.0

Safety actively analyzes 710445 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 13 of 15

0.6.0

This version adds new coin: gzro to rdwv.
All APIs are the same, just import GZRO from rdwv.

0.5.1

Fee calculation func now recieves default fee as argument too

0.5.0

This version adds new coin: litecoin to rdwv.

This is where rdwv shows its features.

All APIs are the same, just import LTC from rdwv.

0.4.0

Full fee control and easy lightning.

Fee control:

Now you can pass fee parameter to pay_to function to specify manual fee, or
callback function like:

python
def fee_calc(size):
return size/4
btc.pay_to(address, amount, fee=fee_calc)


Getting size as argument and returning fee, it can be any function of your choice.

Another parameter, broadcast, was added. By default transaction is submitted to network, but if you set broadcast to False raw transaction will be returned. See API reference in docs for details.

**Easy lightning:**

Now lightning is part of btc daemon and BTC coin class, just launch the same daemon and use all lightning functions!

After upgrade, try for example, this:

python
>>> btc.node_id
'030ff29580149a366bdddf148713fa808f0f4b934dccd5f7820f3d613e03c86e55'


Lightning is enabled in your daemon by default, disable it with BTC_LIGTNING=false environment variable.

If lightning is disabled, `rdwv.errors.LightningDisabledError` is raised.

0.3.0

This version adds new events-based API to get updates.

To register a callback function, use `add_event_handler(events, func)` function or `on` decorator

Example:

python
btc.on("new_transaction")
def handler(event, tx):
print(event)
print(tx)
print(btc.get_tx(tx))
btc.poll_updates()


The following code would print

text
new_transaction
some_tx_hash
dict of tx hash data


On each transaction in your wallet.
`btc.on` or `add_event_handler` can also accept a list of events, for example:

python
def handler(event, **kwargs):
print(event, kwargs)


Getting updates is the same, via `btc.poll_updates()`.

There are two kinds of events for now:

`new_block` which gets emitted on every new block, passing height argument to callback function

`new_transaction` which gets emitted on every new transaction passing tx argument as tx_hash of new transaction to callback_function.

Old `btc.notify` api is removed.

0.2.5

Fix warning raising(no stacklevel)

Page 13 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.