extrinsic

Get block extrinsics by index

Returns the extrinsics in the given block at the given index. It can return multiple extrinsics if a number is passed and there's a pruned block in that slot.

get/blocks/{block_ref}/extrinsics/{extrinsic_index}

Request

  • Base URL: https://bridge-hub.polkadot.crystal.api.submerge.io/v1
  • URL: https://bridge-hub.polkadot.crystal.api.submerge.io/v1/blocks/{block_ref}/extrinsics/{extrinsic_index}
  • Auth: none declared

Path parameters

block_refstring required

Block reference for the extrinsic. Either a block number (integer ≥ 0), or a block hash in hex (with or without 0x prefix, case-insensitive).

extrinsic_indexinteger required

0-based index for the extrinsic in the block.

Response

List of matching extrinsics.

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 extrinsic'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 extrinsic's block. Milliseconds.

extraobject

Extrinsic extras in JSON format - checkNonce, checkGenesis, chargeTransactionPayment, etc.

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.

indexinteger required

Extrinsic index.

isSuccessfulboolean required

Whether the extrinsic was successful.

specVersioninteger required

Runtime spec version of the extrinsic's block.

traceIndexinteger

Trace index for the extrinsic.

versioninteger required

Extrinsic version in metadata.

Example response

[
  {
    "blockHash": "0x758fadeb5004882de8ba39ee2105302ad0ce93ecd68fe26b6fa09de6608e7a77",
    "blockNumber": 3172595,
    "blockStatus": "proposed",
    "blockTimestamp": 1765432302000,
    "extra": {
      "chargeAssetTxPayment": {
        "assetId": null,
        "tip": "0"
      },
      "checkGenesis": {},
      "checkMetadataHash": {
        "mode": {
          "type": "Disabled",
          "value": []
        }
      },
      "checkMortality": {
        "type": "Mortal84",
        "value": "0"
      },
      "checkNonZeroSender": {},
      "checkNonce": "8362",
      "checkSpecVersion": {},
      "checkTxVersion": {},
      "checkWeight": {}
    },
    "hash": "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3",
    "index": 2,
    "isSuccessful": true,
    "signature": {
      "type": "sr25519",
      "value": "0xabababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab"
    },
    "signer": {
      "type": "accountId",
      "value": "0x269a84431cd8dfc5762beadfa54a8f21597c12d4f31e51f9f6f985f65ba0c626"
    },
    "specVersion": 2000000,
    "traceIndex": 2,
    "version": 4
  }
]

Changes

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