( connection: Connection, accountID: PublicKey )
| 170 | * Checks if provided account is executable |
| 171 | */ |
| 172 | export async function checkProgram( |
| 173 | connection: Connection, |
| 174 | accountID: PublicKey |
| 175 | ) { |
| 176 | const accountInfo = await connection.getAccountInfo(accountID); |
| 177 | |
| 178 | if (accountInfo) { |
| 179 | if (accountInfo.executable) { |
| 180 | return true; |
| 181 | } |
| 182 | } |
| 183 | return false; |
| 184 | } |
| 185 | |
| 186 | export async function loadKeypairsBatch( |
| 187 | location: string = "" |
nothing calls this directly
no outgoing calls
no test coverage detected