In this guide, we'll showcase how to get the most of the SDK in a real-life project
While this guide is a work-in-progress, we have a full-fledged react-based/wagmi web-app that showcases how to make use of the SDK. You can find it here: midas-starter
SDK instantiation
// ContextexportinterfaceSDKContextData { sdk:MidasSdk; address:string;disconnect: () =>void; currentChain:Chain& { unsupported?:boolean|undefined; }; chains:Chain[];}exportconstSDKContext=createContext<SDKContextData|undefined>(undefined);// HookexportfunctionuseSDK() {constcontext=useContext(SDKContext);if (context ===undefined) {thrownewError(`useSDK must be used within a SDKProvider`); }return context;}...const { sdk,address,currentChain } =useSDK();