Static
initThe path to the file containing the keypair's secret key.
A promise that resolves to the keypair.
Static
initInitializes a wallet from a file.
The path to the file containing the wallet's secret key.
A promise that resolves to a tuple containing the wallet and the keypair.
Static
loadLoads the same environment set for the Solana CLI.
A promise that resolves to the Solana configuration.
Static
loadLoads an Anchor program from a connection.
The connection 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
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 keypair from a file.