fibercrypto / fibercrypto/skyxcommons

[api] Start observation from address

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

Description

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

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

Errors:

* `409 Conflict` : transactions from the address are already observed.

Python implementation

```py

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

result = add_transaction_observation_from_address(address)

# if successfully stored in 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.