call

Get parent call

Returns a parent call by the sub call's hash.

get/calls/{call_hash}/parent

Request

  • Base URL: https://bridge-hub.polkadot.crystal.api.submerge.io/v1
  • URL: https://bridge-hub.polkadot.crystal.api.submerge.io/v1/calls/{call_hash}/parent
  • Auth: none declared

Path parameters

call_hashstring required

Sub call hash in hex (with or without 0x prefix, case-insensitive).

Query parameters

include_argsboolean

Whether to include call arguments in the call(s) in the response. Default is false. Setting this to true increases the response size considerably. Prefer to use the GET /call/{call_hash}/args endpoint per call instead.

Response

Parent call for the given sub call hash.

argsobject

Call arguments in JSON format. Schema depends on the call's schema definition in the runtime metadata.

blockHashstring required

32-byte Blake2b-256, always 0x-prefixed and lowercase in responses. Inputs elsewhere may accept mixed case or missing 0x; the API normalizes outputs.

blockNumberinteger required

Number of the call's block.

blockStatus'proposed' | 'pruned' | 'finalized' required

Block status.

  • finalized: Blocks that have been finalized on chain.
  • proposed: Blocks that have been authored but not yet finalized.
  • pruned: Blocks that have been removed or are no longer accessible.
blockTimestampinteger

Timestamp of the call's block. Milliseconds.

callIndexinteger[] required

Index of the call, represented as an unsigned integer array.

callNamestring required

Name of the call.

callPathstring required

Rust-style path of the call represented with parameter names or indices.

extrinsicHashstring required

32-byte Blake2b-256, always 0x-prefixed and lowercase in responses. Inputs elsewhere may accept mixed case or missing 0x; the API normalizes outputs.

extrinsicIndexinteger required

Index of the call's extrinsic.

extrinsicIsSignedboolean required

Whether the call's extrinsic was signed.

extrinsicIsSuccessfulboolean required

Whether the call's extrinsic was successful. Note: The extrinsic can be successful where the call has failed (see the `Utility.ForceBatch`` call).

hashstring required

32-byte Blake2b-256, always 0x-prefixed and lowercase in responses. Inputs elsewhere may accept mixed case or missing 0x; the API normalizes outputs.

isSuccessfulboolean required

Whether the call was successful.

palletCallIndexinteger required

Index of the call in its pallet.

palletIndexinteger required

Pallet index of the call.

palletNamestring required

Pallet name of the call.

parentCallHashstring

32-byte Blake2b-256, always 0x-prefixed and lowercase in responses. Inputs elsewhere may accept mixed case or missing 0x; the API normalizes outputs.

specVersioninteger required

Runtime spec version of the call's block.

Example response

{
  "args": {
    "args": {
      "dest": {
        "type": "Id",
        "value": "0xc35b9a45aadc8bb998ba7c4d17bda4d7d8e31f90a754a65709d3a3a71ff8fa7a"
      },
      "value": "117284000000"
    },
    "hash": "0xb778a81c1fd06d98b5ba1b37bb274101f7905ad5eca960f56ededf26248c4011"
  },
  "blockHash": "0x758fadeb5004882de8ba39ee2105302ad0ce93ecd68fe26b6fa09de6608e7a77",
  "blockNumber": 3172595,
  "blockStatus": "proposed",
  "blockTimestamp": 1765432302000,
  "callIndex": [
    0
  ],
  "callName": "TransferKeepAlive",
  "callPath": "root",
  "extrinsicHash": "0x18acc73c8e38351bc5b266cffacf39944945dd66342dab8ce2f86f2c97b3006f",
  "extrinsicIndex": 0,
  "extrinsicIsSigned": true,
  "extrinsicIsSuccessful": true,
  "hash": "0xf54535692c6b98bf9198d98ee28af8bc4d0753da6d42912042561dd8d32f4eca",
  "isSuccessful": true,
  "palletCallIndex": 0,
  "palletIndex": 1,
  "palletName": "Balances",
  "parentCallHash": "0x9bacc73c8e38351bc5b756cffacf39944945dd66342dab8ce2f86f2c97b3006f",
  "specVersion": 2000000
}

Changes

No recorded changes to this operation across all 1 revision of this API.