Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions blockapi/v2/api/subscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def _yield_staking_rewards(self, address: str) -> Iterable[Decimal]:

def _post(self, request_method: str, body):
headers = {'Content-Type': 'application/json'}
if self.api_key:
headers['X-API-Key'] = self.api_key

return self.post(request_method, body=body, headers=headers)

def _opt_raise_on_other_error(self, response: Response) -> None:
Expand Down
Loading