💻
ZK3 SDK
  • Installation
  • ZK3 Client
  • useIdentity
  • useLensLogin
  • useLensUser
  • useSetDispatcher
  • usePostToLens
  • useSignBalanceOf
  • useSignProofOfTwitter
Powered by GitBook
On this page

usePostToLens

import { usePostToLens } from 'zk3-sdk'

const { mutateAsync: postToLens } = usePostToLens()

const handlePostToLens = () => {
    const args = {
        content: 'postContent', // as string
        selectedProof: circle // as circle type
    }
    // if you pass in a circle that the Identity from useIdentity 
    // is not a part of the function WILL revert
    await postToLens(args)
}
PrevioususeSetDispatcherNextuseSignBalanceOf

Last updated 2 years ago