You can send a transaction in EMG Pay using the eth_sendTransaction RPC method.
sendEthButton.addEventListener("click", () => {window.ethereum.request({ method:"eth_sendTransaction",// The following sends an EIP-1559 transaction. Legacy transactions are also supported. params: [ {// The user's active address. from: accounts[0],// Required except during contract publications. to: <recipientaddress>, // Only required to send ether to the recipient from the initiating external account. value: <valueinweitosend>, // Customizable by the user gasLimit: '0x5028', // Customizable by the user maxPriorityFeePerGas: '0x3b9aca00', // Customizable by the user maxFeePerGas: '0x2540be400', }, ], }) .then((txHash) => console.log(txHash)) .catch((error) => console.error(error));});