Skip to content

User friendly message when you try to sign a tx from a connected dapp (via WC) and you don't have enough ETH  #49

@Pabl0cks

Description

@Pabl0cks

Took me a while to realize that the reason of the errors while signing transactions was that I ran out of Sepolia ETH :)

Right now we are showing something like:

Example 1:

Missing or invalid parameters.
Double check you have provided the correct parameters.

URL: https://eth-sepolia.g.alchemy.com/v2/oKxs-03sij-U_N0iOlrSsZFr29-IqbuF
Request body: {"method":"eth_estimateGas","params":[{"from":"0x1dC580f680120c2A913C972d45AE7C5307669611","data":"0x7d789dee","maxFeePerGas":"0x1abe9f9055","maxPriorityFeePerGas":"0x3b9aca00","nonce":"0x40","to":"0xB663315d5CC527948070801aE3CeAAf9C85E9934","value":"0x71afd498d0000"}]}

Estimate Gas Arguments:
from: 0x1dC580f680120c2A913C972d45AE7C5307669611
to: 0xB663315d5CC527948070801aE3CeAAf9C85E9934
value: 0.002 SEP
data: 0x7d789dee
maxFeePerGas: 114.867277909 gwei
maxPriorityFeePerGas: 1 gwei
nonce: 64

Request Arguments:
from: 0x1dC580f680120c2A913C972d45AE7C5307669611
to: 0xB663315d5CC527948070801aE3CeAAf9C85E9934
value: 0.002 ETH

Example 2:

Missing or invalid parameters.
Double check you have provided the correct parameters.

URL: https://eth-sepolia.g.alchemy.com/v2/oKxs-03sij-U_N0iOlrSsZFr29-IqbuF
Request body: {"method":"eth_estimateGas","params":[{"from":"0x1dC580f680120c2A913C972d45AE7C5307669611","data":"0xbc8641b1","maxFeePerGas":"0x14e5f6b04d","maxPriorityFeePerGas":"0x3b9aca00","nonce":"0x41","to":"0xce679E53BF113058d44278F9CF8D772A72DF5eb9"}]}

Estimate Gas Arguments:
from: 0x1dC580f680120c2A913C972d45AE7C5307669611
to: 0xce679E53BF113058d44278F9CF8D772A72DF5eb9
data: 0xbc8641b1
maxFeePerGas: 89.757495373 gwei
maxPriorityFeePerGas: 1 gwei
nonce: 65

Request Arguments:
from: 0x1dC580f680120c2A913C972d45AE7C5307669611
to: 0xce679E53BF113058d44278F9CF8D772A72DF5eb9
data: 0xbc8641b1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions