Summary

The useDynamicEvents hook can be used to subscribe to events emitted by Dynamic.

Usage

Available function and states

EventArgumentsDescription
walletAddednewWallet: WalletCalled whenever a wallet is added to the user profile

Example

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

const useDynamicEventsExample = () => {
  useDynamicEvents("walletAdded", async (newWallet) => {
    console.log(newWallet);
  });
};