Skip to content

Commit

Permalink
Match callback Url changes updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ashthecoder05 committed May 2, 2023
1 parent 630373d commit d014e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blockonomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ def _get_history_for_addresses(self, addresses: list) -> dict:
api_key = configloader.user_cfg["Bitcoin"]["api_key"]

url = "https://www.blockonomics.co/api/merchant_logs"
body = {"addr": ", ".join(addresses), "transactions_only": True}
body = {"match_callback": f"https://www.blockonomics.co/api/test_callback?secret={Blockonomics._get_secret()}"}
headers = { "Authorization": "Bearer %s" % api_key }

r = requests.get(
url=url,
params=json.dumps(body),
params=body,
headers=headers
)

Expand Down

0 comments on commit d014e89

Please sign in to comment.