# OZ monitor - how to access struct function input data?

**URL:** <https://forum.openzeppelin.com/t/oz-monitor-how-to-access-struct-function-input-data/41100>\
**Category:** Defender\
**Tags:** defender\
**Created:** [July 18, 2024, 11:14am UTC](https://forum.openzeppelin.com/t/oz-monitor-how-to-access-struct-function-input-data/41100 "2024-07-18T11:14:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ratio](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/ratio/32/10860_2.png) [@ratio](https://forum.openzeppelin.com/u/ratio)\
**Post date:** [July 18, 2024, 11:14am UTC](https://forum.openzeppelin.com/t/oz-monitor-how-to-access-struct-function-input-data/41100/1 "2024-07-18T11:14:08Z")

</div>

I was trying to get the information about **how to access function parameters that are part of a struct** and filter them from your docs:

> **[Monitor - OpenZeppelin Docs](https://docs.openzeppelin.com/defender/v2/module/monitor.html#events-and-functions)**

Unfortunately, it does not tell me, how to access struct parameters specifically.

**📝Details**

 ![rarible directPurchase input data](https://us1.discourse-cdn.com/flex022/uploads/zeppelin/original/3X/7/b/7ba04f7503cd431497b1e8dff88630d342b6f347.png)

I want to use OpenZeppelin Defender 2.0 like this:

1. a **Monitor** filters `directPurchase()` events of a smart contract by input data direct.sellOrderMaker
2. this triggers an **Action**
3. the action gets the function input data from the monitor (is this possible?) and then **executes** a validatePurchase() smart contract function with some parameters fetched by the monitor on my smart contract (the maker in 1.)

if this is NOT possible, I might try my luck with Gelato's web3 functions, also fine.
