gill
gill/node/Functions

loadKeypairFromFile

function loadKeypairFromFile(filePath): Promise<CryptoKeyPair>;

Load a CryptoKeyPair from a filesystem wallet json file (i.e. those generated by the solana-keygen command)

Parameters

ParameterTypeDefault valueDescription
filePathstringDEFAULT_CLI_KEYPAIR_PATHfile path to a json keypair file, default=DEFAULT_CLI_KEYPAIR_PATH

Returns

Promise<CryptoKeyPair>

On this page