Export an asset's encoded private key for software wallet accounts
npm install @exodus/key-viewerExport an asset's encoded private key for software wallet accounts
``sh`
yarn add @exodus/key-viewer
This feature is designed to be used together with @exodus/headless. See using the sdk.
1. Open the playground https://exodus-hydra.pages.dev/features/key-viewer
2. Try out the some methods via the UI. These corresponds 1:1 with the exodus.keyViewer API.await exodus.keyViewer.getEncodedPrivateKeys({ walletAccount: 'exodus_0', baseAssetName: 'bitcoin' })
3. Run 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.
`js
// hex encoded private key
const key = await exodus.keyViewer.getEncodedPrivateKey({
baseAssetName,
walletAccount,
})
// array of key + address + key identifier
const keys = await exodus.keyViewer.getEncodedPrivateKeys({
baseAssetName,
walletAccount,
})
``