MCPcopy Create free account
hub / github.com/solana-program/system / getExternalProgramAddresses

Function getExternalProgramAddresses

scripts/utils.mjs:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20export function getExternalProgramAddresses() {
21 const addresses = getProgramFolders().flatMap(
22 (folder) => getCargoMetadata(folder)?.solana?.['program-dependencies'] ?? []
23 );
24 return Array.from(new Set(addresses));
25}
26
27export function getExternalAccountAddresses() {
28 const addresses = getProgramFolders().flatMap(

Callers 1

getExternalProgramsFunction · 0.90

Calls 3

getProgramFoldersFunction · 0.85
getCargoMetadataFunction · 0.85
fromMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…