Mantle
eth_estimateGas17 crédits
Génère et renvoie une estimation du gas nécessaire.
Paramètres
| Nom | Type | Description |
|---|---|---|
| callObject | Object | Objet d’appel de transaction. |
| block | QUANTITY | TAG | Tag de bloc facultatif. (facultatif) |
Valeur renvoyée
Type
QUANTITY
Gas estimé en hex.
Exemples de code
curl https://holy-burned-sky-mantle-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_estimateGas",
"params": [
{
"to": "0x0000000000000000000000000000000000000000",
"data": "0x"
}
]
}'