You can think of utilities as helper functions on top of the SDK. You could implement them yourself, but weโ€™ve found that these are common tasks and so have done the legwork for you.

You can import them directly from the @dynamic-labs/sdk-react-core package, for example:

import { getAuthToken } from "@dynamic-labs/sdk-react-core";

getAuthToken: Used to get a JWT token generated by Dynamic which is stored inside of localStorage

getMinAuthToken: Used to get a minified JWT token generated by Dynamic which is stored inside of localStorage

getNetwork: Used to find the current network used by a wallet. It receives the wallet connector and returns a promise that will resolve with the network.

isZeroDevConnector: Used to type check if a wallet connector is a ZeroDev connector

isAuthenticatedWithAWallet: Used to check is the user has authenticated with a wallet

isLedgerSolanaWallet: Determine if a given wallet is connected as a Ledger Solana wallet