Skip to content

Documentation / react-auth / useExperimentalFarcasterSigner

Function: useExperimentalFarcasterSigner()

useExperimentalFarcasterSigner(): Object

Use this hook to write to Farcaster. This is an experimental feature.

Returns

Object

followUser

followUser: (opts) => Promise<Object>

Parameters

opts: Object

opts.fid: number

Returns

Promise<Object>

hash

hash: string

likeCast

likeCast: (opts) => Promise<Object>

Parameters

opts: Object

opts.castAuthorFid: number

opts.castHash: string

Returns

Promise<Object>

hash

hash: string

recastCast

recastCast: (opts) => Promise<Object>

Parameters

opts: Object

opts.castAuthorFid: number

opts.castHash: string

Returns

Promise<Object>

hash

hash: string

removeCast

removeCast: (opts) => Promise<Object>

Parameters

opts: Object

opts.castHash: string

Returns

Promise<Object>

hash

hash: string

requestFarcasterSigner

requestFarcasterSigner: () => Promise<void>

Returns

Promise<void>

submitCast

submitCast: (opts) => Promise<Object>

Parameters

opts: Object

opts.embeds?: Object[]

opts.mentions?: number[]

opts.mentionsPositions?: number[]

opts.parentCastId?: Object

opts.parentCastId.fid: number

opts.parentCastId.hash: string

opts.parentUrl?: string

opts.text: string

Returns

Promise<Object>

hash

hash: string

unfollowUser

unfollowUser: (opts) => Promise<Object>

Parameters

opts: Object

opts.fid: number

Returns

Promise<Object>

hash

hash: string