apibara / starknet-react

A collection of React providers and hooks for StarkNet
https://starknet-react.com
MIT License
364 stars 141 forks source link

How to identify dapp on connect? #424

Closed rsodre closed 6 months ago

rsodre commented 6 months ago

Hello,

I can't find anywhere on the docs and examples... How can we give a name and icon to our dapp before connect()? It always uses the current url, even on the Demo, the dapp name is starknet-react.com.

On connect, my dapp name and icon should be here:

Screenshot 2024-04-03 at 13 22 18

And after connection...

Screenshot 2024-04-03 at 13 11 44
fracek commented 6 months ago

Good question, let me ask to the wallet providers because AFAIK there is no API for it.

rsodre commented 6 months ago

I think StarknetKit can do it

fracek commented 6 months ago

I checked with argent and the icons/name come from their own database of dapps. The frontend has no control over it.

Going to close the issue since there's nothing we can do for it.