TarifsGitHubTableau de bord

Mantle

eth_getBlockByHash17 crédits

Renvoie les informations d’un bloc à partir de son hash.

Réseau: mantle

Paramètres

NomTypeDescription
blockHashDATAHash de bloc de 32 octets.
fullTransactionsbooleanSi true, objets de transaction complets ; sinon, hashes.

Valeur renvoyée

Type

Object | null

Objet de bloc ou null.

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_getBlockByHash",
  "params": [
    "0x0000000000000000000000000000000000000000000000000000000000000000",
    false
  ]
}'