diff --git a/client/src/rpc_client.rs b/client/src/rpc_client.rs index cfb031afb..7fbef4798 100644 --- a/client/src/rpc_client.rs +++ b/client/src/rpc_client.rs @@ -572,8 +572,16 @@ impl RpcClient { } pub fn get_program_accounts(&self, pubkey: &Pubkey) -> ClientResult> { - let accounts: Vec = - self.send(RpcRequest::GetProgramAccounts, json!([pubkey.to_string()]))?; + let config = RpcAccountInfoConfig { + encoding: Some(UiAccountEncoding::Base64), + commitment: None, + data_slice: None, + }; + + let accounts: Vec = self.send( + RpcRequest::GetProgramAccounts, + json!([pubkey.to_string(), config]), + )?; parse_keyed_accounts(accounts, RpcRequest::GetProgramAccounts) }