From d27aaa79c86aabf5c3c2a7cd7eccb052f41e686d Mon Sep 17 00:00:00 2001 From: Nick Frostbutter <75431177+nickfrosty@users.noreply.github.com> Date: Wed, 20 Sep 2023 12:53:12 -0400 Subject: [PATCH] [docs] clarified `jsonParsed` fallback encoding for `simulateTransaction` (#33324) docs: clarified fallback encoding --- docs/src/api/methods/_simulateTransaction.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/api/methods/_simulateTransaction.mdx b/docs/src/api/methods/_simulateTransaction.mdx index fbae901244..9a245846d1 100644 --- a/docs/src/api/methods/_simulateTransaction.mdx +++ b/docs/src/api/methods/_simulateTransaction.mdx @@ -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`.