---
updatedAt: 2025-09-18T22:42:43.000Z
agentTools:
  projectIndex: https://docs.nodereal.io/llms.txt
---

# eth_getGaslessTransactionByHash

Get the sponsored transaction by given tx hash.

> 📘 Supported on both BNB Smart Chain and OpBNB.

Endpoint

* BNB Smart Chain (BSC)
  * **Mainnet**: `https://bsc-megafuel.nodereal.io/`
  * **Testnet**: `https://bsc-megafuel-testnet.nodereal.io/`

* opBNB
  * **Mainnet**: `https://opbnb-megafuel.nodereal.io/`
  * **Testnet**: `https://opbnb-megafuel-testnet.nodereal.io/`

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "MEGAFUEL API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://bsc-megafuel.nodereal.io"
    }
  ],
  "paths": {
    "/": {
      "post": {
        "summary": "eth_getGaslessTransactionByHash",
        "description": "Get the sponsored transaction by given tx hash.",
        "tags": [
          "eth_getGaslessTransactionByHash"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "integer",
                        "default": 1
                      },
                      "jsonrpc": {
                        "type": "string",
                        "default": "2.0"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "method": {
                        "type": "string",
                        "default": "eth_getGaslessTransactionByHash",
                        "enum": [
                          "eth_getGaslessTransactionByHash"
                        ]
                      },
                      "params": {
                        "type": "array",
                        "description": "String - 32 Bytes - the user transaction hash",
                        "minItems": 1,
                        "maxItems": 1,
                        "items": {
                          "type": "string",
                          "description": "String - 32 Bytes - the user transaction hash",
                          "default": "0x282100851bf89c0b0465fbaa40fdfc99e8b50152d12979fa19e129af63d216f1"
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer"
                        },
                        "jsonrpc": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "result": {
                          "type": "object",
                          "description": "The transaction response object, or null if no transaction is found",
                          "properties": {
                            "txHash": {
                              "type": "string",
                              "description": "hash of the transaction"
                            },
                            "bundleId": {
                              "type": "integer",
                              "description": "integer of the bundle index position in the paymaster sponsored bundle"
                            },
                            "fromAddress": {
                              "type": "string",
                              "description": "address of the sender"
                            },
                            "toAddress": {
                              "type": "string",
                              "description": "address of the receiver. null when its a contract creation transaction"
                            },
                            "rawData": {
                              "type": "string",
                              "description": "The signed transaction data"
                            },
                            "status": {
                              "type": "integer",
                              "description": "either 0 (new), 1 (pending), 2 (confirmed), 3(failed) or 4 (invalid)"
                            },
                            "gasUsed": {
                              "type": "integer",
                              "description": "The amount of gas used by this specific transaction alone"
                            },
                            "policyUuid": {
                              "type": "string",
                              "description": "integer of the matched policy index position in the paymaster policies"
                            },
                            "source": {
                              "type": "string"
                            },
                            "bornBlockNumber": {
                              "type": "integer",
                              "description": "block the height when the tx was sent to builders"
                            },
                            "chainId": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "operationId": "eth-getGaslessTransactionByHash"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```