Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

608
Visualizações
Error: Returned error: The method eth_sendTransaction does not exist/is not available

I tried to send some data to a smart contract hosted on infura, but I'm getting back this error Returned error: The method eth_sendTransaction does not exist/is not available. below is the code I wrote for the transaction.

code to get the instances

const getFundraiserDetails = async (address) => {
        try {
          const instance = new web3.eth.Contract(
            FundraiserContract.abi,
             address
          );
         setFactoryContract(instance)
       }catch(error){
         console.log(error)
      }

code to submit the fund

const submitFunds = async () => {
        try {  
          await factoryContract?.methods.donate().send({
            from: account,
            value: donation,
            gas: 650000
          })
          }catch(error) {
            console.log("submit Donation error", error);
          }
        }

I get back Returned error: The method eth_sendTransaction does not exist/is not available. below is the code I wrote for the transaction. whenever I call the submitFunds() function. Note I'm using Metamask wallet get the account, but it does not pop up to confirm the transaction when I call the submitFunds() function.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda