@hiveio/beekeeper v1.27.6-rc2-stable.240627000304 / IBeekeeperSession
Interface: IBeekeeperSession
Methods
close()
close():
IBeekeeperInstance
Locks all of the unlocked wallets, closes them, closes this session and makes it unusable
Returns
Beekeeper instance owning the closed session
Throws
on any beekeeper API-related error (error parsing response, invalid input, timeout error, fs sync error etc.)
Source
createWallet()
createWallet(
name
,password
?):Promise
<IWalletCreated
>
Creates a new Beekeeper wallet object owned by this session
Parameters
• name: string
name of wallet
• password?: string
password used for creation of a wallet. Not required and in this case a password is automatically generated and returned
Returns
Promise
<IWalletCreated
>
the created unlocked Beekeeper wallet object
Throws
on any beekeeper API-related error (error parsing response, invalid input, timeout error, fs sync error etc.)
Source
getInfo()
getInfo():
IBeekeeperInfo
Retrieves the current session info
Returns
Current session information
Throws
on any beekeeper API-related error (error parsing response, invalid input, timeout error, fs sync error etc.)
Source
listWallets()
listWallets():
IBeekeeperWallet
[]
Lists all of the opened wallets
Returns
array of opened Beekeeper wallets (either unlocked or locked)
Throws
on any beekeeper API-related error (error parsing response, invalid input, timeout error, fs sync error etc.)
Source
lockAll()
lockAll():
IBeekeeperWallet
[]
Locks all of the unlocked wallets owned by this session
Returns
array of the locked Beekeeper wallets
Throws
on any beekeeper API-related error (error parsing response, invalid input, timeout error, fs sync error etc.)
Source
openWallet()
openWallet(
name
):IBeekeeperWallet
Opens Beekeeper wallet object owned by this session
Parameters
• name: string
name of wallet
Returns
the opened Beekeeper wallet object (may be unlocked if it has been previously unlocked)
Throws
on any beekeeper API-related error (error parsing response, invalid input, timeout error, fs sync error etc.)