Package Exports
- iso-filecoin-wallets
- iso-filecoin-wallets/appkit
- iso-filecoin-wallets/filsnap
- iso-filecoin-wallets/hd
- iso-filecoin-wallets/ledger
- iso-filecoin-wallets/local
- iso-filecoin-wallets/types
Readme
iso-filecoin-wallets
Unified wallet interface for filsnap, ledger, HD, Raw and more.
Install
pnpm install iso-filecoin-wallets iso-filecoin filsnap-adapter
Usage
import { WalletAdapterHd } from 'iso-filecoin-wallets/hd'
const adapter = new WalletAdapterHd({
mnemonic: 'raw include ecology social turtle still perfect trip dance food welcome aunt patient very toss very program estate diet portion city camera loop guess'
})
adapter.connect({network: 'mainnet'})
const address = adapter.account.address.toString()
// 'f17levgrkmq7jeloew44ixqokvl4qdozvmacidp7i'
const {network, account} = adapter.changeNetwork({network: 'testnet'})
console.log(account.address.toString())
// t1xciji452owqgqmyuphjbv3ubfkhpsvvxrcnfgpq
await wallet.disconnect()
Docs
Check docs website
Contributing
Read contributing guidelines here.