JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 57
  • Score
    100M100P100Q73135F
  • License MIT

Filecoin Wallet Adapters.

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

npm (scoped) GitHub Workflow Status (with event)

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.

Open in GitHub Codespaces

License

MIT © Hugo Dias