packages/automation-witness-server/src/Account/getWallet.ts
import { assertEx } from '@xylabs/assert'
import type { WalletInstance } from '@xyo-network/account'
import { HDWallet } from '@xyo-network/account'
export const getWallet = async (path?: string): Promise<WalletInstance> => {
const mnemonic = assertEx(process.env.MNEMONIC, () => 'Missing mnemonic for wallet creation')
return await HDWallet.fromPhrase(mnemonic, path)
}