Docs
Connectors
Injected

Injected connector

We provide support for the two popular Wallet extensions on Starknet, Argent X and Braavos.

Argent X

ArgentX is the first open-source wallet on StarkNet powered by native account abstraction. Available as a browser extension across different browsers’ web stores, Argent X helps you create, manage, and connect accounts to decentralized applications built on StarkNet.

Braavos

Braavos Smart Wallet for StarkNet makes self-custodial asset management easier than ever! With Braavos, you can securely access decentralized applications on StarkNet and manage your assets from within your browser.

Establishing a Connection

To enable the Injected connector, you need to first import the InjectedConnector from starknetkit:

import { connect, disconnect } from 'starknetkit';
import { InjectedConnector } from "starknetkit/injected"

After importing, you need to call the connect method, passing in your Argent X/Braavos connector:

const connection = await connect({
    connectors: [
        new InjectedConnector({
            options: {id: "argentX"}
        }),
        new InjectedConnector({
          options: {id: "braavos"}
        })
    ]
})

Connection Params

The Injected Connector takes a single param options used to specify the id of the connector to be used.

new InjectedConnector({
    options: {id: "argentX"},
    options: {id: "braavos"}
})