MCPcopy Create free account
hub / github.com/ExtropyIO/SolanaBootcamp / checkAccountDeployed

Function checkAccountDeployed

utils/utils.ts:208–218  ·  view source on GitHub ↗
(
  connection: Connection,
  programId: PublicKey
)

Source from the content-addressed store, hash-verified

206 * Check if the particular programID is deployed to the network
207 */
208export async function checkAccountDeployed(
209 connection: Connection,
210 programId: PublicKey
211): Promise<boolean> {
212 const accountInfo = await connection.getAccountInfo(programId);
213 if (accountInfo === null) {
214 return false;
215 } else {
216 return true;
217 }
218}
219
220/**
221 * Load and parse the Solana CLI config file to determine which payer to use

Callers 6

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
deployGreetAccountFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected