filecoin.js > LotusWalletProvider > walletImport
LotusWalletProvider.walletImport() method
walletImport returns the private key of an address in the wallet.
Signature:
walletImport(keyInfo: KeyInfo): Promise<string>;
Parameters
Parameter | Type | Description |
---|---|---|
keyInfo | KeyInfo |
Returns:
Promise<string>