Actions with no hooks implementations yet
Actions with no hooks implementations yet in Bitsocial React Hooks. Usage, options, and examples.
createAccount(account: Account)
deleteAccount(accountName: string)
setAccount(account: Account)
setActiveAccount(accountName: string)
setAccountsOrder(accountNames: string[])
importAccount(serializedAccount: string): Promise<Account> // a backup of an account already on this device (same signing key) merges its comments, votes and edits into that account instead of adding a copy; returns the added or updated account
exportAccount(accountName: string): string // don't allow undefined to prevent catastrophic bugs
deleteCommunity(communityAddress: string, accountName?: string) // also removes the community from that account's `account.communities`, so `useAccountCommunities` stops listing it
deleteComment(commentCidOrAccountCommentIndex: string | number, accountName?: string): Promise<void>