How to integrate Dynamic.xyz as an external signer for Crossmint Smart Wallets
Create an API Key
http://localhost:3000
and click "Add origin".Next, check the scopes labeled wallets.create
, wallets.read
, users.create
.Check the "JWT Auth" box.Finally, create your key and save it for subsequent steps.Configure Dynamic for your API Key
Configure Chain Support in Dynamic
polygon-amoy
)Install Required Dependencies
Configure Environment Variables
Create the Provider Components
Update Your Layout
Create UI Components
Create Your Main Page
Launch and Test
useDynamicConnector
hook retrieves the primary wallet from DynamicUnderstanding Wallet Relationships
Handling JWT Authentication
useCrossmint
hookTroubleshooting Common Issues
rpc-websockets/dist/lib/client
Add this to your package.json
: