NetworksRelease VersioningOffline transaction signingGlossary
Hardfork Update Process

event/onReorganizeChain

Streams block headers when the chain reorganizes from a fork. oldHead is the head of the chain before the reorg, newHead is the head of the chain after the reorg, and fork is the header for the block at which the two forks diverged.

Request Body 

undefined

Response 

{
  oldHead: RpcBlockHeader
  newHead: RpcBlockHeader
  fork: RpcBlockHeader
}

Example 

# Request
curl -X POST -N http://localhost:8021/event/onReorganizeChain

# Response
{
  "data": {
    "oldHead": {
      "hash": "000000041049480a103c646aa6cb10dcaddd666a2d270424f0b874a9739b2d14",
      "previous": "0000000e669478e4da1f294d31e543a2427319b231591f9c2dc9f0bdf3c652f7",
      "sequence": 1146,
      "previousBlockHash": "0000000e669478e4da1f294d31e543a2427319b231591f9c2dc9f0bdf3c652f7",
      "timestamp": 1695259437975,
      "difficulty": "147664453",
      "graffiti": "0000000000000000000000000000000000000000000000000000000000000000",
      "noteCommitment": "16e9dc0bed8e5e47de6885b228833f1294ed321cdb964b595bc686072f01654e",
      "transactionCommitment": "bb10e25c80844d9513603445b62c17aaa3f90e47c1122e442f1b2a472aa770fe",
      "target": "784156829113884269923588075788882703227634511778136367318257590456879",
      "randomness": "45656757",
      "work": "0",
      "noteSize": null
    },
    "newHead": {
      "hash": "000000041049480a103c646aa6cb10dcaddd666a2d270424f0b874a9739b2d14",
      "previous": "0000000e669478e4da1f294d31e543a2427319b231591f9c2dc9f0bdf3c652f7",
      "sequence": 1146,
      "previousBlockHash": "0000000e669478e4da1f294d31e543a2427319b231591f9c2dc9f0bdf3c652f7",
      "timestamp": 1695259437975,
      "difficulty": "147664453",
      "graffiti": "0000000000000000000000000000000000000000000000000000000000000000",
      "noteCommitment": "16e9dc0bed8e5e47de6885b228833f1294ed321cdb964b595bc686072f01654e",
      "transactionCommitment": "bb10e25c80844d9513603445b62c17aaa3f90e47c1122e442f1b2a472aa770fe",
      "target": "784156829113884269923588075788882703227634511778136367318257590456879",
      "randomness": "45656757",
      "work": "0",
      "noteSize": null
    },
    "fork": {
      "hash": "000000041049480a103c646aa6cb10dcaddd666a2d270424f0b874a9739b2d14",
      "previous": "0000000e669478e4da1f294d31e543a2427319b231591f9c2dc9f0bdf3c652f7",
      "sequence": 1146,
      "previousBlockHash": "0000000e669478e4da1f294d31e543a2427319b231591f9c2dc9f0bdf3c652f7",
      "timestamp": 1695259437975,
      "difficulty": "147664453",
      "graffiti": "0000000000000000000000000000000000000000000000000000000000000000",
      "noteCommitment": "16e9dc0bed8e5e47de6885b228833f1294ed321cdb964b595bc686072f01654e",
      "transactionCommitment": "bb10e25c80844d9513603445b62c17aaa3f90e47c1122e442f1b2a472aa770fe",
      "target": "784156829113884269923588075788882703227634511778136367318257590456879",
      "randomness": "45656757",
      "work": "0",
      "noteSize": null
    }
  }
}

RPC Objects:

  • RpcBlockHeader
View on Github

Join our newsletter and stay up to date with privacy and crypto.

Discover our impactful presence — read our blog.

Learn

  • FAQ
  • Whitepaper
  • Tokenomics

Use

  • Get Started
  • Node App
  • Mine
  • Block Explorer
  • Ecosystem

Developers

  • Documentation
  • Github

Community

  • Foundation
  • Governance
  • Grants
  • Our Community

Company

  • About Us
  • Media Kit
  • Contact Us
Privacy Policy

|

Copyright 2024 Iron Fish.