
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@exodus/asset-sources
Advanced tools
Provides compatibility info and metadata about asset sources (asset source = walletAccount + asset)
Provides compatibility info and metadata about asset sources. An asset source is a combination of a walletAccount and an asset.
yarn add @exodus/asset-sources
This feature is designed to be used together with @exodus/headless. See using the sdk.
exodus.assetSources API.await exodus.assetSources.isSupported({assetName: 'bitcoin', walletAccount: 'exodus_0'}) in the Dev Tools Console.See using the sdk for more details on how features plug into the SDK and the API interface in the type declaration.
await exodus.assetSources.isSupported({
walletAccount: 'exodus_0',
assetName: 'bitcoin',
}) // true
await exodus.assetSources.isSupported({
walletAccount: 'trezor_0_123',
assetName: 'solana',
}) // false, until Exodus adds Trezor support in our integration
await exodus.assetSources.getSupportedPurposes({
walletAccount: 'exodus_0',
assetName: 'bitcoin',
}) // [84, 86, 44]
await exodus.assetSources.getSupportedPurposes({
walletAccount: 'trezor_0_123',
assetName: 'bitcoin',
}) // [84, 49]
await exodus.assetSources.getDefaultPurpose({
walletAccount: 'exodus_0',
assetName: 'bitcoin',
}) // 84
await exodus.assetSources.getDefaultPurpose({
walletAccount: 'exodus_0',
assetName: 'cardano',
}) // 44
await exodus.assetSources.getDefaultPurpose({
walletAccount: 'trezor_0_123',
assetName: 'cardano',
}) // 1852
See using the sdk for more details on basic UI-side setup.
import { selectors } from '~/ui/flux'
const AvailableAssetsByWalletAccountDisplay = () => {
const availableAssetsByWalletAccount = useSelector(
selectors.assetSources.availableAssetNamesByWalletAccount
)
const supportedAssetsTexts = Object.entries(availableAssetsByWalletAccount).map(
([walletAccountName, supportedAssets]) => (
<Text>
{walletAccountName} ==> {Array.from(supportedAssets).join(' ')}
</Text>
)
)
return <>{supportedAssetsTexts}</>
}
FAQs
Provides compatibility info and metadata about asset sources (asset source = walletAccount + asset)
The npm package @exodus/asset-sources receives a total of 1,944 weekly downloads. As such, @exodus/asset-sources popularity was classified as popular.
We found that @exodus/asset-sources demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.