Skip to main content

Using Unlock Protocol's contract with Viem

Unlock's smart contracts are no different from any other contract and you should be able to use viem with both the Unlock contract (to deploy new locks) and the Public Lock membership contracts.

To get the ABI, you can use @unlock-protocol/contracts and @unlock-protocol/networks to get the Unlock contracts addresses.