Hi,
send function not working using web3 via MetaMask mobile app built in browser. It will return the method eth_sendtransaction does not exist/is not available
Hi,
send function not working using web3 via MetaMask mobile app built in browser. It will return the method eth_sendtransaction does not exist/is not available
Hi @manoselvi could you share the steps please, could you the script you are using, could you share the full error output pls. Thanks
Hi team,
Here iâm share my script (javascript) and error screenshot.
Coding:
if (isMobile == true) {
window.web3 = new Web3(âbsc-dataseed.binanceâ);
}
let MyContract = new web3.eth.Contract(bsc_main_contract_abi_array, bsc_main_address);
await MyContract.methods.deposit(send_deposit_amount.toString()).send({
from: user_address
}).on(âtransactionHashâ, (hash) => {
}).on(âreceiptâ, (receipt) => {
//save to database
stop_loader();
$.growl.notice({ message: (âSuccessfully deposited.â) });
setTimeout(function () { window.location.href = ââ; }, 3000);
}).on(âconfirmationâ, (confirmationNumber, receipt) => {
}).on(âerrorâ, (error) => {
stop_loader();
$.growl.error({ message: (error.message) });
});
Error :
The method eth_sendTransaction does not exist/is not available
Thanks for the details could you try eth_sendTransaction
RPC method: Send transactions | MetaMask developer documentation
Hi Team,
I send the amount with the use of contract. Inside the contract we have many toaddress. For this scenario how can i use toaddress directly.
Hi @manoselvi what do you mean by toaddress
could you clarify please
Hi team,
Thanks its working fine.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.