Documentation
👨‍💻 ZkNoid for developers
SDK
Frontend Context

Contexts

AppChainClientContext

Can be used to access the game app-chain

Usage
import { AppChainClientContext } from "@zknoid/contexts";
 
// arkanoidConfig is your game config imported from config.ts
const client = useContext<
        ClientAppChain<typeof arkanoidConfig.runtimeModules> | undefined
    >(AppChainClientContext);
Returns
ClientAppChain<any>