I recently went over AVAX Datahub tutorial and AVAX documentation to write a .js script transferring AVAX tokens from X chain to Metamask.
I want to write a script to transfer AVAX or ERC20 tokens from C chain of AVAX wallet to Metamask.
It does not appear straightforward though, as all tutorial modules only talk about cross-chain transfers .
C to Metamask transfer is easily done if we just manually do it with the UI of the AVAX wallet but I want to do it programmatically.
Could anyone hlep?