gill
gill/node/Functions

loadKeypairSignerFromFile

function loadKeypairSignerFromFile(filePath): Promise<KeyPairSigner>;

Load a KeyPairSigner 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<KeyPairSigner>

On this page