This is a tool to derive Near private key and Address from a mnemonic phrase using the Omni MM derivation path.
Clone down the repository
git clone git@github.com:stakekit/near-pk-export.gitSelect the node version
nvm useThen
yarn installto install dependencies and patch.
Add your mnemonic phrase to the MNEMONIC constant in src/main.ts
Then run
yarn ts-node src/main.tsThe private key and account id should be logged in the console. Example:
Private key: xxxx
Account id (Address): xxx