Skip to main content

Using starknet-react

yarn add @cartridge/connector @cartridge/controller @starknet-react/core starknet
import ControllerConnector from "@cartridge/connector";
const connector = new CartridgeConnector()

...
<StarknetProvider autoConnect connectors={[connector]}>
...
</StarknetProvider>
...

Session creation

const connector = new CartridgeConnector([{
target: "0xdead",
method: "have_turn",
}])