[docs] clarified `jsonParsed` fallback encoding for `simulateTransaction` (#33324)

docs: clarified fallback encoding
This commit is contained in:
Nick Frostbutter 2023-09-20 12:53:12 -04:00 committed by GitHub
parent 1e56b88f59
commit d27aaa79c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ encoding for returned Account data
- `jsonParsed` encoding attempts to use program-specific state
parsers to return more human-readable and explicit account state data.
- If `jsonParsed` is requested but a parser cannot be found, the field falls
back to binary encoding, detectable when the `data` field is type `string`.
- If `jsonParsed` is requested but a [parser cannot be found](https://github.com/solana-labs/solana/blob/cfd0a00ae2ba85a6d76757df8b4fa38ed242d185/account-decoder/src/parse_account_data.rs#L98-L100), the field falls
back to `base64` encoding, detectable when the returned `accounts.data` field is type `string`.
</details>