Send function not working using web3 via metamask mobile app built in browser

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

sample output with error

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.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.