Update an existing event monitor given its ID.
Indicates whether the event monitor should be active (true) or inactive (false).
Event Monitor ID.
Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
1from circle.web3 import smart_contract_platform
2from circle.web3 import utils
3
4client = utils.init_smart_contract_platform_client(api_key=key, entity_secret=entitySecret)
5
6api_instance = smart_contract_platform.EventMonitorsApi(client)
7request = smart_contract_platform.UpdateEventMonitorRequest.from_dict({
8 "isEnabled": False
9})
10response = api_instance.update_event_monitor(id="401e9038-e4c3-5a77-a9fe-95fd644f4c92", update_event_monitor_request=request)
11print(response.json())
12
1{
2 "data": {
3 "event_monitor": {
4 "id": "e3c998a5-bdf1-4f3e-812f-24da238c0fff",
5 "blockchain": {},
6 "contract_address": "0x1e124d7384cd34448ea5907bd0052a79355ab5eb",
7 "event_signature": "Transfer(address indexed from, address indexed to, uint256 value)",
8 "event_signature_hash": "0xd3d3dd4b1fd3e53f94deb24e763485b4c925345c5abfa9ad529c67aa55a3b784",
9 "is_enabled": true
10 }
11 }
12}