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

API key required for authentication. Get your API key at https://developer.kas.fyi

Body

application/json
startHash
string
required

Starting block hash

Example:

"fc4c90a646687ba6f862e6089285dd7a610ef4d7f7614d25295f65aceb02bc41"

includeAcceptedTransactionIds
boolean
required

Whether to include accepted transaction IDs

Example:

true

Response

200 - application/json

Virtual chain retrieved successfully

removedChainBlockHashes
string[]
required

Array of removed chain block hashes

Example:
[
"34e9538fd3225652553930657c3d767d5ccab0fcd545038a69c202e45929dcd6"
]
addedChainBlockHashes
string[]
required

Array of added chain block hashes

Example:
[
"0x9876543210fedcba9876543210fedcba9876543210fedcba9876543210fedcba"
]
acceptedTransactionIds
object[]
required

Array of accepted transaction IDs by block

⌘I