iso-filecoin-wallets
v1.2.0
Published
Filecoin Wallet Adapters.
Maintainers
Readme
iso-filecoin-wallets
Unified wallet interface for filsnap, ledger, HD, Raw and more.
Install
pnpm install iso-filecoin-wallets iso-filecoin filsnap-adapterUsage
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.
