# Hats x Farcaster [FarcasterDelegator: share FIDs onchain](https://blog.hatsprotocol.xyz/farcasterdelegator) The Hats x Farcaster intgration does not currently support Direct Casts. Direct Casts are currently a feature of Warcast but not in the protocol. To set this up you need the seed phrase from the Farcaster account and the custody address. You have to extract the wallet out of Warpcast. Since browser wallets do not allow you to import a seed phrase you have to create a new wallet to get the private key. Import the Farcaster seed phrase into a new wallet. You can export that private key into another wallet or just use the new wallet. ## herocast Now you will need to go to [herocast](https://app.herocast.xyz/) for the initial set-up. Castors will not have to use this app. herocast already has a Hats integration which makes the set-up a little easier. The Farcaster contracts are on Optimism so we will have to deploy a new Hats tree on that network. You can deploy the Hats contracts from within herocast. Go to Accounts > Shared Accounts **Still unsure where the Hats Protocol Delegator instance address comes from** - RaidGuild FID: 383235 - `0x38cd89a27b1dcd343ba07b721a4c477d96b773fa` There was a lot of switching back and forth between the new wallet for the Farcaster account and my EOA in the steps below. Unsure of the details arouond what wallet is required to perform each step. - Top Hat can be transferred later - Admin should be the person in charge of the account. In this case we used my EOA. - Deploy delegator contract - Transfer the FID into that contract - Connect to RG - Prepare for transfer - Tell delegator to receive the FID ### Select Account ![image](https://hackmd.io/_uploads/HktG7pS_C.png) ### Onchain Permissions ![image](https://hackmd.io/_uploads/r1JPXaS_R.png) ### Account Ownership ![image](https://hackmd.io/_uploads/rJFB7TBdC.png) ### Transfer Ownership ### Invite Others Give others permission to by adding them to the Caster role. ## Add A Caster to Hats Tree Goto [Caster](https://app.hatsprotocol.xyz/trees/10/132?hatId=132.1.1.1) in the Hats Tree ![image](https://hackmd.io/_uploads/Byf6Dar_0.png) - Connect Wallet - Add Wearer - Enter Wallet Address (of new wearer) - Mint Hat - Send them the Claim Frame in a Direct Cast: `https://sharedaccount.hatsprotocol.xyz/claim` `https://sharedaccount.hatsprotocol.xyz/claim/name/raidguild` This URL can be sent in a direct cast to others who have the Caster role. It should display the following frame: ![image](https://hackmd.io/_uploads/BJsR56H_C.png) Alternatively they can go to this [testing... or am I?](https://warpcast.com/spengrah.eth/0x3ba07230) cast from Spencer. First they will need to Claim: ![image](https://hackmd.io/_uploads/S1QLU2BdA.png) ### Install Cast Actions Then they will need to install the Cast Action and the Reply Action ![image](https://hackmd.io/_uploads/rkRdL3BdR.png) Once installed they can: ### Cast From ![image](https://hackmd.io/_uploads/BJIV2TH_C.png) ### Reply From - Reply - Recast - Quote - Like ![image](https://hackmd.io/_uploads/HJ7O26r_C.png)