# Can we deploy predicates on chain?

**URL:** <https://forum.fuel.network/t/can-we-deploy-predicates-on-chain/1649>\
**Category:** Sway\
**Created:** [January 25, 2023, 12:17am UTC](https://forum.fuel.network/t/can-we-deploy-predicates-on-chain/1649 "2023-01-25T00:17:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mohammadfawaz](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mohammadfawaz](https://forum.fuel.network/u/mohammadfawaz)\
**Post date:** [January 26, 2023, 9:15am UTC](https://forum.fuel.network/t/can-we-deploy-predicates-on-chain/1649/2 "2023-01-26T09:15:45Z")

</div>

The following article describes predicates really well: [The Power of Predicates: A Purpose-Built Mechanism for Transaction Authorization | by Ryan Sproule | Blockchain Capital Blog | Jan, 2023 | Medium](https://medium.com/blockchain-capital-blog/the-power-of-predicates-73f874cfa9a5)

To quote the article:  
“Unlike contract code, predicate code is never “deployed” to the chain. To create a predicate, someone simply writes the code for the predicate and then uses a compiler to generate a code hash, there is no interaction with the chain. Since the hash is both deterministic and collision-resistant, the coins locked in this address can only ever be spent if the predicate conditions are met. To spend a predicate, someone would provide the predicate bytecode (which must match the hash/address that the coins are behind) and a transaction that has the predicate resolve to true.”

---

_[View the full topic](https://forum.fuel.network/t/can-we-deploy-predicates-on-chain/1649)._
