title: how to get pda data using solnet
body: <p>I am trying to convert some js code which uses solana/anchor api to microsoft .net and was planning to use the solnet .net library.</p>
  <p>But I cannot figure out how to get the data/state for a pda, in js the call for this looks like -
  program.account.projectParameter.fetch(projectPDA)</p>
  <p>Some sample code below to give you a idea of what I am trying to do.</p>
  <p>import React, {
  useState,
  useEffect
  } from &quot;react&quot;;
  import {
  Program,
  AnchorProvider,
  web3
  } from &quot;@project-serum/anchor</p>
  <p>const getProvider = () =&gt; {
  const provider = new AnchorProvider(
  connection,
  window.solana,
  opts.preflightCommitment
  );
  return provider;
  };</p>
  <p>const getVoters = async (projectId) =&gt; {
  const program = new Program(project, projectProgramID, provider);</p>
  <pre><code>        const [projectPDA, projectBump] =
          await anchor.web3.PublicKey.findProgramAddress(
              [
                  Buffer.from(&quot;project&quot;),
                  Buffer.from(projectId.substring(0, 18)),
                  Buffer.from(projectId.substring(18, 36)),
              ],
              program.programId
          );
  
          const state = await program.account.projectParameter.fetch(projectPDA);
  
          let x = state.signatories;
  
          let y = x.map((val, index) =&gt; {
              console.log(val.key);
              return {
                  key: val.key.toBase58(),
                  text: val.key.toBase58(),
                  value: val.key.toBase58(),
              };
          });
  
          setSigs(y);
  
          console.log(state.transferAmount.reciever.toBase58());
  </code></pre>