Skip to main content

useSDK() function

Example

const sdk = useSDK();

Signature:

export declare function useSDK(): ThirdwebSDK | undefined;

Returns:

ThirdwebSDK | undefined

Access the instance of the thirdweb SDK created by the ThirdwebProvider to call methods using the connected wallet on the desiredChainId.