Skip to content

Commit

Permalink
[docs] clarified jsonParsed fallback encoding for `simulateTransact…
Browse files Browse the repository at this point in the history
…ion` (#33324)

docs: clarified fallback encoding
  • Loading branch information
nickfrosty authored Sep 20, 2023
1 parent 1e56b88 commit d27aaa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/api/methods/_simulateTransaction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit d27aaa7

Please sign in to comment.