question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trying to send Ether

See original GitHub issue

Sending Ether is failed with response “{“jsonrpc”:“2.0”,“id”:6,“error”:{“code”:-32601,“message”:“The method eth_sendTransaction does not exist/is not available”}}”

Xcode 14.1 web3swift 3.0.1

    ```
     var transaction: CodableTransaction = .emptyTransaction
    transaction.from = fromAddress
    transaction.to = toAddress
    transaction.value = amount
    transaction.noncePolicy = .latest
    transaction.gasLimitPolicy = .automatic
    transaction.gasPricePolicy = .automatic

    let result = try await web3Instance.eth.send(transaction)
    return result.hash

KeystoreManager is added to web3 instance 

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
alexj70commented, Nov 21, 2022

I found solution for Goerli it is necessary to set manually transaction.chainID = BigUInt(5)

0reactions
adeneelscommented, Dec 6, 2022

Previous comment was solved by adding the chainID explicitly to the transaction.

operation.transaction.from = EthereumAddress(cache.getAddress())
operation.transaction.chainID = 56 //This line solved it 
let response = try await operation.writeToChain(password: "password")
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sending Ether (transfer, send, call) | Solidity by Example | 0.8.17
How to send Ether? You can send Ether to other contracts by. transfer (2300 gas, throws error); send (2300 gas, returns bool); call...
Read more >
How do I send Ether? - Blockchain Support Center
Follow the steps below for help sending ether. Click on Send and select Ether from the Currency drop-down menu.
Read more >
How To Buy and Send ETH, And Use MetaMask Mobile's ...
More than a wallet. Learn how to use MetaMask Mobile's built-in browser, buy ETH, and send and receive tokens anywhere in the world....
Read more >
Send ether from one wallet to another with solidity smart ...
I want to send ether from one walet to another…what technique to use and what is the safest method to do so? wallet...
Read more >
Sending Tokens Using ethers.js - ethereum.org
Sending Procedures · 1. Connect to network (testnet) · 2. Create wallet · 3. Connect Wallet to net · 4. Get current gas...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found