-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: wallet/resetAccount | ||
description: RPC Wallet | Iron Fish Documentation | ||
--- | ||
|
||
Resets an account's head to its createdAt block (or to the genesis block, if `resetCreatedAt` is true). If `resetScanningEnabled` is true, `scanningEnabled` will be set to true, otherwise `scanningEnabled` will be left at its current value. | ||
|
||
Useful if your account is missing transactions or balances are incorrect. Setting `resetCreatedAt` to true will start from the genesis block rather than the account head, which will take longer, but will fix accounts with an incorrect `createdAt` block. | ||
|
||
#### Request | ||
|
||
```ts | ||
{ | ||
account: string | ||
resetCreatedAt?: boolean | ||
resetScanningEnabled?: boolean | ||
} | ||
``` | ||
|
||
#### Response | ||
|
||
```ts | ||
undefined | ||
``` | ||
|
||
###### [View on Github](https://github.com/iron-fish/ironfish/blob/master/ironfish/src/rpc/routes/wallet/resetAccount.ts) |
Large diffs are not rendered by default.
Oops, something went wrong.