gill
gill/node/Functions

saveKeypairToFile

function saveKeypairToFile(keypair, filePath): Promise<boolean>;

Save an extractable CryptoKeyPair to a filesystem wallet json file (i.e. same format as those generated by the solana-keygen command)

Parameters

ParameterTypeDescription
keypairCryptoKeyPairan extractable CryptoKeyPair
filePathstringpath to file where the keypair will be saved

Returns

Promise<boolean>

On this page