@dynamic-labs-sdk/client 1.31.2 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/{apiClient-d2qJyIvx.native.esm.js → apiClient-Bwd6cllS.native.esm.js} +2 -2
  2. package/dist/{apiClient-d2qJyIvx.native.esm.js.map → apiClient-Bwd6cllS.native.esm.js.map} +1 -1
  3. package/dist/core.cjs +6 -76
  4. package/dist/core.cjs.map +1 -1
  5. package/dist/core.esm.js +7 -77
  6. package/dist/core.esm.js.map +1 -1
  7. package/dist/core.native.esm.js +7 -77
  8. package/dist/core.native.esm.js.map +1 -1
  9. package/dist/errors/AmbiguousWalletChainError.d.ts +7 -9
  10. package/dist/errors/AmbiguousWalletChainError.d.ts.map +1 -1
  11. package/dist/errors/ConnectionUriHandlerMissingError.d.ts +10 -12
  12. package/dist/errors/ConnectionUriHandlerMissingError.d.ts.map +1 -1
  13. package/dist/errors/NoConnectionOptionAvailableError.d.ts +2 -2
  14. package/dist/errors/WalletBrowserRedirectHandlerMissingError.d.ts +39 -0
  15. package/dist/errors/WalletBrowserRedirectHandlerMissingError.d.ts.map +1 -0
  16. package/dist/errors/WalletOptionNotFoundError.d.ts +3 -3
  17. package/dist/exports/index.d.ts +5 -0
  18. package/dist/exports/index.d.ts.map +1 -1
  19. package/dist/{getNetworkProviderFromNetworkId-DueBnAl6.cjs → getNetworkProviderFromNetworkId-5UBZwUg2.cjs} +78 -2
  20. package/dist/getNetworkProviderFromNetworkId-5UBZwUg2.cjs.map +1 -0
  21. package/dist/{getNetworkProviderFromNetworkId-DF9kPibD.native.esm.js → getNetworkProviderFromNetworkId-DSsGkava.native.esm.js} +79 -9
  22. package/dist/getNetworkProviderFromNetworkId-DSsGkava.native.esm.js.map +1 -0
  23. package/dist/{getNetworkProviderFromNetworkId-D9nx6Od5.esm.js → getNetworkProviderFromNetworkId-TTqmAiJh.esm.js} +78 -8
  24. package/dist/getNetworkProviderFromNetworkId-TTqmAiJh.esm.js.map +1 -0
  25. package/dist/{getSignedSessionId-5q4uyZsv.native.esm.js → getSignedSessionId-BkYhH1zc.native.esm.js} +3 -3
  26. package/dist/{getSignedSessionId-5q4uyZsv.native.esm.js.map → getSignedSessionId-BkYhH1zc.native.esm.js.map} +1 -1
  27. package/dist/{getSignedSessionId-B5oxmSTs.cjs → getSignedSessionId-DBUnRGjt.cjs} +3 -3
  28. package/dist/{getSignedSessionId-B5oxmSTs.cjs.map → getSignedSessionId-DBUnRGjt.cjs.map} +1 -1
  29. package/dist/{getSignedSessionId-BKfQycNo.esm.js → getSignedSessionId-DeeDyino.esm.js} +3 -3
  30. package/dist/{getSignedSessionId-BKfQycNo.esm.js.map → getSignedSessionId-DeeDyino.esm.js.map} +1 -1
  31. package/dist/{getVerifiedCredentialForWalletAccount-Bx0HlvfW.cjs → getVerifiedCredentialForWalletAccount-BSxiaaVp.cjs} +2 -2
  32. package/dist/{getVerifiedCredentialForWalletAccount-Bx0HlvfW.cjs.map → getVerifiedCredentialForWalletAccount-BSxiaaVp.cjs.map} +1 -1
  33. package/dist/{getVerifiedCredentialForWalletAccount-_3MExyld.esm.js → getVerifiedCredentialForWalletAccount-C--Dza_K.esm.js} +2 -2
  34. package/dist/{getVerifiedCredentialForWalletAccount-_3MExyld.esm.js.map → getVerifiedCredentialForWalletAccount-C--Dza_K.esm.js.map} +1 -1
  35. package/dist/highLevelFunctions/connectWalletOption/connectWalletOption.d.ts +55 -0
  36. package/dist/highLevelFunctions/connectWalletOption/connectWalletOption.d.ts.map +1 -0
  37. package/dist/highLevelFunctions/connectWalletOption/connectWalletOption.types.d.ts +46 -0
  38. package/dist/highLevelFunctions/connectWalletOption/connectWalletOption.types.d.ts.map +1 -0
  39. package/dist/highLevelFunctions/connectWalletOption/index.d.ts +2 -0
  40. package/dist/highLevelFunctions/connectWalletOption/index.d.ts.map +1 -0
  41. package/dist/index.cjs +562 -188
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/index.esm.js +562 -191
  44. package/dist/index.esm.js.map +1 -1
  45. package/dist/index.native.esm.js +562 -191
  46. package/dist/index.native.esm.js.map +1 -1
  47. package/dist/{isMfaRequiredForAction-DnKzPDZk.cjs → isMfaRequiredForAction-62zh3W-2.cjs} +2 -2
  48. package/dist/{isMfaRequiredForAction-DnKzPDZk.cjs.map → isMfaRequiredForAction-62zh3W-2.cjs.map} +1 -1
  49. package/dist/{isMfaRequiredForAction-BDmY2_Sj.esm.js → isMfaRequiredForAction-BPEXPqSt.esm.js} +2 -2
  50. package/dist/{isMfaRequiredForAction-BDmY2_Sj.esm.js.map → isMfaRequiredForAction-BPEXPqSt.esm.js.map} +1 -1
  51. package/dist/{isMfaRequiredForAction-BrRCSvEX.native.esm.js → isMfaRequiredForAction-DfrEFvU2.native.esm.js} +2 -2
  52. package/dist/{isMfaRequiredForAction-BrRCSvEX.native.esm.js.map → isMfaRequiredForAction-DfrEFvU2.native.esm.js.map} +1 -1
  53. package/dist/{isUserOnboardingComplete-BfMMBtkF.native.esm.js → isUserOnboardingComplete-BWrCHXXO.native.esm.js} +3 -3
  54. package/dist/{isUserOnboardingComplete-BfMMBtkF.native.esm.js.map → isUserOnboardingComplete-BWrCHXXO.native.esm.js.map} +1 -1
  55. package/dist/{isUserOnboardingComplete-D1-QluDm.esm.js → isUserOnboardingComplete-Dmck83_2.esm.js} +3 -3
  56. package/dist/{isUserOnboardingComplete-D1-QluDm.esm.js.map → isUserOnboardingComplete-Dmck83_2.esm.js.map} +1 -1
  57. package/dist/{isUserOnboardingComplete-7GzNYU2g.cjs → isUserOnboardingComplete-DtxIznZD.cjs} +3 -3
  58. package/dist/{isUserOnboardingComplete-7GzNYU2g.cjs.map → isUserOnboardingComplete-DtxIznZD.cjs.map} +1 -1
  59. package/dist/{logoutWithReason-3UICYir7.native.esm.js → logoutWithReason-DIc7cC6T.native.esm.js} +2 -2
  60. package/dist/{logoutWithReason-3UICYir7.native.esm.js.map → logoutWithReason-DIc7cC6T.native.esm.js.map} +1 -1
  61. package/dist/{logoutWithReason-CHyuBHdx.esm.js → logoutWithReason-x8mE7EAy.esm.js} +2 -2
  62. package/dist/{logoutWithReason-CHyuBHdx.esm.js.map → logoutWithReason-x8mE7EAy.esm.js.map} +1 -1
  63. package/dist/{logoutWithReason-C_T7KddM.cjs → logoutWithReason-yDqQ0UIt.cjs} +2 -2
  64. package/dist/{logoutWithReason-C_T7KddM.cjs.map → logoutWithReason-yDqQ0UIt.cjs.map} +1 -1
  65. package/dist/{migrateFromFireblocks-DJt9bktR.native.esm.js → migrateFromFireblocks-BUhWQCqm.native.esm.js} +2 -2
  66. package/dist/{migrateFromFireblocks-DJt9bktR.native.esm.js.map → migrateFromFireblocks-BUhWQCqm.native.esm.js.map} +1 -1
  67. package/dist/{migrateFromFireblocks-BMO3u6rO.esm.js → migrateFromFireblocks-BapjEhra.esm.js} +2 -2
  68. package/dist/{migrateFromFireblocks-BMO3u6rO.esm.js.map → migrateFromFireblocks-BapjEhra.esm.js.map} +1 -1
  69. package/dist/{migrateFromFireblocks-C9Kuke5V.cjs → migrateFromFireblocks-qYPrnWF8.cjs} +2 -2
  70. package/dist/{migrateFromFireblocks-C9Kuke5V.cjs.map → migrateFromFireblocks-qYPrnWF8.cjs.map} +1 -1
  71. package/dist/modules/wallets/connectWithUriConnectionOption/connectWithUriConnectionOption.d.ts +6 -5
  72. package/dist/modules/wallets/connectWithUriConnectionOption/connectWithUriConnectionOption.d.ts.map +1 -1
  73. package/dist/modules/wallets/redirectToInAppBrowser/redirectToInAppBrowser.d.ts +3 -3
  74. package/dist/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.d.ts +2 -2
  75. package/dist/modules/wallets/walletConnectionHandlers.types.d.ts +62 -0
  76. package/dist/modules/wallets/walletConnectionHandlers.types.d.ts.map +1 -0
  77. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  78. package/dist/utils/getCurrentPageUrl/getCurrentPageUrl.d.ts +15 -0
  79. package/dist/utils/getCurrentPageUrl/getCurrentPageUrl.d.ts.map +1 -0
  80. package/dist/utils/getCurrentPageUrl/index.d.ts +2 -0
  81. package/dist/utils/getCurrentPageUrl/index.d.ts.map +1 -0
  82. package/dist/{waas-9QajYGeK.native.esm.js → waas-CyUrvkQr.native.esm.js} +4 -4
  83. package/dist/{waas-9QajYGeK.native.esm.js.map → waas-CyUrvkQr.native.esm.js.map} +1 -1
  84. package/dist/{waas-T_dHXyI9.esm.js → waas-DzcYsWU8.esm.js} +4 -4
  85. package/dist/{waas-T_dHXyI9.esm.js.map → waas-DzcYsWU8.esm.js.map} +1 -1
  86. package/dist/{waas-Bxsd0-HG.cjs → waas-WID2Fy_N.cjs} +4 -4
  87. package/dist/{waas-Bxsd0-HG.cjs.map → waas-WID2Fy_N.cjs.map} +1 -1
  88. package/dist/waas.cjs +4 -4
  89. package/dist/waas.esm.js +4 -4
  90. package/dist/waas.native.esm.js +4 -4
  91. package/dist/waasCore.cjs +5 -5
  92. package/dist/waasCore.esm.js +5 -5
  93. package/dist/waasCore.native.esm.js +5 -5
  94. package/package.json +2 -2
  95. package/dist/getNetworkProviderFromNetworkId-D9nx6Od5.esm.js.map +0 -1
  96. package/dist/getNetworkProviderFromNetworkId-DF9kPibD.native.esm.js.map +0 -1
  97. package/dist/getNetworkProviderFromNetworkId-DueBnAl6.cjs.map +0 -1
  98. package/dist/modules/wallets/connectWallet.types.d.ts +0 -35
  99. package/dist/modules/wallets/connectWallet.types.d.ts.map +0 -1
@@ -1,15 +1,15 @@
1
- import { $ as NONCE_POOL_SIZE, A as onEvent, B as splitWalletProviderKey, D as getWalletProviderRegistry, E as WalletProviderPriority, Et as version, H as isUserMissingMfaAuth, I as getChainFromVerifiedCredentialChain, J as getNonce, L as CHAINS_INFO_MAP, N as getWalletAccounts, O as emitEvent, Q as createLocalStorageAdapter, R as formatWalletAccountId, St as BaseError, T as getWalletProviders, Tt as name, X as updateNoncePoolStorage, Y as fetchAndStoreNonces, Z as createStorageKeySchema, _t as getPlatform, a as instrumentFunction, at as InvalidExternalAuthError, c as getUserAgent, d as updateAuthFromVerifyResponse, et as UnauthorizedError, f as upsertElevatedAccessToken, ft as isCookieEnabled, g as checkAndRaiseWalletAccountsChangedEvent, gt as randomString, h as InvalidParamError, ht as getElevatedAccessToken, i as __refreshAuth_wrapped, it as LinkCredentialError, j as onceEvent, k as offEvent, l as getOperatingSystem, lt as DYNAMIC_ICONIC_SPRITE_URL, m as decodeJwt, mt as ValueMustBeDefinedError, n as NoWalletProviderFoundError, nt as MfaRateLimitedError, o as scrubParameters, ot as APIError, p as parseElevatedAccessToken, pt as assertDefined, r as createApiClient, rt as MfaInvalidOtpError, s as DEFAULT_PII_FIELDS, t as getWalletProviderFromWalletAccount, tt as SandboxMaximumThresholdReachedError, u as extractSessionId, ut as SDK_API_CORE_VERSION, v as initializeWaasClientsForEagerRecovery, vt as getDefaultClient, wt as TokenScope, xt as getCore, yt as setDefaultClient, z as normalizeAddress } from "./apiClient-d2qJyIvx.native.esm.js";
2
- import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-DJt9bktR.native.esm.js";
3
- import { Q as WaasChainEnum } from "./waas-9QajYGeK.native.esm.js";
4
- import { A as createEventEmitter, B as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, C as getKeychainIndexedDBName, D as assertSafeNavigationUrl, E as createKeychainService, F as createAppForegroundSubscriber, G as createStorage, H as getBuffer, I as FETCH_PROJECT_SETTINGS_TRACKER_KEY, L as GENERATE_SESSION_KEYS_TRACKER_KEY, N as CannotTrackError, P as createDeferredPromise, R as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, S as MergeAccountsConfirmationError, T as assertSafeDeeplinkUrl, U as subscribeWithSelector, V as isServerSideRendering, W as isEqualShallow, _ as getAppMetadata, a as removeUnverifiedWalletAccount, b as WalletAlreadyLinkedToAnotherUserError, c as reconcileWalletAccountsAgainstClient, d as createVisit, f as getNetworkProviderBuilderRegistry, g as isCaptchaRequired, h as consumeCaptchaToken, i as verifyMessageSignatureOwnership, j as createCrossTabBroadcast, k as createLogger, l as updateWalletProviderKeysForVerifiedCredentials, m as __setCaptchaToken_wrapped, o as createSignInMessageStatement, p as hasExtension, r as getNetworksData, s as formatSignInMessage, t as getNetworkProviderFromNetworkId, u as setUnverifiedWalletAccounts, v as MethodNotImplementedError, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-DF9kPibD.native.esm.js";
5
- import { a as retryOnFail, i as isSignedIn, n as generateSessionKeys, o as getVerifiedCredentialForWalletAccount, r as fetchProjectSettings, s as getWalletProviderByKey, t as __logoutWithReason_wrapped } from "./logoutWithReason-3UICYir7.native.esm.js";
6
- import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-BrRCSvEX.native.esm.js";
7
- import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-BfMMBtkF.native.esm.js";
1
+ import { $ as NONCE_POOL_SIZE, A as onEvent, B as splitWalletProviderKey, D as getWalletProviderRegistry, E as WalletProviderPriority, Et as version, H as isUserMissingMfaAuth, I as getChainFromVerifiedCredentialChain, J as getNonce, L as CHAINS_INFO_MAP, N as getWalletAccounts, O as emitEvent, Q as createLocalStorageAdapter, R as formatWalletAccountId, St as BaseError, T as getWalletProviders, Tt as name, X as updateNoncePoolStorage, Y as fetchAndStoreNonces, Z as createStorageKeySchema, _t as getPlatform, a as instrumentFunction, at as InvalidExternalAuthError, c as getUserAgent, d as updateAuthFromVerifyResponse, et as UnauthorizedError, f as upsertElevatedAccessToken, ft as isCookieEnabled, g as checkAndRaiseWalletAccountsChangedEvent, gt as randomString, h as InvalidParamError, ht as getElevatedAccessToken, i as __refreshAuth_wrapped, it as LinkCredentialError, j as onceEvent, k as offEvent, l as getOperatingSystem, lt as DYNAMIC_ICONIC_SPRITE_URL, m as decodeJwt, mt as ValueMustBeDefinedError, n as NoWalletProviderFoundError, nt as MfaRateLimitedError, o as scrubParameters, ot as APIError, p as parseElevatedAccessToken, pt as assertDefined, r as createApiClient, rt as MfaInvalidOtpError, s as DEFAULT_PII_FIELDS, t as getWalletProviderFromWalletAccount, tt as SandboxMaximumThresholdReachedError, u as extractSessionId, ut as SDK_API_CORE_VERSION, v as initializeWaasClientsForEagerRecovery, vt as getDefaultClient, wt as TokenScope, xt as getCore, yt as setDefaultClient, z as normalizeAddress } from "./apiClient-Bwd6cllS.native.esm.js";
2
+ import { a as TransactionBroadcastError, i as NotWaasWalletAccountError } from "./migrateFromFireblocks-BUhWQCqm.native.esm.js";
3
+ import { Q as WaasChainEnum } from "./waas-CyUrvkQr.native.esm.js";
4
+ import { A as createLogger, B as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, C as MergeAccountsConfirmationError, D as createKeychainService, E as assertSafeDeeplinkUrl, F as createDeferredPromise, G as isEqualShallow, H as isServerSideRendering, I as createAppForegroundSubscriber, K as createStorage, L as FETCH_PROJECT_SETTINGS_TRACKER_KEY, M as createCrossTabBroadcast, O as assertSafeNavigationUrl, P as CannotTrackError, R as GENERATE_SESSION_KEYS_TRACKER_KEY, S as NoNetworkProvidersError, T as createRealtimeService, U as getBuffer, V as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY, W as subscribeWithSelector, _ as isCaptchaRequired, a as verifyMessageSignatureOwnership, b as WalletScreeningBlockedError, c as formatSignInMessage, d as setUnverifiedWalletAccounts, f as createVisit, g as consumeCaptchaToken, h as __setCaptchaToken_wrapped, i as getUriConnectionStarterRegistry, j as createEventEmitter, l as reconcileWalletAccountsAgainstClient, m as hasExtension, o as removeUnverifiedWalletAccount, p as getNetworkProviderBuilderRegistry, r as getNetworksData, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as updateWalletProviderKeysForVerifiedCredentials, v as getAppMetadata, w as getKeychainIndexedDBName, x as WalletAlreadyLinkedToAnotherUserError, y as MethodNotImplementedError, z as INITIALIZE_STORAGE_SYNC_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-DSsGkava.native.esm.js";
5
+ import { a as retryOnFail, i as isSignedIn, n as generateSessionKeys, o as getVerifiedCredentialForWalletAccount, r as fetchProjectSettings, s as getWalletProviderByKey, t as __logoutWithReason_wrapped } from "./logoutWithReason-DIc7cC6T.native.esm.js";
6
+ import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-DfrEFvU2.native.esm.js";
7
+ import { a as WaasRbacStaleRetryUnsafeError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasOnboardingIncompleteError, r as isDeviceRegistrationRequired, s as WaasLoadFailedError, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-BWrCHXXO.native.esm.js";
8
8
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
9
9
  import { AuthModeEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ChainEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction as MFAAction$1, MfaBackupCodeAcknowledgement, ProviderEnum as ProviderEnum$1, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
10
10
  import * as z from "zod/mini";
11
11
  import { Linking } from "react-native";
12
- import { EventEmitter } from "eventemitter3";
12
+ import { EventEmitter as EventEmitter$1 } from "eventemitter3";
13
13
  import { Passkey } from "react-native-passkey";
14
14
 
15
15
  //#region src/modules/state/raiseStateEvents/events.ts
@@ -632,7 +632,7 @@ const createAsyncTrack = () => {
632
632
  * This ensures no process is missed (as it would throw when tracked on a different node tick).
633
633
  */
634
634
  let isTrackEnabled = true;
635
- const eventEmitter = new EventEmitter();
635
+ const eventEmitter = new EventEmitter$1();
636
636
  const allSettledPromise = createDeferredPromise();
637
637
  const tracker = /* @__PURE__ */ new Map();
638
638
  /**
@@ -1288,7 +1288,7 @@ const __createDynamicClient_wrapped = instrumentFunction({
1288
1288
  //#region src/errors/AmbiguousWalletChainError.ts
1289
1289
  /**
1290
1290
  * Thrown when a wallet can be connected on more than one of the client's
1291
- * enabled chains and no chain was passed to `connectWallet`.
1291
+ * enabled chains and no chain was passed to `connectWalletOption`.
1292
1292
  *
1293
1293
  * Multi-chain wallets such as MetaMask or Phantom connect to a different
1294
1294
  * account per chain, so the chain has to be an explicit choice rather than one
@@ -1296,15 +1296,13 @@ const __createDynamicClient_wrapped = instrumentFunction({
1296
1296
  *
1297
1297
  * @example
1298
1298
  * ```ts
1299
- * try {
1300
- * await connectWallet({ walletKey: 'phantom' });
1301
- * } catch (error) {
1302
- * if (error instanceof AmbiguousWalletChainError) {
1303
- * await connectWallet({ chain: 'SOL', walletKey: 'phantom' });
1304
- * }
1305
- * }
1299
+ * // Throws, since Phantom connects on both SOL and EVM
1300
+ * await connectWalletOption({ walletKey: 'phantom' });
1301
+ *
1302
+ * // Connects the wallet's Solana account
1303
+ * await connectWalletOption({ chain: 'SOL', walletKey: 'phantom' });
1306
1304
  * ```
1307
- * @see connectWallet
1305
+ * @see connectWalletOption
1308
1306
  * @see getWalletOptionsCatalogue
1309
1307
  */
1310
1308
  var AmbiguousWalletChainError = class extends BaseError {
@@ -1482,6 +1480,48 @@ var CoinbaseTravelRuleRequiredError = class extends BaseError {
1482
1480
  }
1483
1481
  };
1484
1482
 
1483
+ //#endregion
1484
+ //#region src/errors/ConnectionUriHandlerMissingError.ts
1485
+ /**
1486
+ * Thrown when the only connection path for a wallet is a URI pairing and no
1487
+ * `onConnectionUri` handler was passed to `connectWalletOption`.
1488
+ *
1489
+ * The pairing URI has to reach the user — as a QR code on desktop, or by opening
1490
+ * the wallet's deeplink on mobile — for the wallet to be able to
1491
+ * approve the connection.
1492
+ *
1493
+ * @example
1494
+ * ```ts
1495
+ * // Throws, since the wallet can only be reached through a URI pairing
1496
+ * await connectWalletOption({ walletKey: 'trust' });
1497
+ *
1498
+ * // Connects, once the user approves the pairing
1499
+ * await connectWalletOption({
1500
+ * onConnectionUri: ({ uri }) => renderQrCode(uri),
1501
+ * walletKey: 'trust',
1502
+ * });
1503
+ * ```
1504
+ * @see connectWalletOption
1505
+ * @see ConnectionUriHandlerParams
1506
+ */
1507
+ var ConnectionUriHandlerMissingError = class extends BaseError {
1508
+ constructor({ chain, type, walletKey }) {
1509
+ super({
1510
+ cause: null,
1511
+ code: "connection_uri_handler_missing",
1512
+ docsUrl: null,
1513
+ metaMessages: [
1514
+ `Wallet key: ${walletKey}`,
1515
+ `Chain: ${chain}`,
1516
+ `URI connection type: ${type}`,
1517
+ "Pass onConnectionUri to render the pairing URI it hands you as a QR code, or to open it as a link on mobile."
1518
+ ],
1519
+ name: "ConnectionUriHandlerMissingError",
1520
+ shortMessage: `Connecting to ${walletKey} requires a URI pairing, so the onConnectionUri param is required.`
1521
+ });
1522
+ }
1523
+ };
1524
+
1485
1525
  //#endregion
1486
1526
  //#region src/errors/DeeplinkConnectAndVerifyUnsupportedError.ts
1487
1527
  var DeeplinkConnectAndVerifyUnsupportedError = class extends BaseError {
@@ -1736,14 +1776,14 @@ var NoAddressFoundError = class extends BaseError {
1736
1776
  * @example
1737
1777
  * ```ts
1738
1778
  * try {
1739
- * await connectWallet({ walletKey: 'rainbow' });
1779
+ * await connectWalletOption({ walletKey: 'rainbow' });
1740
1780
  * } catch (error) {
1741
1781
  * if (error instanceof NoConnectionOptionAvailableError) {
1742
1782
  * promptWalletInstall(error.installationUrls);
1743
1783
  * }
1744
1784
  * }
1745
1785
  * ```
1746
- * @see connectWallet
1786
+ * @see connectWalletOption
1747
1787
  * @see getWalletOptionsCatalogue
1748
1788
  */
1749
1789
  var NoConnectionOptionAvailableError = class extends BaseError {
@@ -1965,10 +2005,57 @@ var WalletAccountNotSelectedError = class extends BaseError {
1965
2005
  }
1966
2006
  };
1967
2007
 
2008
+ //#endregion
2009
+ //#region src/errors/WalletBrowserRedirectHandlerMissingError.ts
2010
+ /**
2011
+ * Thrown when the connection option resolved for a wallet is its in-app
2012
+ * browser, no `handleWalletBrowserRedirect` handler was passed to
2013
+ * `connectWalletOption`, and there is no current page URL to redirect into
2014
+ * that browser — as on React Native and during server-side rendering.
2015
+ *
2016
+ * That path connects by reloading your app inside the wallet's own browser,
2017
+ * so it needs the URL of the page to reload.
2018
+ *
2019
+ * @example
2020
+ * ```ts
2021
+ * // Throws on React Native, where there is no page URL to reuse
2022
+ * await connectWalletOption({ walletKey: 'coinbase' });
2023
+ *
2024
+ * // Connects, redirecting into the wallet's browser
2025
+ * await connectWalletOption({
2026
+ * handleWalletBrowserRedirect: ({ chain, walletKey }) =>
2027
+ * redirectToInAppBrowser({
2028
+ * appUrl: 'https://mydapp.xyz/login',
2029
+ * chain,
2030
+ * walletKey,
2031
+ * }),
2032
+ * walletKey: 'coinbase',
2033
+ * });
2034
+ * ```
2035
+ * @see connectWalletOption
2036
+ * @see redirectToInAppBrowser
2037
+ */
2038
+ var WalletBrowserRedirectHandlerMissingError = class extends BaseError {
2039
+ constructor({ chain, walletKey }) {
2040
+ super({
2041
+ cause: null,
2042
+ code: "wallet_browser_redirect_handler_missing",
2043
+ docsUrl: null,
2044
+ metaMessages: [
2045
+ `Wallet key: ${walletKey}`,
2046
+ `Chain: ${chain}`,
2047
+ "Pass handleWalletBrowserRedirect and call redirectToInAppBrowser from it with the URL of the page to reload inside the wallet's browser."
2048
+ ],
2049
+ name: "WalletBrowserRedirectHandlerMissingError",
2050
+ shortMessage: `Connecting to ${walletKey} requires opening its in-app browser, so the handleWalletBrowserRedirect param is required where there is no page URL to redirect.`
2051
+ });
2052
+ }
2053
+ };
2054
+
1968
2055
  //#endregion
1969
2056
  //#region src/errors/WalletOptionNotFoundError.ts
1970
2057
  /**
1971
- * Thrown when `connectWallet` is given a wallet key that no wallet option in
2058
+ * Thrown when `connectWalletOption` is given a wallet key that no wallet option in
1972
2059
  * the catalogue matches.
1973
2060
  *
1974
2061
  * A wallet is only surfaced for the chains this client has an extension for, so
@@ -1978,14 +2065,14 @@ var WalletAccountNotSelectedError = class extends BaseError {
1978
2065
  * @example
1979
2066
  * ```ts
1980
2067
  * try {
1981
- * await connectWallet({ walletKey: 'metmask' });
2068
+ * await connectWalletOption({ walletKey: 'metmask' });
1982
2069
  * } catch (error) {
1983
2070
  * if (error instanceof WalletOptionNotFoundError) {
1984
2071
  * showUnknownWalletMessage();
1985
2072
  * }
1986
2073
  * }
1987
2074
  * ```
1988
- * @see connectWallet
2075
+ * @see connectWalletOption
1989
2076
  * @see getWalletOptionsCatalogue
1990
2077
  */
1991
2078
  var WalletOptionNotFoundError = class extends BaseError {
@@ -9059,6 +9146,457 @@ const __connectAndVerifyWithWalletProvider_wrapped = instrumentFunction({
9059
9146
  }
9060
9147
  });
9061
9148
 
9149
+ //#endregion
9150
+ //#region src/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.ts
9151
+ /**
9152
+ * Appends a wallet connection URI to a deeplink URL.
9153
+ *
9154
+ * Generic across URI-deeplink connection options — works for both
9155
+ * WalletConnect pairing URIs and MetaMask SDK URIs. Determines the
9156
+ * appropriate query parameter separator based on whether the deeplink
9157
+ * already contains query parameters.
9158
+ *
9159
+ * @param params.deeplinkUrl - The base deeplink URL (e.g., `walletapp://wc` or `walletapp://wc?param=value`).
9160
+ * @param params.connectionUri - The connection URI to append.
9161
+ * @returns The deeplink URL with the connection URI appended as a query parameter.
9162
+ *
9163
+ * @example
9164
+ * ```ts
9165
+ * appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc', connectionUri: 'wc:123-456' })
9166
+ * // Returns: 'walletapp://wc?uri=wc%3A123-456'
9167
+ *
9168
+ * appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
9169
+ * // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
9170
+ * ```
9171
+ * @notInstrumented
9172
+ */
9173
+ const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
9174
+ const url = new URL(deeplinkUrl);
9175
+ url.searchParams.set("uri", connectionUri);
9176
+ return url.href;
9177
+ };
9178
+
9179
+ //#endregion
9180
+ //#region src/utils/getPreferredWalletDeepLink/getPreferredWalletDeepLink.ts
9181
+ /**
9182
+ * Picks the most appropriate deep link variant for the current platform.
9183
+ *
9184
+ * Mobile (Android, iOS, tablets) prefers `native` because the OS treats
9185
+ * custom URL schemes as first-class app links and gives the wallet a faster
9186
+ * round-trip back to the dApp. Desktop prefers `universal` because browsers
9187
+ * cannot resolve mobile-only custom schemes and need an `https://` link
9188
+ * that opens the wallet's web flow.
9189
+ *
9190
+ * In either case, the alternative is used as a fallback when the preferred
9191
+ * variant is missing. Returns `undefined` only when both variants are
9192
+ * absent.
9193
+ *
9194
+ * @example
9195
+ * ```ts
9196
+ * const deepLink = getPreferredWalletDeepLink({
9197
+ * deeplinks: wallet.deeplinks,
9198
+ * });
9199
+ * ```
9200
+ *
9201
+ * @param params.deeplinks - The deep link variants for a wallet (typically `WalletConnectCatalogWallet.deeplinks`).
9202
+ * @returns The preferred deep link URL, or `undefined` if neither variant is available.
9203
+ * @see appendConnectionUriToDeeplink
9204
+ * @see getConnectionUriDeeplink
9205
+ * @notInstrumented
9206
+ */
9207
+ const getPreferredWalletDeepLink = ({ deeplinks }) => {
9208
+ const { native, universal } = deeplinks;
9209
+ if (isMobile()) return native ?? universal;
9210
+ return universal ?? native;
9211
+ };
9212
+
9213
+ //#endregion
9214
+ //#region src/modules/wallets/connectWithUriConnectionOption/getConnectionUriDeeplink/getConnectionUriDeeplink.ts
9215
+ /**
9216
+ * Builds the single deeplink that hands a pairing URI to the wallet, picking
9217
+ * the shape the URI's protocol expects.
9218
+ *
9219
+ * A WalletConnect URI travels as the `uri` query parameter of the wallet's own
9220
+ * deeplink, whereas the MetaMask SDK mints a launch link that already targets
9221
+ * MetaMask, so it is handed over untouched.
9222
+ *
9223
+ * @example
9224
+ * ```ts
9225
+ * const deeplink = getConnectionUriDeeplink({
9226
+ * deeplinks: connectionOption.deeplinks,
9227
+ * type: connectionOption.type,
9228
+ * uri,
9229
+ * });
9230
+ * ```
9231
+ *
9232
+ * @param params.deeplinks - The wallet's deeplink variants, as carried by the wallet book.
9233
+ * @param params.type - The URI connection type that minted the URI.
9234
+ * @param params.uri - The pairing URI.
9235
+ * @returns The deeplink to open, or `undefined` when the wallet publishes no deeplink to carry the URI.
9236
+ * @see getPreferredWalletDeepLink
9237
+ * @see appendConnectionUriToDeeplink
9238
+ * @notInstrumented
9239
+ */
9240
+ const getConnectionUriDeeplink = ({ deeplinks, type, uri }) => {
9241
+ if (type === "metamaskSdkUri") return uri;
9242
+ const deeplinkUrl = getPreferredWalletDeepLink({ deeplinks });
9243
+ if (!deeplinkUrl) return;
9244
+ return appendConnectionUriToDeeplink({
9245
+ connectionUri: uri,
9246
+ deeplinkUrl
9247
+ });
9248
+ };
9249
+
9250
+ //#endregion
9251
+ //#region src/modules/wallets/connectWithUriConnectionOption/connectWithUriConnectionOption.ts
9252
+ /**
9253
+ * Connects to a wallet through a URI pairing and returns the connected wallet
9254
+ * account.
9255
+ *
9256
+ * Mints the pairing URI with the starter the chain extension registered for
9257
+ * the option's chain and URI type, hands it to `onConnectionUri` as the
9258
+ * wallet's deeplink carrying the pairing so the customer can render a QR code
9259
+ * or open the wallet app, then waits for the user to approve the pairing on
9260
+ * the wallet side.
9261
+ *
9262
+ * The handler is awaited, so an async handler that fails to open the wallet
9263
+ * rejects the connection rather than letting the pairing resolve into an
9264
+ * account nobody asked for.
9265
+ *
9266
+ * @example
9267
+ * ```ts
9268
+ * const walletAccount = await connectWithUriConnectionOption(
9269
+ * {
9270
+ * addToDynamicWalletAccounts: true,
9271
+ * connectionOption,
9272
+ * onConnectionUri: ({ uri }) => renderQrCode(uri),
9273
+ * walletKey: 'trust',
9274
+ * },
9275
+ * client
9276
+ * );
9277
+ * ```
9278
+ *
9279
+ * @param params.addToDynamicWalletAccounts - Whether the connected wallet account should be added to the client's wallet accounts.
9280
+ * @param params.connectionOption - The URI deeplink connection option to drive.
9281
+ * @param params.onConnectionUri - Called with the pairing URI once it is minted. Awaited before the approval is waited on.
9282
+ * @param params.walletKey - The wallet being connected, keyed as in the wallet options catalogue.
9283
+ * @param client - The Dynamic client instance.
9284
+ * @returns A promise that resolves to the connected wallet account.
9285
+ * @throws ConnectionUriHandlerMissingError If no onConnectionUri handler was passed.
9286
+ * @throws NoConnectionOptionAvailableError If no URI connection starter is registered for the option's chain and type.
9287
+ * @throws NoAddressFoundError If the pairing was approved but no address was shared with your app.
9288
+ * @see getUriConnectionStarterRegistry
9289
+ * @see getWalletOptionsCatalogue
9290
+ * @notInstrumented
9291
+ */
9292
+ const connectWithUriConnectionOption = async ({ addToDynamicWalletAccounts, connectionOption, onConnectionUri, walletKey }, client) => {
9293
+ const { chain, deeplinks, type } = connectionOption;
9294
+ if (!onConnectionUri) throw new ConnectionUriHandlerMissingError({
9295
+ chain,
9296
+ type,
9297
+ walletKey
9298
+ });
9299
+ const starter = getUriConnectionStarterRegistry(client).get({
9300
+ chain,
9301
+ type
9302
+ });
9303
+ if (!starter) throw new NoConnectionOptionAvailableError({
9304
+ chain,
9305
+ walletKey
9306
+ });
9307
+ const { approval, uri } = await starter.start({ addToDynamicWalletAccounts });
9308
+ const walletAccountsPromise = approval();
9309
+ walletAccountsPromise.catch(() => void 0);
9310
+ await onConnectionUri({ uri: getConnectionUriDeeplink({
9311
+ deeplinks,
9312
+ type,
9313
+ uri
9314
+ }) ?? uri });
9315
+ const { walletAccounts } = await walletAccountsPromise;
9316
+ const [walletAccount] = walletAccounts;
9317
+ if (!walletAccount) throw new NoAddressFoundError();
9318
+ return walletAccount;
9319
+ };
9320
+
9321
+ //#endregion
9322
+ //#region src/utils/buildInAppBrowserUrl/buildInAppBrowserUrl.ts
9323
+ /**
9324
+ * Placeholder the wallet book leaves in in-app-browser URLs for the app URL
9325
+ * the wallet should open.
9326
+ */
9327
+ const DAPP_URL_PLACEHOLDER = "{{encodedDappURI}}";
9328
+ /**
9329
+ * Fills a wallet's in-app-browser URL template with the app URL to open.
9330
+ *
9331
+ * Wallet book entries carry the entry point as a template (e.g.
9332
+ * `https://go.base.app/dapp?cb_url={{encodedDappURI}}`), so the URL is only
9333
+ * usable once every occurrence of the placeholder is substituted in,
9334
+ * percent-encoded. Templates without the placeholder are returned untouched —
9335
+ * some wallets open a fixed landing page.
9336
+ *
9337
+ * @example
9338
+ * ```ts
9339
+ * buildInAppBrowserUrl({
9340
+ * appUrl: 'https://myapp.xyz/login',
9341
+ * inAppBrowserUrl: 'https://go.base.app/dapp?cb_url={{encodedDappURI}}',
9342
+ * });
9343
+ * // Returns: 'https://go.base.app/dapp?cb_url=https%3A%2F%2Fmyapp.xyz%2Flogin'
9344
+ * ```
9345
+ *
9346
+ * @param params.appUrl - The URL of your app for the wallet's browser to open.
9347
+ * @param params.inAppBrowserUrl - The wallet's in-app-browser URL template.
9348
+ * @returns The in-app-browser URL to open.
9349
+ * @see redirectToInAppBrowser
9350
+ * @see getWalletOptionsCatalogue
9351
+ * @notInstrumented
9352
+ */
9353
+ const buildInAppBrowserUrl = ({ appUrl, inAppBrowserUrl }) => inAppBrowserUrl.replaceAll(DAPP_URL_PLACEHOLDER, encodeURIComponent(appUrl));
9354
+
9355
+ //#endregion
9356
+ //#region src/modules/wallets/redirectToInAppBrowser/redirectToInAppBrowser.ts
9357
+ /**
9358
+ * Leaves your app for a wallet's in-app browser, which reloads `appUrl`
9359
+ * inside it.
9360
+ *
9361
+ * Call this from `handleWalletBrowserRedirect` with the URL of the page the
9362
+ * wallet should reload. The wallet's in-app-browser entry point is read from
9363
+ * the wallet options catalogue, so you only need the wallet's key. The wallet
9364
+ * is only injected on that reload, so the connection is made on the next page
9365
+ * load rather than in the current one.
9366
+ *
9367
+ * @example
9368
+ * ```ts
9369
+ * await connectWalletOption({
9370
+ * handleWalletBrowserRedirect: ({ chain, walletKey }) =>
9371
+ * redirectToInAppBrowser({ appUrl: window.location.href, chain, walletKey }),
9372
+ * walletKey: 'coinbase',
9373
+ * });
9374
+ * ```
9375
+ *
9376
+ * @param params.appUrl - The URL of your app for the wallet's browser to open.
9377
+ * @param params.walletKey - The wallet to open, keyed as in the wallet options catalogue.
9378
+ * @param [params.chain] - The chain to open the wallet's browser for. Required only when the wallet exposes an in-app browser on more than one enabled chain.
9379
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9380
+ * @returns A promise that resolves once the redirect is triggered.
9381
+ * @throws WalletOptionNotFoundError If no wallet option matches the key.
9382
+ * @throws NoConnectionOptionAvailableError If the wallet exposes no in-app browser on the requested chain.
9383
+ * @throws AmbiguousWalletChainError If the wallet exposes an in-app browser on more than one chain and no chain was passed.
9384
+ * @throws UnsafeDeeplinkUrlError If the wallet's in-app-browser URL has a scheme that can execute script.
9385
+ * @see connectWalletOption
9386
+ * @see WalletBrowserRedirectHandlerParams
9387
+ * @instrumented
9388
+ */
9389
+ const redirectToInAppBrowser = async ({ appUrl, chain, walletKey }, client = getDefaultClient()) => {
9390
+ const walletOption = (await getWalletOptionsCatalogue({ includeMobileOptions: true }, client)).find(({ key }) => key === walletKey);
9391
+ if (!walletOption) throw new WalletOptionNotFoundError({ walletKey });
9392
+ const inAppBrowserOptions = walletOption.connectionOptions.filter((option) => option.type === "inAppBrowser" && (!chain || option.chain === chain));
9393
+ if (inAppBrowserOptions.length === 0) throw new NoConnectionOptionAvailableError({
9394
+ chain,
9395
+ installationUrls: walletOption.installationUrls,
9396
+ walletKey
9397
+ });
9398
+ const availableChains = [...new Set(inAppBrowserOptions.map((option) => option.chain))];
9399
+ if (!chain && availableChains.length > 1) throw new AmbiguousWalletChainError({
9400
+ chains: availableChains,
9401
+ walletKey
9402
+ });
9403
+ const [inAppBrowserOption] = inAppBrowserOptions;
9404
+ const urlToOpen = buildInAppBrowserUrl({
9405
+ appUrl,
9406
+ inAppBrowserUrl: inAppBrowserOption.url
9407
+ });
9408
+ assertSafeDeeplinkUrl(urlToOpen);
9409
+ await getCore(client).openDeeplink(urlToOpen);
9410
+ };
9411
+ const __redirectToInAppBrowser_impl = redirectToInAppBrowser;
9412
+ const __redirectToInAppBrowser_wrapped = instrumentFunction({
9413
+ fn: __redirectToInAppBrowser_impl,
9414
+ functionName: "redirectToInAppBrowser",
9415
+ getCore: () => {
9416
+ try {
9417
+ return getCore(getDefaultClient());
9418
+ } catch {
9419
+ return;
9420
+ }
9421
+ }
9422
+ });
9423
+
9424
+ //#endregion
9425
+ //#region src/modules/wallets/resolveWalletConnectionOption/resolveWalletConnectionOption.ts
9426
+ /**
9427
+ * Picks the connection option `connectWalletOption` should drive for a wallet.
9428
+ *
9429
+ * Reads the wallet options catalogue, keeps the options this client can
9430
+ * actually drive — a registered wallet provider, an in-app-browser entry, or
9431
+ * a URI pairing whose starter a chain extension has registered — and returns
9432
+ * the best one by the catalogue's ordering.
9433
+ *
9434
+ * @example
9435
+ * ```ts
9436
+ * const connectionOption = await resolveWalletConnectionOption(
9437
+ * { walletKey: 'metamask' },
9438
+ * client
9439
+ * );
9440
+ * ```
9441
+ *
9442
+ * @param params.walletKey - The wallet to connect, keyed as in the wallet options catalogue.
9443
+ * @param [params.chain] - The chain to connect on. Required only when the wallet resolves on more than one enabled chain.
9444
+ * @param client - The Dynamic client instance.
9445
+ * @returns A promise that resolves to the connection option to drive.
9446
+ * @throws WalletOptionNotFoundError If no wallet option matches the key.
9447
+ * @throws AmbiguousWalletChainError If the wallet resolves on more than one chain and no chain was passed.
9448
+ * @throws NoConnectionOptionAvailableError If the wallet has no connection option this client can drive on the requested chain.
9449
+ * @see connectWalletOption
9450
+ * @see getWalletOptionsCatalogue
9451
+ * @notInstrumented
9452
+ */
9453
+ const resolveWalletConnectionOption = async ({ walletKey, chain }, client) => {
9454
+ const walletOption = (await getWalletOptionsCatalogue({ includeMobileOptions: true }, client)).find(({ key }) => key === walletKey);
9455
+ if (!walletOption) throw new WalletOptionNotFoundError({ walletKey });
9456
+ const uriConnectionStarterRegistry = getUriConnectionStarterRegistry(client);
9457
+ const availableOptions = walletOption.connectionOptions.filter((option) => !chain || option.chain === chain).filter((option) => {
9458
+ if (option.type !== "walletConnect" && option.type !== "metamaskSdkUri") return true;
9459
+ const starter = uriConnectionStarterRegistry.get({
9460
+ chain: option.chain,
9461
+ type: option.type
9462
+ });
9463
+ return Boolean(starter);
9464
+ });
9465
+ if (availableOptions.length === 0) throw new NoConnectionOptionAvailableError({
9466
+ chain,
9467
+ installationUrls: walletOption.installationUrls,
9468
+ walletKey
9469
+ });
9470
+ const availableChains = [...new Set(availableOptions.map((option) => option.chain))];
9471
+ if (!chain && availableChains.length > 1) throw new AmbiguousWalletChainError({
9472
+ chains: availableChains,
9473
+ walletKey
9474
+ });
9475
+ const [connectionOption] = availableOptions;
9476
+ return connectionOption;
9477
+ };
9478
+
9479
+ //#endregion
9480
+ //#region src/utils/getCurrentPageUrl/getCurrentPageUrl.ts
9481
+ /**
9482
+ * Returns the URL of the page the app is running in.
9483
+ *
9484
+ * @example
9485
+ * ```ts
9486
+ * const appUrl = getCurrentPageUrl() ?? 'https://mydapp.xyz';
9487
+ * ```
9488
+ *
9489
+ * @returns The current page URL, or null where there is no page to read it from, such as on React Native and during server-side rendering.
9490
+ * @see isServerSideRendering
9491
+ * @see redirectToInAppBrowser
9492
+ * @notInstrumented
9493
+ */
9494
+ const getCurrentPageUrl = () => {
9495
+ if (typeof window === "undefined") return null;
9496
+ const href = window.location?.href;
9497
+ if (typeof href !== "string") return null;
9498
+ return href;
9499
+ };
9500
+
9501
+ //#endregion
9502
+ //#region src/highLevelFunctions/connectWalletOption/connectWalletOption.ts
9503
+ /**
9504
+ * Connects to an external wallet by its wallet options catalogue key and
9505
+ * returns the connected wallet account.
9506
+ *
9507
+ * Picks the connection path for the wallet so the customer does not have to:
9508
+ * a registered wallet provider when the user has the wallet installed,
9509
+ * otherwise a URI pairing (WalletConnect or the MetaMask SDK), with the
9510
+ * pairing URI handed to `onConnectionUri` while the returned promise waits for
9511
+ * the user to approve on the wallet side.
9512
+ *
9513
+ * Wallets that can only be reached through their own in-app browser — no
9514
+ * extension, no URI pairing — resolve to a redirect instead: the wallet and
9515
+ * chain are handed to `handleWalletBrowserRedirect`, which leaves for that
9516
+ * browser with `redirectToInAppBrowser`. Without that handler, the current
9517
+ * page is redirected into the wallet's browser directly, so the handler is
9518
+ * only needed to pick a different page to come back to, or where there is no
9519
+ * page URL to reuse (React Native, server-side rendering). The returned
9520
+ * promise never settles either way, since the connection completes on the
9521
+ * next page load inside the wallet's browser.
9522
+ *
9523
+ * Note: This function does not verify the wallet account — use
9524
+ * `verifyWalletAccount` afterwards to link it to the user.
9525
+ *
9526
+ * @example
9527
+ * ```ts
9528
+ * const walletAccount = await connectWalletOption({
9529
+ * handleWalletBrowserRedirect: ({ chain, walletKey }) =>
9530
+ * redirectToInAppBrowser({ appUrl: 'https://mydapp.xyz', chain, walletKey }),
9531
+ * onConnectionUri: ({ uri }) => renderQrCode(uri),
9532
+ * walletKey: 'metamask',
9533
+ * });
9534
+ * console.log(walletAccount.address);
9535
+ * ```
9536
+ *
9537
+ * @param params.walletKey - The wallet to connect, keyed as in the wallet options catalogue (e.g. 'metamask', 'phantom').
9538
+ * @param [params.chain] - The chain to connect on. Required only when the wallet resolves on more than one enabled chain.
9539
+ * @param [params.onConnectionUri] - Called with the pairing URI when the connection runs through a URI pairing.
9540
+ * @param [params.handleWalletBrowserRedirect] - Called with the wallet and chain when the wallet can only be connected through its own in-app browser. Defaults to redirecting the current page into that browser.
9541
+ * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9542
+ * @returns A promise that resolves to the connected wallet account, or that never settles on the in-app-browser path.
9543
+ * @throws WalletOptionNotFoundError If no wallet option matches the key.
9544
+ * @throws AmbiguousWalletChainError If the wallet resolves on more than one chain and no chain was passed.
9545
+ * @throws NoConnectionOptionAvailableError If the wallet has no connection option this client can drive on the requested chain.
9546
+ * @throws ConnectionUriHandlerMissingError If the wallet resolves to a URI pairing and no onConnectionUri handler was passed.
9547
+ * @throws WalletBrowserRedirectHandlerMissingError If the wallet resolves to its in-app browser, no handleWalletBrowserRedirect handler was passed, and there is no current page URL to redirect.
9548
+ * @throws UnsafeDeeplinkUrlError If the wallet's in-app-browser URL has a scheme that can execute script.
9549
+ * @see verifyWalletAccount
9550
+ * @see redirectToInAppBrowser
9551
+ * @see getWalletOptionsCatalogue
9552
+ * @instrumented
9553
+ */
9554
+ const connectWalletOption = async ({ walletKey, chain, handleWalletBrowserRedirect, onConnectionUri }, client = getDefaultClient()) => {
9555
+ const connectionOption = await resolveWalletConnectionOption({
9556
+ chain,
9557
+ walletKey
9558
+ }, client);
9559
+ if (connectionOption.type === "withWalletProvider") return __connectWithWalletProvider_wrapped({ walletProviderKey: connectionOption.walletProviderKey }, client);
9560
+ if (connectionOption.type === "inAppBrowser") {
9561
+ const { chain: inAppBrowserChain } = connectionOption;
9562
+ if (handleWalletBrowserRedirect) handleWalletBrowserRedirect({
9563
+ chain: inAppBrowserChain,
9564
+ walletKey
9565
+ });
9566
+ else {
9567
+ const currentPageUrl = getCurrentPageUrl();
9568
+ if (!currentPageUrl) throw new WalletBrowserRedirectHandlerMissingError({
9569
+ chain: inAppBrowserChain,
9570
+ walletKey
9571
+ });
9572
+ await __redirectToInAppBrowser_wrapped({
9573
+ appUrl: currentPageUrl,
9574
+ chain: inAppBrowserChain,
9575
+ walletKey
9576
+ }, client);
9577
+ }
9578
+ return new Promise(() => void 0);
9579
+ }
9580
+ return connectWithUriConnectionOption({
9581
+ addToDynamicWalletAccounts: true,
9582
+ connectionOption,
9583
+ onConnectionUri,
9584
+ walletKey
9585
+ }, client);
9586
+ };
9587
+ const __connectWalletOption_impl = connectWalletOption;
9588
+ const __connectWalletOption_wrapped = instrumentFunction({
9589
+ fn: __connectWalletOption_impl,
9590
+ functionName: "connectWalletOption",
9591
+ getCore: () => {
9592
+ try {
9593
+ return getCore(getDefaultClient());
9594
+ } catch {
9595
+ return;
9596
+ }
9597
+ }
9598
+ });
9599
+
9062
9600
  //#endregion
9063
9601
  //#region src/modules/wallets/getAvailableWalletProvidersData/getAvailableWalletProvidersData.ts
9064
9602
  /**
@@ -9656,109 +10194,6 @@ const __selectPrimaryWalletAccount_wrapped = instrumentFunction({
9656
10194
  }
9657
10195
  });
9658
10196
 
9659
- //#endregion
9660
- //#region src/utils/buildInAppBrowserUrl/buildInAppBrowserUrl.ts
9661
- /**
9662
- * Placeholder the wallet book leaves in in-app-browser URLs for the app URL
9663
- * the wallet should open.
9664
- */
9665
- const DAPP_URL_PLACEHOLDER = "{{encodedDappURI}}";
9666
- /**
9667
- * Fills a wallet's in-app-browser URL template with the app URL to open.
9668
- *
9669
- * Wallet book entries carry the entry point as a template (e.g.
9670
- * `https://go.base.app/dapp?cb_url={{encodedDappURI}}`), so the URL is only
9671
- * usable once every occurrence of the placeholder is substituted in,
9672
- * percent-encoded. Templates without the placeholder are returned untouched —
9673
- * some wallets open a fixed landing page.
9674
- *
9675
- * @example
9676
- * ```ts
9677
- * buildInAppBrowserUrl({
9678
- * appUrl: 'https://myapp.xyz/login',
9679
- * inAppBrowserUrl: 'https://go.base.app/dapp?cb_url={{encodedDappURI}}',
9680
- * });
9681
- * // Returns: 'https://go.base.app/dapp?cb_url=https%3A%2F%2Fmyapp.xyz%2Flogin'
9682
- * ```
9683
- *
9684
- * @param params.appUrl - The URL of your app for the wallet's browser to open.
9685
- * @param params.inAppBrowserUrl - The wallet's in-app-browser URL template.
9686
- * @returns The in-app-browser URL to open.
9687
- * @see redirectToInAppBrowser
9688
- * @see getWalletOptionsCatalogue
9689
- * @notInstrumented
9690
- */
9691
- const buildInAppBrowserUrl = ({ appUrl, inAppBrowserUrl }) => inAppBrowserUrl.replaceAll(DAPP_URL_PLACEHOLDER, encodeURIComponent(appUrl));
9692
-
9693
- //#endregion
9694
- //#region src/modules/wallets/redirectToInAppBrowser/redirectToInAppBrowser.ts
9695
- /**
9696
- * Leaves your app for a wallet's in-app browser, which reloads `appUrl`
9697
- * inside it.
9698
- *
9699
- * Call this from `handleWalletBrowserRedirect` with the URL of the page the
9700
- * wallet should reload. The wallet's in-app-browser entry point is read from
9701
- * the wallet options catalogue, so you only need the wallet's key. The wallet
9702
- * is only injected on that reload, so the connection is made on the next page
9703
- * load rather than in the current one.
9704
- *
9705
- * @example
9706
- * ```ts
9707
- * await connectWallet({
9708
- * handleWalletBrowserRedirect: ({ chain, walletKey }) =>
9709
- * redirectToInAppBrowser({ appUrl: window.location.href, chain, walletKey }),
9710
- * walletKey: 'coinbase',
9711
- * });
9712
- * ```
9713
- *
9714
- * @param params.appUrl - The URL of your app for the wallet's browser to open.
9715
- * @param params.walletKey - The wallet to open, keyed as in the wallet options catalogue.
9716
- * @param [params.chain] - The chain to open the wallet's browser for. Required only when the wallet exposes an in-app browser on more than one enabled chain.
9717
- * @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
9718
- * @returns A promise that resolves once the redirect is triggered.
9719
- * @throws WalletOptionNotFoundError If no wallet option matches the key.
9720
- * @throws NoConnectionOptionAvailableError If the wallet exposes no in-app browser on the requested chain.
9721
- * @throws AmbiguousWalletChainError If the wallet exposes an in-app browser on more than one chain and no chain was passed.
9722
- * @throws UnsafeDeeplinkUrlError If the wallet's in-app-browser URL has a scheme that can execute script.
9723
- * @see connectWallet
9724
- * @see WalletBrowserRedirectHandlerParams
9725
- * @instrumented
9726
- */
9727
- const redirectToInAppBrowser = async ({ appUrl, chain, walletKey }, client = getDefaultClient()) => {
9728
- const walletOption = (await getWalletOptionsCatalogue({ includeMobileOptions: true }, client)).find(({ key }) => key === walletKey);
9729
- if (!walletOption) throw new WalletOptionNotFoundError({ walletKey });
9730
- const inAppBrowserOptions = walletOption.connectionOptions.filter((option) => option.type === "inAppBrowser" && (!chain || option.chain === chain));
9731
- if (inAppBrowserOptions.length === 0) throw new NoConnectionOptionAvailableError({
9732
- chain,
9733
- installationUrls: walletOption.installationUrls,
9734
- walletKey
9735
- });
9736
- const availableChains = [...new Set(inAppBrowserOptions.map((option) => option.chain))];
9737
- if (!chain && availableChains.length > 1) throw new AmbiguousWalletChainError({
9738
- chains: availableChains,
9739
- walletKey
9740
- });
9741
- const [inAppBrowserOption] = inAppBrowserOptions;
9742
- const urlToOpen = buildInAppBrowserUrl({
9743
- appUrl,
9744
- inAppBrowserUrl: inAppBrowserOption.url
9745
- });
9746
- assertSafeDeeplinkUrl(urlToOpen);
9747
- await getCore(client).openDeeplink(urlToOpen);
9748
- };
9749
- const __redirectToInAppBrowser_impl = redirectToInAppBrowser;
9750
- const __redirectToInAppBrowser_wrapped = instrumentFunction({
9751
- fn: __redirectToInAppBrowser_impl,
9752
- functionName: "redirectToInAppBrowser",
9753
- getCore: () => {
9754
- try {
9755
- return getCore(getDefaultClient());
9756
- } catch {
9757
- return;
9758
- }
9759
- }
9760
- });
9761
-
9762
10197
  //#endregion
9763
10198
  //#region src/modules/wallets/disconnectWalletAccount/disconnectWalletAccount.ts
9764
10199
  /**
@@ -10360,70 +10795,6 @@ const __withdrawFromYieldVault_wrapped = instrumentFunction({
10360
10795
  }
10361
10796
  });
10362
10797
 
10363
- //#endregion
10364
- //#region src/utils/appendConnectionUriToDeeplink/appendConnectionUriToDeeplink.ts
10365
- /**
10366
- * Appends a wallet connection URI to a deeplink URL.
10367
- *
10368
- * Generic across URI-deeplink connection options — works for both
10369
- * WalletConnect pairing URIs and MetaMask SDK URIs. Determines the
10370
- * appropriate query parameter separator based on whether the deeplink
10371
- * already contains query parameters.
10372
- *
10373
- * @param params.deeplinkUrl - The base deeplink URL (e.g., `walletapp://wc` or `walletapp://wc?param=value`).
10374
- * @param params.connectionUri - The connection URI to append.
10375
- * @returns The deeplink URL with the connection URI appended as a query parameter.
10376
- *
10377
- * @example
10378
- * ```ts
10379
- * appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc', connectionUri: 'wc:123-456' })
10380
- * // Returns: 'walletapp://wc?uri=wc%3A123-456'
10381
- *
10382
- * appendConnectionUriToDeeplink({ deeplinkUrl: 'walletapp://wc?param=value', connectionUri: 'wc:123-456' })
10383
- * // Returns: 'walletapp://wc?param=value&uri=wc%3A123-456'
10384
- * ```
10385
- * @notInstrumented
10386
- */
10387
- const appendConnectionUriToDeeplink = ({ connectionUri, deeplinkUrl }) => {
10388
- const url = new URL(deeplinkUrl);
10389
- url.searchParams.set("uri", connectionUri);
10390
- return url.href;
10391
- };
10392
-
10393
- //#endregion
10394
- //#region src/utils/getPreferredWalletDeepLink/getPreferredWalletDeepLink.ts
10395
- /**
10396
- * Picks the most appropriate deep link variant for the current platform.
10397
- *
10398
- * Mobile (Android, iOS, tablets) prefers `native` because the OS treats
10399
- * custom URL schemes as first-class app links and gives the wallet a faster
10400
- * round-trip back to the dApp. Desktop prefers `universal` because browsers
10401
- * cannot resolve mobile-only custom schemes and need an `https://` link
10402
- * that opens the wallet's web flow.
10403
- *
10404
- * In either case, the alternative is used as a fallback when the preferred
10405
- * variant is missing. Returns `undefined` only when both variants are
10406
- * absent.
10407
- *
10408
- * @example
10409
- * ```ts
10410
- * const deepLink = getPreferredWalletDeepLink({
10411
- * deeplinks: wallet.deeplinks,
10412
- * });
10413
- * ```
10414
- *
10415
- * @param params.deeplinks - The deep link variants for a wallet (typically `WalletConnectCatalogWallet.deeplinks`).
10416
- * @returns The preferred deep link URL, or `undefined` if neither variant is available.
10417
- * @see appendConnectionUriToDeeplink
10418
- * @see getConnectionUriDeeplink
10419
- * @notInstrumented
10420
- */
10421
- const getPreferredWalletDeepLink = ({ deeplinks }) => {
10422
- const { native, universal } = deeplinks;
10423
- if (isMobile()) return native ?? universal;
10424
- return universal ?? native;
10425
- };
10426
-
10427
10798
  //#endregion
10428
10799
  //#region src/utils/parseUserAgent/parseUserAgent.ts
10429
10800
  const browserMatchers = [
@@ -10505,5 +10876,5 @@ const parseUserAgent = ({ userAgent }) => {
10505
10876
  assertPackageVersion(name, version);
10506
10877
 
10507
10878
  //#endregion
10508
- export { AmbiguousWalletChainError, BaseError, COINBASE_TRAVEL_RULE_FIELD_DESCRIPTIONS, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, CoinbaseBeneficiaryWalletType, CoinbaseIsSelfTransfer, CoinbaseTransferMfaFailedError, CoinbaseTransferMfaRequiredError, CoinbaseTravelRuleFieldName, CoinbaseTravelRuleRequiredError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MergeAccountsConfirmationError, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoConnectionOptionAvailableError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, ScreeningNotRequiredError, SimulationFailedError, TokenScope, TokenSwapError, TransactionBroadcastError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasChainEnum, WaasLoadFailedError, WaasOnboardingIncompleteError, WaasRbacStaleRetryUnsafeError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletOptionNotFoundError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, checkUserScopes, __claimYieldRewards_wrapped as claimYieldRewards, clearDeviceRegistrationRedirectParams, clearSocialRedirectParams, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, createCoinbaseExchangeTransfer, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, __depositToYieldVault_wrapped as depositToYieldVault, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseAccounts, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPreferredWalletDeepLink, getPrimaryWalletAccount, getRegisteredDevices, getSelectedWalletAccount, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, getYieldDetails, getYieldPosition, getYieldRewards, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isExternalWalletScreeningEnabled, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, listYieldVaults, logout, matchWalletProvidersToCatalogGroup, mergeUserAccounts, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __redirectToInAppBrowser_wrapped as redirectToInAppBrowser, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, screenTransaction, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __setSelectedWalletAccount_wrapped as setSelectedWalletAccount, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized, __withdrawFromYieldVault_wrapped as withdrawFromYieldVault };
10879
+ export { AmbiguousWalletChainError, BaseError, COINBASE_TRAVEL_RULE_FIELD_DESCRIPTIONS, CaptchaProviderEnum, CheckoutSessionTokenMissingError, ClientAlreadyInitializedError, CoinbaseBeneficiaryWalletType, CoinbaseIsSelfTransfer, CoinbaseTransferMfaFailedError, CoinbaseTransferMfaRequiredError, CoinbaseTravelRuleFieldName, CoinbaseTravelRuleRequiredError, ConnectionUriHandlerMissingError, DeeplinkConnectAndVerifyUnsupportedError, DeviceRegistrationIdentityMismatchError, FeeEstimationFailedError, FlowSessionTokenMissingError, GOOGLE_DRIVE_BACKUP_REQUIRED_SCOPES, InvalidDeviceRegistrationRedirectError, InvalidExternalAuthError, InvalidParamError, InvalidRedirectStorageStateError, InvalidSocialCallbackOriginError, JwtVerifiedCredentialFormatEnum, LinkCredentialError, MFAAction, MergeAccountsConfirmationError, MfaInvalidOtpError, MfaRateLimitedError, MissingRedirectStorageStateError, MissingSocialUrlParamError, MissingUserVerificationError, NetworkAddingUnavailableError, NetworkNotAddedError, NetworkSwitchingUnavailableError, NoAddressFoundError, NoConnectionOptionAvailableError, NoNetworkProvidersError, NoPasskeyCredentialsFoundError, NoSmartWalletAccountSignerFoundError, NoWebAuthNSupportError, NotWaasWalletAccountError, ProviderEnum, SandboxMaximumThresholdReachedError, ScreeningNotRequiredError, SimulationFailedError, TokenScope, TokenSwapError, TransactionBroadcastError, UnauthorizedError, UnavailableInServerSideError, UnrecognizedNetworkError, UserCancelledSocialPopUpError, UserNotAuthenticatedError, UserRejectedError, WaasChainEnum, WaasLoadFailedError, WaasOnboardingIncompleteError, WaasRbacStaleRetryUnsafeError, WalletAccountAlreadyVerifiedError, WalletAccountNotSelectedError, WalletAlreadyLinkedToAnotherUserError, WalletBrowserRedirectHandlerMissingError, WalletOptionNotFoundError, WalletProviderMethodUnavailableError, WalletScreeningBlockedError, __acknowledgeRecoveryCodes_wrapped as acknowledgeRecoveryCodes, addCoinbaseOnrampOrderEventListener, __addNetwork_wrapped as addNetwork, appendConnectionUriToDeeplink, assertWalletAccountSigningAvailability, assertWalletProviderMethodDefined, __attachCheckoutTransactionSource_wrapped as attachCheckoutTransactionSource, __attachFlowSource_wrapped as attachFlowSource, authenticateMfaRecoveryCode, authenticatePasskeyMFA, authenticateTotpMfaDevice, __authenticateWithSocial_wrapped as authenticateWithSocial, __broadcastCheckoutTransaction_wrapped as broadcastCheckoutTransaction, __broadcastFlow_wrapped as broadcastFlow, canConnectWithHardwareWallet, __cancelCheckoutTransaction_wrapped as cancelCheckoutTransaction, __cancelFlow_wrapped as cancelFlow, __checkStepUpAuth_wrapped as checkStepUpAuth, checkUserScopes, __claimYieldRewards_wrapped as claimYieldRewards, clearDeviceRegistrationRedirectParams, clearSocialRedirectParams, __completeDeviceRegistration_wrapped as completeDeviceRegistration, __completeSocialAuthentication_wrapped as completeSocialAuthentication, __completeSocialRedirect_wrapped as completeSocialRedirect, __confirmTransaction_wrapped as confirmTransaction, __connectAndVerifyWithWalletProvider_wrapped as connectAndVerifyWithWalletProvider, __connectWalletOption_wrapped as connectWalletOption, __connectWithWalletProvider_wrapped as connectWithWalletProvider, __consumeMfaToken_wrapped as consumeMfaToken, __createCheckoutTransaction_wrapped as createCheckoutTransaction, createCoinbaseExchangeTransfer, __createCoinbaseOnrampOrder_wrapped as createCoinbaseOnrampOrder, __createCryptoDotComPayment_wrapped as createCryptoDotComPayment, __createDynamicClient_wrapped as createDynamicClient, createKrakenExchangeTransfer, __createNewMfaRecoveryCodes_wrapped as createNewMfaRecoveryCodes, __deleteMfaDevice_wrapped as deleteMfaDevice, __deletePasskey_wrapped as deletePasskey, __deleteUser_wrapped as deleteUser, __depositToYieldVault_wrapped as depositToYieldVault, detectDeviceRegistrationRedirect, detectOAuthRedirect, detectSocialRedirectUrl, excludeInstalledFromCatalog, __executeSwapTransaction_wrapped as executeSwapTransaction, fetchProjectSettings, findMissingGoogleDriveBackupScopes, getActiveNetworkData, getActiveNetworkId, getAvailableWalletProvidersData, getBalance, getBalanceForAddress, getBalances, getCaptchaSettings, getCheckoutTransaction, getCheckoutTransactionQuote, getCoinbaseAccounts, getCoinbaseBuyUrl, getConnectedAddresses, getDefaultClient, getDeviceRegistrationTokenFromUrl, getElevatedAccessToken, getFlow, getFlowQuote, __getGoogleDriveBackupReadiness_wrapped as getGoogleDriveBackupReadiness, getInstallationLinkForCurrentPlatform, getKrakenAccounts, getKrakenWhitelistedAddresses, getMfaDevices, getMfaMethods, getMfaRecoveryCodes, getMissingVerificationForCoinbaseOnrampOrder, __getMoonPayCurrencies_wrapped as getMoonPayCurrencies, __getMoonPayUrl_wrapped as getMoonPayUrl, getMultichainBalances, getMultichainTokenBalances, getNativeBalance, getNetworksData, getOwnerWalletAccountForSmartWalletAccount, getPasskeys, getPreferredWalletDeepLink, getPrimaryWalletAccount, getRegisteredDevices, getSelectedWalletAccount, getSwapQuote, getSwapStatus, getTokenBalances, getTransactionHistory, getUserSocialAccounts, getWalletAccountAddressByType, getWalletAccountFromAddress, getWalletAccounts, getWalletConnectCatalog, getWalletConnectCatalogWalletByWalletProviderKey, getWalletOptionsCatalogue, getWalletProviderDataByKey, getYieldDetails, getYieldPosition, getYieldRewards, hasAllGoogleDriveBackupScopes, hasExtension, __initializeClient_wrapped as initializeClient, isAnyWalletAccountConnected, isCaptchaRequired, isDeeplinkWalletProvider, isDeviceRegistrationRequired, isExternalWalletScreeningEnabled, isHardwareWalletAccount, isInsufficientGoogleDriveScopesError, isMfaRequiredForAction, isMobile, isPendingRecoveryCodesAcknowledgment, isProgrammaticNetworkSwitchAvailable, isSignedIn, isUserMissingMfaAuth, isUserOnboardingComplete, isWalletAccountVerified, listYieldVaults, logout, matchWalletProvidersToCatalogGroup, mergeUserAccounts, offEvent, offWalletProviderEvent, onEvent, onWalletProviderEvent, onceEvent, parseUserAgent, __prepareCheckoutTransaction_wrapped as prepareCheckoutTransaction, __prepareFlowSigning_wrapped as prepareFlowSigning, __proveWalletAccountOwnership_wrapped as proveWalletAccountOwnership, __redirectToInAppBrowser_wrapped as redirectToInAppBrowser, __refreshAuth_wrapped as refreshAuth, __refreshUser_wrapped as refreshUser, __registerPasskey_wrapped as registerPasskey, __registerTotpMfaDevice_wrapped as registerTotpMfaDevice, __removeWalletAccount_wrapped as removeWalletAccount, __requestExternalAuthElevatedToken_wrapped as requestExternalAuthElevatedToken, requiresConversion, __revokeAllRegisteredDevices_wrapped as revokeAllRegisteredDevices, __revokeRegisteredDevice_wrapped as revokeRegisteredDevice, screenTransaction, __selectPrimaryWalletAccount_wrapped as selectPrimaryWalletAccount, __sendEmailOTP_wrapped as sendEmailOTP, __sendSmsOTP_wrapped as sendSmsOTP, __setCaptchaToken_wrapped as setCaptchaToken, __setDefaultMfaDevice_wrapped as setDefaultMfaDevice, __setInstrumentationEnabled_wrapped as setInstrumentationEnabled, __setSelectedWalletAccount_wrapped as setSelectedWalletAccount, __signInWithExternalJwt_wrapped as signInWithExternalJwt, __signInWithPasskey_wrapped as signInWithPasskey, __signInWithSocialPopUp_wrapped as signInWithSocialPopUp, __signInWithSocialRedirect_wrapped as signInWithSocialRedirect, __signMessage_wrapped as signMessage, __submitCheckoutTransaction_wrapped as submitCheckoutTransaction, __submitFlowTransaction_wrapped as submitFlowTransaction, supportedCountries, __switchActiveNetwork_wrapped as switchActiveNetwork, trackCheckoutTransaction, __transferAmount_wrapped as transferAmount, __transferWalletAccount_wrapped as transferWalletAccount, __unlinkSocialAccount_wrapped as unlinkSocialAccount, __updateUser_wrapped as updateUser, __verifyOTP_wrapped as verifyOTP, __verifyWalletAccount_wrapped as verifyWalletAccount, waitForClientInitialized, __withdrawFromYieldVault_wrapped as withdrawFromYieldVault };
10509
10880
  //# sourceMappingURL=index.native.esm.js.map