Skip to main content
POST
/
v1
/
rpc
/
getVirtualChainFromBlock
Get virtual chain from block
curl --request POST \
  --url https://api.kas.fyi/v1/rpc/getVirtualChainFromBlock \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "startHash": "fc4c90a646687ba6f862e6089285dd7a610ef4d7f7614d25295f65aceb02bc41",
  "includeAcceptedTransactionIds": true
}'
{
  "removedChainBlockHashes": [
    "34e9538fd3225652553930657c3d767d5ccab0fcd545038a69c202e45929dcd6"
  ],
  "addedChainBlockHashes": [
    "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba"
  ],
  "acceptedTransactionIds": [
    {
      "acceptingBlockHash": "34e9538fd3225652553930657c3d767d5ccab0fcd545038a69c202e45929dcd6",
      "acceptedTransactionIds": [
        "34e9538fd3225652553930657c3d767d5ccab0fcd545038a69c202e45929dcd6",
        "0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba"
      ]
    }
  ]
}

Cost

This endpoint costs 0.1 RU (Request Units) per call.

Authorizations

x-api-key
string
header
required

Body

application/json
startHash
string
required
Example:
includeAcceptedTransactionIds
boolean
required
Example:

Response

200 - application/json
removedChainBlockHashes
string[]
required
Example:
addedChainBlockHashes
string[]
required
Example:
acceptedTransactionIds
object[]
required