Skip to content

[api] Stop observation from address #14

@olemis

Description

@olemis

[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

@api.route('/transactions/history/from/<string:address>/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 ""

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions