Releases: bitcart/bitcart-sdk
Version 0.6.2: critical fix
Version 0.6.2: critical fix
Version 0.6.1 async: fix for latest daemon
Version 0.6.1 async: fix for latest daemon
Version 0.6.1: fix for latest daemon
Version 0.6.1: fix for latest daemon
Version 0.6.0 Asyncio
Version 0.6.0 Asyncio
This version adds new coin: gzro to bitcart.
All APIs are the same, just import GZRO from bitcart.
Version 0.6.0
Version 0.6.0
This version adds new coin: gzro to bitcart.
All APIs are the same, just import GZRO from bitcart.
Version 0.5.1 Asyncio: fee calculation func now recieves default fee as argument too
Version 0.5.1 Asyncio: fee calculation func now recieves default fee as argument too
Version 0.5.1: fee calculation func now recieves default fee as argument too
Version 0.5.1: fee calculation func now recieves default fee as argument too
Version 0.5.0 Asyncio
Version 0.5.0 Asyncio
This version adds new coin: litecoin to bitcart.
This is where bitcart shows its features.
All APIs are the same, just import LTC from bitcart.
Version 0.5.0
Version 0.5.0
This version adds new coin: litecoin to bitcart.
This is where bitcart shows its features.
All APIs are the same, just import LTC from bitcart.
Version 0.4.0 Asyncio
Version 0.4.0 Asyncio
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
def fee_calc(size):
return size/4
btc.pay_to(address, amount, fee=fee_calc)
Or, use async def
async def fee_calc(size):
result = await some_func(size)
return result/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:
>>> await btc.node_id
'030ff29580149a366bdddf148713fa808f0f4b934dccd5f7820f3d613e03c86e55'
Lightning is enabled in your daemon by default, disable it with BTC_LIGTNING=false environment variable.
If lightning is disabled, bitcart.errors.LightningDisabledError
is raised.