Skip to content

Commit 6c5ccf5

Browse files
authored
Merge pull request #755 from iron-fish/feat/hughy/import-account-format
updates wallet/importAccount for request format option
2 parents 357c02b + fe7d510 commit 6c5ccf5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/documentation/rpc/wallet/import_account.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,16 @@ The optional `createdAt` field can be used to set the block sequence to start sc
1717
name?: string
1818
rescan?: boolean
1919
createdAt?: number
20+
format?: AccountFormat
2021
}
2122
```
2223

24+
Supported [AccountFormats](https://github.com/iron-fish/ironfish/blob/master/ironfish/src/wallet/account/encoder/encoder.ts#L27)
25+
- Base64Json: The full account and all keys as a JSON string then encoded in base64.
26+
- JSON: The full account and all keys as a JSON string
27+
- Mnemonic: The private key encoded as 24 word BIP39 mnemonic phrase in the specified language
28+
- SpendingKey: The private key as a hex-encoded string.
29+
2330
#### Response
2431

2532
```ts

0 commit comments

Comments
 (0)