If you chose to prompt the user on sign in during the configuration step, the user is prompted to approve delegation for your application when they next sign in.
You can use the InitDelegationProcess method to open the delegation modal UI:
// Open the delegation modal for all eligible walletsawait DynamicSDK.Instance.Wallets.InitDelegationProcess();// Or specify which wallets to delegateawait DynamicSDK.Instance.Wallets.InitDelegationProcess( walletIds: new List<string> { "wallet-id-1", "wallet-id-2" });
// Check if wallet is eligible for delegationbool eligible = DynamicSDK.Instance.Wallets.Waas.Delegation.IsWalletEligibleForDelegation(wallet);// Get status for a specific walletvar status = DynamicSDK.Instance.Wallets.Waas.Delegation.GetDelegationStatusForWallet(wallet.Id);Debug.Log($"Status: {status}"); // delegated, pending, or denied
// Dismiss the prompt for the current session only (resets on logout/restart)await DynamicSDK.Instance.Wallets.Waas.Delegation.DismissDelegationPrompt();// Or dismiss for a specific walletawait DynamicSDK.Instance.Wallets.Waas.Delegation.DismissDelegationPrompt(walletId: "wallet-id");
What's next?
Learn how to properly receive the delegation materials on your server