Skip to content

Commit 303d9f8

Browse files
committed
v2.1.0
* Minor bugfixes * Improve error handling
1 parent 0325252 commit 303d9f8

File tree

7 files changed

+148
-252
lines changed

7 files changed

+148
-252
lines changed

README.md

+29-14
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ For object creation, same parameters as before. You must first call ``getAddress
109109

110110
* ``value`` is the value requested to the user in the coin to which the request was done. **Optional**, can be empty if you don't wish to add the value to the QR Code.
111111
* ``size`` Size of the QR Code image in pixels. Optional, leave empty to use the default size of 512.
112-
* ``api_key`` is the API Key provided by BlockBee's [dashboard](https://dash.blockbee.io/).
113112

114113
> Response is an object with `qr_code` (base64 encoded image data) and `payment_uri` (the value encoded in the QR), see https://docs.blockbee.io/#operation/qrcode for more information.
115114
@@ -132,14 +131,13 @@ For object creation, same parameters as before. You must first call ``getAddress
132131
```python
133132
from blockbee import BlockBeeHelper
134133

135-
fees = BlockBeeHelper.get_estimate(coin, addresses, priority, api_key)
134+
fees = BlockBeeHelper.get_estimate(coin, addresses, priority)
136135
```
137136

138137
#### Where:
139138
* ``coin`` is the coin you wish to check, from BlockBee's supported currencies (e.g 'btc', 'eth', 'erc20_usdt', ...)
140139
* ``addresses`` The number of addresses to forward the funds to. Optional, defaults to 1.
141140
* ``priority`` Confirmation priority, (check [this](https://support.blockbee.io/article/how-the-priority-parameter-works) article to learn more about it). Optional, defaults to ``default``.
142-
* ``api_key`` is the API Key provided by BlockBee's [dashboard](https://dash.blockbee.io/).
143141

144142
> Response is an object with ``estimated_cost`` and ``estimated_cost_usd``, see https://docs.blockbee.io/#operation/estimate for more information.
145143
@@ -165,15 +163,14 @@ from blockbee import BlockBeeHelper
165163

166164
bb = BlockBeeHelper(coin, own_address, callback_url, params, bb_params, api_key)
167165

168-
conversion = bb.get_conversion(value, from_coin, api_key)
166+
conversion = bb.get_conversion(value, from_coin)
169167
```
170168

171169
#### Where:
172170

173171
* ``coin`` the target currency to convert to, from BlockBee's supported currencies (e.g 'btc', 'eth', 'erc20_usdt', ...)
174172
* ``value`` value to convert in `from`.
175173
* ``from_coin`` currency to convert from, FIAT or crypto.
176-
* ``api_key`` is the API Key provided by BlockBee's [dashboard](https://dash.blockbee.io/).
177174

178175
> Response is an object with ``value_coin`` and ``exchange_rate``, see https://docs.blockbee.io/#operation/convert for more information.
179176
@@ -192,12 +189,9 @@ conversion = bb.get_conversion(value, from_coin, api_key)
192189
```python
193190
from blockbee import BlockBeeHelper
194191

195-
supportedCoins = BlockBeeHelper.get_supported_coins(api_key)
192+
supportedCoins = BlockBeeHelper.get_supported_coins()
196193
```
197194

198-
### Where:
199-
* ``api_key`` is the API Key provided by BlockBee's [dashboard](https://dash.blockbee.io/).
200-
201195
> Response is an array with all supported coins.
202196
203197
#### Response sample:
@@ -382,8 +376,8 @@ If `process` is `false`.
382376
{
383377
"status": "success",
384378
"request_ids": [
385-
103227,
386-
103228
379+
"42d5245e-0a29-402a-9a7e-355e38f1d81d",
380+
"080a546e-4045-4c73-870c-4d9ec08c9cab"
387381
]
388382
}
389383
```
@@ -392,6 +386,23 @@ If `process` is `true`.
392386
```json
393387
{
394388
"status": "success",
389+
"payout_info": {
390+
"id": "88e5eacc-d5a5-4b8a-8133-e23136151b7c",
391+
"status": "Pending Payment",
392+
"from": "0x18B211A1Ba5880C7d62C250B6441C2400d588589",
393+
"requests": {
394+
"0xA6B78B56ee062185E405a1DDDD18cE8fcBC4395d": "0.5",
395+
"0x18B211A1Ba5880C7d62C250B6441C2400d588589": "0.1"
396+
},
397+
"total_requested": "0.6",
398+
"total_with_fee": "0.603",
399+
"error": "None",
400+
"blockchain_fee": 0,
401+
"fee": "0.003",
402+
"coin": "bep20_usdt",
403+
"txid": "",
404+
"timestamp": "23/04/2024 11:13:49"
405+
},
395406
"queued": true
396407
}
397408
```
@@ -424,7 +435,7 @@ create_payout = BlockBeeHelper.list_payouts(coin, status, page, api_key, payout_
424435
"status": "success",
425436
"payouts": [
426437
{
427-
"id": 2460,
438+
"id": "88e5eacc-d5a5-4b8a-8133-e23136151b7c",
428439
"status": "Done",
429440
"total_requested": "0.6",
430441
"total_with_fee": "0.606",
@@ -482,7 +493,7 @@ payout = BlockBeeHelper.create_payout_by_ids(api_key, payout_ids)
482493
{
483494
"status": "success",
484495
"payout_info": {
485-
"id": 2461,
496+
"id": "88e5eacc-d5a5-4b8a-8133-e23136151b7c",
486497
"status": "Created",
487498
"from": "",
488499
"requests": {
@@ -545,7 +556,7 @@ status = BlockBeeHelper.check_payout_status(api_key, payout_id)
545556
{
546557
"status": "success",
547558
"payout_info": {
548-
"id": 2463,
559+
"id": "88e5eacc-d5a5-4b8a-8133-e23136151b7c",
549560
"status": "Done",
550561
"from": "0x18B211A1Ba5880C7d62C250B6441C2400d588589",
551562
"requests": {
@@ -599,6 +610,10 @@ Contact us @ https://blockbee.io/contacts/
599610
#### 2.0.1
600611
* Minor bugfixes
601612

613+
#### 2.1.0
614+
* Minor bugfixes
615+
* Improve error handling
616+
602617
### Breaking Changes
603618

604619
#### 2.0.0

0 commit comments

Comments
 (0)