Skip to main content
  • Snap
  • Restricted

snap_getPreferences

Parameters

length

Json

Returns

locale

string

The user's selected locale.

currency

string

The user's selected currency.

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.