Bitcart

Latest version: v1.15.0.0

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

Scan your dependencies

Page 1 of 15

4.4.5

4.3.2

4.3.0

4.1.1

New spec property

`spec` property on coin objects and `RPCProxy` objects return exceptions spec returned from daemon.

add_request function now can work without arguments

`add_request` amount argument now defaults to `None`, so it can be used to just query a new address, for example.

Misc changes and fixes

- `poll_updates` default `timeout` argument changed from 2 to 1 second
- Many refactorings in the code
- `pay_to` and `pay_to_many` functions now work without issues in concurrent environments

Breaking changes

This update is a major version change, it means that there will be lots of breaking changes between 0.x.y -> 1.x.y series, but between 1.x.y series there should be no breaking changes. We are following semver.

All fields which were float before or required float now require Decimal

It is added to prevent loss of precision with floats. You should use Decimals everywhere, and SDK methods now return Decimals. See related breaking changes below:

rate function no longer accepts accurate parameter

Rate function now returns Decimals always, so there is no accurate parameter anymore (this behaviour was achieved before by `rate(accurate=True)`)

Balance function dict's keys are now always Decimals

Before, if some balance didn't exist in a wallet, it returned `0` (int), but if it existed it returned amount as string.
This inconsistent behaviour is now fixed, but now every amount is Decimal.

add_request/get_request amount_COIN fields now return Decimals

`amount_BTC`, `amount_LTC`, `amount (BCH)`, etc. fields are now Decimals.

For convenience, `amount_field` attribute was added on coin objects:

python
btc.amount_field "amount_BTC"


Renamed some methods

`getrequest` was renamed to `get_request`
`addrequest` to `add_request`
`addinvoice` to `add_invoice`

To follow PEP8.

Changed callback function in pay_to/pay_to_many

Before fee callback function passed tx size and default fee (in satoshis) and expected to return btc amount.

Now it is expecting to return amount in satoshis for ease of use.

All errors are no longer based on ValueError

By adding a better exception system, and a major version change, we remove ValueError. `bitcart.errors.BaseError` is now a base error for all exceptions. `bitcart.errors.RequestError` is a base error for all errors returned from server. `bitcart.errors.UnknownError`, if spec is unavailable works the same as `ValueError` before

Flask app setup will no longer work

As internally all SDK code is now async, it is based on aiohttp server for webhooks. You should use aiohttp methods to set up custom servers if needed, flask is no longer a dependency.

webhook extra deleted

As aiohttp is now used for webhooks, there is no need to install extra dependencies. SDK 1.0 doesn't have webhook extra.

bitcart-async package deprecated

As async and sync versions are now part of one library, it will be in `bitcart` Pypi package. `bitcart-async` package's last version will be 0.9.1.

All future updates will be made in `bitcart` package.

Breaking changes in electrum format

They can be found in this PR [comment](https://github.com/bitcartcc/bitcart-sdk/pull/17#issuecomment-700143843)

4.0.3

4.0

Page 1 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.