Skip to content

Documentation / react-auth / useFarcasterSigner

Function: useFarcasterSigner()

useFarcasterSigner(): Object

Use this hook to write to Farcaster. This hook is experimental and subject to change.

Returns

Object

getFarcasterSignerPublicKey

getFarcasterSignerPublicKey: () => Promise<Uint8Array>

Returns

Promise<Uint8Array>

requestFarcasterSignerFromWarpcast

requestFarcasterSignerFromWarpcast: () => Promise<void>

Returns

Promise<void>

signFarcasterMessage

signFarcasterMessage: (messageHash) => Promise<Uint8Array>

Parameters

messageHash: Uint8Array

Returns

Promise<Uint8Array>