# How to use castVoteBySig and delegateBySig function in Governor

**URL:** <https://forum.openzeppelin.com/t/how-to-use-castvotebysig-and-delegatebysig-function-in-governor/29263>\
**Category:** Contracts\
**Tags:** erc20\
**Created:** [June 1, 2022, 3:07am UTC](https://forum.openzeppelin.com/t/how-to-use-castvotebysig-and-delegatebysig-function-in-governor/29263 "2022-06-01T03:07:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hayden](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/hayden/32/15095_2.png) [@Hayden](https://forum.openzeppelin.com/u/Hayden)\
**Post date:** [June 1, 2022, 3:07am UTC](https://forum.openzeppelin.com/t/how-to-use-castvotebysig-and-delegatebysig-function-in-governor/29263/1 "2022-06-01T03:07:34Z")

</div>

Dear OpenZeppelin team,

I'm trying to build my DAO using Governor [document](https://docs.openzeppelin.com/contracts/4.x/api/governance#IGovernor), when I see 2 function castVoteBySig and delegateBySig I have a wonder:

With these two functions, it seems to be possible to build a gas-free governor application which means maybe the service provider pays all necessary gases. Would it be possible? Is this feature in development? Because I don't seem to find any useful information in the Doc or in the introduction [video](https://www.youtube.com/watch?v=Lltt6j6Hmww).

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Amxx](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/amxx/32/668_2.png) [@Amxx](https://forum.openzeppelin.com/u/Amxx)\
**Post date:** [June 2, 2022, 9:36am UTC](https://forum.openzeppelin.com/t/how-to-use-castvotebysig-and-delegatebysig-function-in-governor/29263/2 "2022-06-02T09:36:19Z")

</div>

> [@Hayden](#):
>
> With these two functions, it seems to be possible to build a gas-free governor application which means maybe the service provider pays all necessary gases. Would it be possible?

Yes!

This is supported at the contract level. We do not however provide offchain tolling/UI to do that. You'd have to come up with your own interface that gets user to produce the signatures, and relay them (with all the DOS protection needed)
