Skip to content

Commit

Permalink
Add resetAccount docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dguenther committed Jun 7, 2024
1 parent e870a32 commit b88436c
Showing 1 changed file with 26 additions and 0 deletions.
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)

0 comments on commit b88436c

Please sign in to comment.