i tried importing from .env why it doesnt works (the key is right). Also i cant find any way to import it as bytes in wallets? then how did he did it?
async function main() {
16 | const keypair = Keypair.fromSecretKey(
17 | Uint8Array.from(JSON.parse(process.env.PRIVATE_KEY!))
^
SyntaxError: JSON Parse error: Unable to parse JSON string