useStarkName

Hook for fetching Stark name for address.

This hook fetches the stark name of the specified address. It defaults to the starknet.id contract but a different contract can be targetted by specifying its contract address If address does not have a stark name, it will return "stark"

Examples

This example shows how to get the stark name of an address using the default Starknet.id contract

This example shows how to get the stark name of an address specifying a different contract address