.env
:NEXT_PUBLIC_CDP_API_KEY
VITE_PUBLIC_ONCHAINKIT_API_KEY
PUBLIC_ONCHAINKIT_API_KEY
NEXT_PUBLIC_ONCHAINKIT_API_KEY
is set correctlychargeHandler
, also set:
getName
, as well as some hooks in your React Native app. When using these utility functions, you may need to import them directly rather than through the export file.import { getName } from '@coinbase/onchainkit/esm/identity/utils/getName.js';
rather than import { getName } from '@coinbase/onchainkit/identity;
"moduleResolution": "NodeNext"
for the best developer experience. OnchainKit supports only ES Modules and does not support CommonJS modules.