can you generate a JS function that will take some parameters and send a PLT transaction to the chain using an SDK and return the transaction Hash? .... Amount, To Account and which PLT should be parameters to the function, with a Sponser Account as an optional parameter
Now I have enough context from the knowledge base to build the function. Let me compose the answer with code.
Here is a TypeScript/JavaScript function that sends a PLT transfer transaction to the Concordium chain using @concordium/web-sdk, with a sponsorAccount as an optional paramete