Home

Get Transaction by Block Hash and Index

POST
https://mantle.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns an L2 transaction by its containing block hash and zero-based hexadecimal index.

Returns null when block or index is not found. Mantle deposit transactions may have type 0x7e.

Example response values are illustrative unless explicitly described as protocol constants; they are not authenticated live NOWNodes responses.

Body

application/json

JSON-RPC 2.0 request body. Send as HTTP POST to the endpoint root (/).

jsonrpcstring2.0required
methodstringeth_getTransactionByBlockHashAndIndexrequired
paramsArray<string | string>required

Positional parameters in order: 32-byte block hash, zero-based hex transaction index.

Show child attributes
Any of

32-byte 0x-prefixed hash.

string

0x-prefixed hexadecimal quantity, without unnecessary leading zeroes.

string
idintegerrequired

Client-selected JSON-RPC request identifier.

Response

200OK

HTTP response containing a JSON-RPC result or a JSON-RPC error object.

default

JSON-RPC protocol or execution error; may still be delivered with HTTP 200.