Nano Node RPC icon

Nano Node RPC

Interact with Nano cryptocurrency network

Actions111

Ledger → Get Chain

AI-generated

Summary

Retrieves a sequence of block hashes from the Nano ledger starting at the specified block. Use it to walk a block’s chain, optionally starting after an offset or traversing from the open block toward the frontier.

Inputs

  • Block Hash (required) — Hash of the block to start from.
  • Offset — Number of blocks to skip from the starting block; defaults to 0 and is supported by Nano node v18.0 or later.
  • Count — Maximum number of block hashes to return; defaults to 10 and must be at least 1.
  • Reverse Direction — Defaults to false. When enabled, traverses from the open block toward the frontier instead of from the frontier toward the open block.
  • Options — Request timeout defaults to 15,000 ms; transient RPC failures are retried up to 2 times by default.

Output shape

A single record containing the returned chain data from the Nano RPC response.

The source pack shows that this operation calls the ledger getChain RPC with the starting block, count, and options. It does not expose the response fields, so the exact record shape is not specified here.

Links

Discussion