# Trying to filter Abi for a specific function

**URL:** <https://forum.fuel.network/t/trying-to-filter-abi-for-a-specific-function/6897>\
**Category:** General\
**Created:** [October 22, 2024, 3:34pm UTC](https://forum.fuel.network/t/trying-to-filter-abi-for-a-specific-function/6897 "2024-10-22T15:34:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dharmikjethva30](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/dharmikjethva30/32/2881_2.png) [@dharmikjethva30](https://forum.fuel.network/u/dharmikjethva30)\
**Post date:** [October 22, 2024, 3:34pm UTC](https://forum.fuel.network/t/trying-to-filter-abi-for-a-specific-function/6897/1 "2024-10-22T15:34:35Z")

</div>

We are trying to make generic transactions possible on the back end. As we cannot fetch abi directly from the contract ID, so we also need the contract’s abi as Input. Is it possible to filter an abi just for a single particular function, as this would reduce the functionality’s payload? I was able to do it before the 0.94 migration but after that the abi structure changed and my script didn’t work anymore. Now the abi structure is totally different and it has becoming difficult to do the same.

---

<div class="post-metadata">

**Author:** ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)\
**Post date:** [October 23, 2024, 6:26am UTC](https://forum.fuel.network/t/trying-to-filter-abi-for-a-specific-function/6897/2 "2024-10-23T06:26:11Z")

</div>

I wonder what issue you are facing with the new ABI. Yes, the older script might not be valid as the ABI structure has changed, but you should still be able to do it after updating the script.

[This](https://docs.fuel.network/docs/fuels-rs/abigen/the-json-abi-file/#the-json-abi-file) is how the new ABI structure looks like. You can filter out the function you need from this abi
