NEWTON

NEWTON


Popular tags

    Implementing the connect wallet. Can you help about connectors?

    Asked

    4 months ago

    81

    views


    0

    Hello, I am trying to implement the connect wallet : import { useConnectors } from '-react/core' function YourComponent() { const { connect, connectors } = useConnectors() return ( <div> {connectors.map((connector) => connector.available() ? ( <button key={connector.id()} onClick={() => connect(connector)}> Connect {connector.name()} </button> ) : null )} </div> ) } I feel like connectors will only give the wallet if I have it on my chrome extensions , so whats the point of connector.available() ? I am using : const connectors = getInstalledInjectedConnectors()

    This question was originally posted on StarkNet Discord

      wallet auth js java scriptdiscordcairo

    Newton

    asked

    4 months ago


    0 answers

    There are no answers for this question yet
    Want to give yours?

    Your answer

    NEWTON

    NEWTON