Skip to main content
  • Snap
  • Restricted

snap_getPreferences

Description

Gets the user's preferences.

Returns

object

An object containing the user's preferences.

locale

string

The user's locale setting as a language code.

currency

string

The user's preferred fiat currency code.

hideBalances

boolean

Whether the user has chosen to hide balances.

useSecurityAlerts

boolean

Whether to run transactions and signatures through security providers.

simulateOnChainActions

boolean

Whether to simulate transactions and signatures.

useTokenDetection

boolean

Whether to auto-detect tokens.

batchCheckBalances

boolean

Whether to fetch balances in an aggregated manner.

displayNftMedia

boolean

Whether to display NFT media.

useNftDetection

boolean

Whether to auto-detect NFTs.

useExternalPricingData

boolean

Whether to get token price data from an external source.

showTestnets

boolean

Whether to show testnets.