Skip to content

Commit

Permalink
Add resetAccount docs (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther authored Oct 2, 2024
1 parent 189397a commit ab4c225
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions content/documentation/rpc/wallet/reset_account.mdx
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)
2 changes: 1 addition & 1 deletion search/indexes/documentation-index.json

Large diffs are not rendered by default.

0 comments on commit ab4c225

Please sign in to comment.