Skip to main content

Parameters

chainId
string
default:"397"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"tx"
required
JSON-RPC method name.
params
object
required
The parameters for method tx: [transactionHash, prove].Positional parameters for tx:
  • params[0]: 32 Bytes - Hash of the transaction.
  • params[1]: To include proofs into the response.

Returns

result
object
The transactions with or without proof information.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=397 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "tx",
    "params": [
      "0xD70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED",
      true
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "hash": "D70952032620CC4E2737EB8AC379806359D8E0B17B0488F627997A0B043ABDED",
    "height": "1000",
    "index": 0,
    "tx_result": {
      "log": "[{\"msg_index\":\"0\",\"success\":true,\"log\":\"\"}]",
      "gas_wanted": "200000",
      "gas_used": "28596",
      "tags": [
        {
          "__truncated": true
        }
      ]
    },
    "tx": "5wHwYl3uCkaoo2GaChQmSIu8hxpJxLcCuIi8fiHN4TMwrRIU/Af1cEG7Rcs/6LjTl7YjRSymJfYaFAoFdWF0b20SCzE0OTk5OTk1MDAwEhMKDQoFdWF0b20S..."
  }
}