Static
initStatic
initInitializes a keypair from a file.
Node.js only - This function requires file system access and will throw in browser environments.
The path to the file containing the keypair's secret key.
A promise that resolves to the keypair.
Static
loadLoads an Anchor program from a connection.
The connection to load the program from.
Optional
wallet: WalletOptional
programId: PublicKeyA promise that resolves to the loaded Anchor program.
Static
loadLoads an Anchor program from a provider.
The provider to load the program from.
Optional
programId: PublicKeyAn optional program ID to load the program from.
A promise that resolves to the loaded Anchor program.
Static
loadLoads an Anchor program from the environment.
A promise that resolves to the loaded Anchor program.
Static
loadStatic
loggedParse out anchor events from the logs present in the program IDL.
The Anchor program instance.
The array of logs to parse.
An array of parsed events.
Initializes a wallet from a file.
Node.js only - This function requires file system access and will throw in browser environments.