UNPKG

@privy-io/js-sdk-core

Version:

Vanilla JS client for the Privy Auth API

2 lines (1 loc) 295 B
const t=t=>t?t.linked_accounts.filter(e).sort(((t,e)=>t.wallet_index-e.wallet_index)):[];let e=t=>"wallet"===t.type&&"privy"===t.wallet_client_type&&"embedded"===t.connector_type&&("bitcoin-segwit"===t.chain_type||"bitcoin-taproot"===t.chain_type);export{t as getAllUserEmbeddedBitcoinWallets};