fibercrypto / fibercrypto/skyxcommons

[api] Stop observation from address

Open
#14 0 comments 0 reactions 1 assignee Claimed by @AntiD2ta View on GitHub
Dominant language
No language data
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

[DELETE] /api/transactions/history/from/{address}/observation

Should stop observation of the transactions that transfer fund from the address . Should affect result of the [GET] /api/transactions/history/from/{address} .

Errors:
■ `204 No content` : transactions from the address are not observed.

Python implementation

```py

@api.route('/transactions/history/from//observation', methods=['DELETE'])
def del_history_from_address(address):
"""
Stops observation of the transactions that transfer fund from the address
"""

result = delete_transaction_observation_from_address(address)

# if successfully deleted from observation list, return a plain 200
if "error" in result:
return make_response(jsonify(build_error(result["error"])), result["status"])
else:
return ""

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.